/* The hidden pages at /top8 and /top8/<friend>: profiles from 2005 for the pager and
   its eight friends, in the look of the social sites of that year. Loud on purpose,
   with six "customized" themes. The pages are written by tools/make-profiles.mjs. It
   loads after styles.css, which supplies the fonts, the drawn pager and the
   yellow waitlist button. The plain block at the bottom is the honest part and
   keeps the real site's look. */

.egg { --bg: #05030f; --panel: #120a2e; --text: #e9ffe6; --soft: #b7c9ff; --head-bg: #ff3fb4; --head-text: #1a0030;
  --line: #5af0ff; --link: #ffe14a; --name-a: #ff3fb4; --name-b: #5af0ff; --name-c: #ffe14a;
  margin: 0; color: var(--text); font: 400 0.95rem/1.45 Verdana, Geneva, Tahoma, sans-serif;
  background-color: var(--bg);
  /* A tiled starfield, drawn with dots so no image is needed. */
  background-image: radial-gradient(#fff 1px, transparent 1.5px), radial-gradient(#5af0ff 1px, transparent 1.5px), radial-gradient(#ff3fb4 1.2px, transparent 1.7px);
  background-size: 90px 90px, 130px 130px, 170px 170px; background-position: 10px 20px, 60px 80px, 120px 40px; }
.egg.theme-pink { --bg: #ff5fc4; --panel: #ffd9f1; --text: #3b0030; --soft: #7a1060; --head-bg: #6a00a8; --head-text: #fff;
  --line: #6a00a8; --link: #5b00c9; --name-a: #6a00a8; --name-b: #c4006f; --name-c: #1a44d9;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.28) 0 12px, transparent 12px 24px); background-size: auto; }
.egg.theme-plain { --bg: #e5e5e5; --panel: #fff; --text: #111; --soft: #444; --head-bg: #6699cc; --head-text: #fff;
  --line: #6699cc; --link: #003399; --name-a: #111; --name-b: #111; --name-c: #111; background-image: none; }
/* The machine's: tape-deck purple, with reels in the wallpaper. */
.egg.theme-tape { --bg: #1a0d3d; --panel: #2a1764; --text: #f1ecff; --soft: #c9bdf5; --head-bg: #e8382d; --head-text: #fff;
  --line: #b4a3f0; --link: #ffd447; --name-a: #ff8a80; --name-b: #ffd447; --name-c: #d9cfff;
  background-image: radial-gradient(circle, transparent 0 9px, rgba(255, 255, 255, 0.09) 10px 16px, transparent 17px); background-size: 110px 110px; background-position: 0 0; }
/* The Wi-Fi's: rings spreading from the top of the page. */
.egg.theme-waves { --bg: #9fe3d8; --panel: #f4fffd; --text: #06231f; --soft: #24544d; --head-bg: #0b6f64; --head-text: #fff;
  --line: #0b6f64; --link: #2a1764; --name-a: #0b6f64; --name-b: #4b2fa6; --name-c: #06231f;
  background-image: repeating-radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.5) 0 7px, transparent 7px 30px); background-size: auto; background-attachment: fixed; }
/* The backpack's: plaid. */
.egg.theme-plaid { --bg: #f2c9a0; --panel: #fff8ee; --text: #3a1d0a; --soft: #6b4526; --head-bg: #8a2f1b; --head-text: #fff;
  --line: #8a2f1b; --link: #1a44a8; --name-a: #8a2f1b; --name-b: #1a44a8; --name-c: #3a1d0a;
  background-image: repeating-linear-gradient(0deg, rgba(138, 47, 27, 0.22) 0 14px, transparent 14px 44px),
    repeating-linear-gradient(90deg, rgba(26, 68, 168, 0.18) 0 14px, transparent 14px 44px); background-size: auto; }

.egg a { color: var(--link); }
.egg h1, .egg h2, .egg h3 { font-family: Verdana, Geneva, Tahoma, sans-serif; font-weight: 700; letter-spacing: 0; line-height: 1.2; text-wrap: wrap; }
.egg-page { max-width: 54rem; margin: 0 auto; padding: 0 0.75rem 2rem; }

.egg-top { background: #003399; color: #fff; padding: 0.5rem 0.75rem; margin: 0 -0.75rem; }
.egg-brand { margin: 0; font: 700 1.5rem/1.1 Arial, Helvetica, sans-serif; }
.egg-brand a { color: #fff; text-decoration: none; }
.egg-brand span { font: 400 0.8rem/1 Verdana, sans-serif; margin-left: 0.4rem; }
.egg-nav { margin: 0.35rem 0 0; font-size: 0.75rem; color: #cfe0ff; overflow: hidden; white-space: nowrap; text-overflow: clip; }

/* The scrolling line every profile had. */
.scroller { margin: 0.6rem 0; overflow: hidden; white-space: nowrap; font: 700 0.95rem/1.6 "Comic Sans MS", "Comic Sans", "Marker Felt", cursive;
  color: var(--name-c); border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }
.scroller span { display: inline-block; padding-left: 100%; animation: scroll 16s linear infinite; }
@keyframes scroll { to { transform: translateX(-100%); } }

.egg-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; align-items: start; }

/* The name, in glitter. */
.egg-name { font-size: 1.35rem; margin: 0.3rem 0 0.7rem; overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--name-a), var(--name-b), var(--name-c), var(--name-a)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: glitter 4s linear infinite; }
.theme-plain .egg-name { animation: none; }
@keyframes glitter { to { background-position: 300% 0; } }

.egg-id { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0.75rem; align-items: start; }
/* The profile picture, taken from above at an angle, as was the custom. */
.egg-pic { background: var(--panel); border: 2px solid var(--line); padding: 14% 8% 16%; overflow: hidden; }
.egg-pic .pager { transform: rotate(-14deg) scale(1.05); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22), inset 0 -8px 14px rgba(4, 60, 54, 0.45), 0 10px 0 rgba(0, 0, 0, 0.35); }
/* The machine gets the same treatment; everyone else is a big version of their friend tile. */
.egg-pic-machine { padding: 12% 8% 14%; }
.egg-pic .machine { transform: rotate(-10deg); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2), inset 0 -10px 18px rgba(15, 5, 50, 0.5), 0 10px 0 rgba(0, 0, 0, 0.35); }
.egg-pic-tile { padding: 8%; }
.bigpal { display: grid; place-items: center; aspect-ratio: 1; font: 400 3.6rem/1 var(--pixel); color: #1e2a16; transform: rotate(-6deg); }
.egg-vitals { margin: 0; font-size: 0.8rem; line-height: 1.35; overflow-wrap: anywhere; }
.online { color: #39ff14; font-weight: 700; animation: flash 1s steps(1) infinite; }
.theme-pink .online, .theme-plain .online, .theme-waves .online, .theme-plaid .online { color: #0a6b1f; }
@keyframes flash { 50% { opacity: 0.15; } }
.egg-mood { margin: 0.8rem 0; }

.box { background: var(--panel); border: 2px solid var(--line); margin: 0 0 1rem; }
.box h2 { background: var(--head-bg); color: var(--head-text); font-size: 0.9rem; margin: 0; padding: 0.3rem 0.5rem; }
.box h3 { color: var(--name-c); font-size: 0.85rem; margin: 0.7rem 0.6rem 0.2rem; }
.theme-pink .box h3, .theme-plain .box h3, .theme-waves .box h3, .theme-plaid .box h3 { color: var(--head-bg); }
.box > p { margin: 0.5rem 0.6rem; }
.box-url { font-size: 0.8rem; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; padding: 0.6rem; }
.contact button, .contact-link, .themes button, .song-play { font: 700 0.8rem/1.2 Verdana, sans-serif; color: var(--link); background: transparent;
  border: 1px solid var(--line); border-radius: 0; min-height: 2.75rem; padding: 0.3rem 0.4rem; cursor: pointer; text-decoration: underline;
  display: flex; align-items: center; justify-content: center; text-align: center; }
.contact button:hover, .contact-link:hover, .themes button:hover, .song-play:hover { background: var(--head-bg); color: var(--head-text); }
.contact-said { margin: 0 0.6rem 0.6rem; min-height: 2.6em; font-size: 0.85rem; color: var(--soft); }

.interests { margin: 0; padding: 0.6rem; display: grid; gap: 0.35rem; }
.interests > div { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 0.5rem; }
.interests dt { font-weight: 700; font-size: 0.85rem; color: var(--soft); background: rgba(127, 127, 127, 0.18); padding: 0.25rem 0.35rem; }
.interests dd { margin: 0; padding: 0.25rem 0; }

.network { border: 2px solid var(--line); background: var(--panel); padding: 0.9rem 0.6rem; margin: 0 0 1rem; font-weight: 700; text-align: center; font-size: 1.05rem; }

.song { display: flex; gap: 0.7rem; align-items: center; padding: 0.6rem; }
.song-play { min-width: 4.5rem; }
.song-name { margin: 0; font-weight: 700; }
.song-by { margin: 0; font-size: 0.78rem; color: var(--soft); }
.song-bars { display: flex; gap: 3px; align-items: flex-end; height: 1.4rem; margin-top: 0.35rem; }
.song-bars i { width: 6px; height: 20%; background: var(--line); }
.song-bars.is-playing i { animation: bars 0.5s ease-in-out infinite alternate; }
.song-bars.is-playing i:nth-child(2n) { animation-duration: 0.36s; }
.song-bars.is-playing i:nth-child(3n) { animation-duration: 0.62s; }
@keyframes bars { to { height: 100%; } }

.friends-count { font-size: 0.85rem; }
.top8 { list-style: none; margin: 0; padding: 0 0.6rem 0.7rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem 0.4rem; text-align: center; font-size: 0.75rem; font-weight: 700; }
.top8 a { display: block; color: var(--link); overflow-wrap: anywhere; }
/* inline-grid, so the name's underline does not run through the picture */
.pal { display: inline-grid; width: 100%; place-items: center; aspect-ratio: 1; margin-bottom: 0.25rem; border: 1px solid var(--line); color: #1e2a16;
  font: 400 1.5rem/1 var(--pixel); text-decoration: none; }
.pal-pager { background: #0b6f64; color: #fff; }
.pal-machine { background: #7d5fe0; color: #fff; }
.pal-phone { background: #ffd447; }
.pal-phone2 { background: #9fd3ff; }
.pal-link { background: #cfe6c9; }
.pal-wifi { background: #12a594; color: #fff; }
.pal-bag { background: #ff9f6b; }
.pal-code { background: #b4c68f; }
.pal-beep { background: #e8382d; color: #fff; }

.comments { list-style: none; margin: 0; padding: 0 0.6rem 0.4rem; }
.comments li { border-top: 1px dashed var(--line); padding: 0.5rem 0; }
.comments a { color: var(--link); font-weight: 700; }
.comments .when { font-size: 0.75rem; color: var(--soft); margin-left: 0.4rem; }
.comments p { margin: 0.25rem 0 0; }

.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; padding: 0.6rem; }
.themes button[aria-pressed="true"] { background: var(--head-bg); color: var(--head-text); text-decoration: none; }
.counter { text-align: center; }
.counter span { font: 400 1.6rem/1 var(--pixel); letter-spacing: 0.15em; background: #000; color: #39ff14; padding: 0.1rem 0.4rem; }
.counter small { color: var(--soft); }

/* The honest part: back in the real site's voice and look. */
.egg-real { background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); border: 3px solid var(--ink); border-radius: 20px;
  padding: 1.5rem; margin-top: 1.5rem; }
.egg .egg-real h2 { font: 400 1.8rem/1.05 var(--display); color: var(--grape); margin: 0 0 0.7rem; }
.egg-real p:last-child { margin: 0; display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; }
.egg .egg-real a.egg-back { color: var(--ink); font-weight: 700; }
.egg .egg-real a.button { color: var(--ink); }

@media (max-width: 40rem) {
  .egg-cols { grid-template-columns: minmax(0, 1fr); }
  .top8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .scroller span { animation: none; padding-left: 0; }
  .scroller { white-space: normal; }
  .egg-name, .online, .song-bars.is-playing i { animation: none; }
}
