/* ==========================================================================
   MOXU & LAVI — EXTREMELY 3D WORLD WIDE WEB (est. 1998, rebuilt 2026)
   Mobile first. The two big buttons are sacred: nothing decorative may sit
   on top of them, and they never wait for an animation.
   ========================================================================== */

:root {
  --of: #00aff0;
  --fs: #2699f7;
  --ink: #00131f;
  --hot: #ff00cc;
  --zap: #ffe600;
  --lime: #39ff14;
  --win: #c0c0c0;
  --mx: 0;
  --my: 0;
  color-scheme: dark;
}

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

html {
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
  background: #08002f url("gifs/handmade/tile-space.png") repeat;
  background-size: 128px 128px;
  image-rendering: pixelated;
  color: #fff;
  font: 16px/1.35 "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

img { image-rendering: pixelated; }
picture.gif, picture.gif img { display: block; }
picture.gif img { width: 100%; height: auto; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- keyboard focus: loud, never hidden ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 4px dashed var(--zap);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 8px; top: -100px;
  z-index: 100;
  background: var(--zap);
  color: #000;
  font: 900 16px/1 "Arial Black", Impact, sans-serif;
  padding: 14px 16px;
  border: 3px outset #fff;
  text-decoration: none;
}
.skip:focus { top: calc(8px + env(safe-area-inset-top)); }

/* ---------- age notice ---------- */
.agebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #000;
  border-bottom: 3px ridge var(--hot);
  padding: calc(4px + env(safe-area-inset-top)) 10px 4px;
  font: 13px/1.25 Verdana, Geneva, sans-serif;
  position: relative;
  z-index: 5;
}
.agebar p { margin: 0; }
.agebar-18 { color: #ff3030; font-family: "Arial Black", Impact, sans-serif; letter-spacing: .02em; }

.motion-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  background: var(--win);
  color: #000;
  border: 3px outset #fff;
  font: bold 12px/1 Verdana, Geneva, sans-serif;
  cursor: pointer;
}
.motion-toggle:active { border-style: inset; }
.motion-toggle-dot {
  width: 12px; height: 12px;
  border: 2px inset #fff;
  background: var(--lime);
}
.motion-toggle[aria-pressed="false"] .motion-toggle-dot { background: #600; }

/* ---------- scrolling ticker (decorative; stops with motion off) ---------- */
.ticker {
  background: #000080;
  color: var(--lime);
  font: bold 13px/22px "Courier New", Courier, monospace;
  white-space: nowrap;
  overflow: hidden;
  border-bottom: 2px solid #000;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 40s linear infinite;
}
.ticker-track span { padding-right: 2em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- layout ---------- */
.desk {
  display: flex;
  flex-direction: column;
}
.main { order: 1; min-width: 0; }
.junk-left { order: 2; }
.junk-right { display: none; }
.deco { pointer-events: none; }
.junk .deco { display: none; }

/* ---------- masthead ---------- */
.mast {
  position: relative;
  text-align: center;
  padding: 34px 12px 6px;
}
.mast .deco { position: absolute; inset: 0; }
.mast .deco picture { position: absolute; }
.mast [data-spot="welcome"] { left: 4px; top: 0; width: 132px; }
.mast [data-spot="star"] { right: 10px; top: 0; width: 34px; }
.mast [data-spot="eye"] { right: 4px; bottom: 0; width: 46px; }
.mast [data-spot="alien"] { left: 0; bottom: -4px; width: 46px; }

.logo {
  position: relative;
  margin: 0 auto;
  max-width: 410px;
  padding-bottom: 6px;
  background: url("gifs/handmade/flames.gif") repeat-x center bottom / auto 30px;
  animation: drop .7s cubic-bezier(.3, 1.5, .6, 1) both;
}
.logo img { display: block; width: 100%; height: auto; }

.intro {
  margin: 6px auto 0;
  max-width: 17em;
  color: var(--zap);
  font: italic bold 16px/1.25 "Times New Roman", Times, serif;
  text-shadow: 2px 2px 0 #c00, 3px 3px 0 #000;
}
.intro em { color: #fff; text-decoration: underline wavy var(--hot); }

/* ---------- THE BUTTONS ---------- */
.choose {
  position: relative;
  z-index: 3;            /* above every decoration */
  margin: 4px 12px 0;
  padding: 0 0 14px;
}
.choose-h {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 0 6px;
  height: 36px;
  pointer-events: none;
}
.choose-h .pick { width: 150px; }
.choose-h .arrow { width: 40px; }
.arrow-l { rotate: 35deg; }
.arrow-r { rotate: 145deg; }

.cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  margin: 0 0 16px;
  padding: 8px 14px 8px 10px;
  color: var(--ink);
  text-decoration: none;
  border: 4px outset;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.cta-of {
  background: linear-gradient(#7fdcff, var(--of) 50%, #0098d4);
  border-color: #b8eeff;
  box-shadow: 0 0 0 4px var(--hot), 7px 7px 0 4px #000;
}
.cta-fs {
  background: linear-gradient(#8ccaff, var(--fs) 50%, #1a84e4);
  border-color: #c4e2ff;
  box-shadow: 0 0 0 4px var(--zap), 7px 7px 0 4px #000;
  rotate: -.6deg;
}
.cta-of { rotate: .5deg; }

.cta-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  background: #fff;
  border: 3px inset #ddd;
}
.cta-logo svg, .cta-logo img { width: 40px; height: 40px; display: block; image-rendering: auto; }
.cta-logo-missing img { display: none; }
.cta-logo-missing::after {
  content: "fansly";
  font: bold 12px/1 Verdana, sans-serif;
  color: var(--fs);
}

.cta-text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; line-height: 1; }
.cta-kicker { font: 900 14px/1 "Arial Black", Impact, sans-serif; letter-spacing: .04em; }
.cta-name {
  font: 900 30px/1 "Arial Black", "Arial Bold", Impact, sans-serif;
  letter-spacing: -.01em;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .7);
}
.cta-sub {
  flex-basis: 100%;
  margin-top: 4px;
  font: bold 13px/1 "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  letter-spacing: .03em;
}

@media (hover: hover) {
  .cta:hover { transform: translate(-2px, -3px) scale(1.015); }
  .cta-of:hover { box-shadow: 0 0 0 4px var(--hot), 10px 11px 0 4px #000; }
  .cta-fs:hover { box-shadow: 0 0 0 4px var(--zap), 10px 11px 0 4px #000; }
}
.cta:active {
  transform: translate(5px, 5px);
  border-style: inset;
}
.cta-of:active { box-shadow: 0 0 0 4px var(--hot), 1px 1px 0 4px #000; }
.cta-fs:active { box-shadow: 0 0 0 4px var(--zap), 1px 1px 0 4px #000; }
.cta:focus-visible { outline-offset: 8px; }

/* ---------- dividers ---------- */
.divider {
  height: 12px;
  margin: 10px 0;
  background: url("gifs/handmade/rainbow-bar.gif") repeat-x;
  background-size: 128px 12px;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}

/* ---------- frog lane ---------- */
.frog-lane {
  position: relative;
  height: 190px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, var(--zap) 0 28px, transparent 28px 52px) 0 162px / 100% 5px no-repeat,
    linear-gradient(#08002f 0 110px, #333 110px 100%);
  border-bottom: 4px solid #111;
}
.frog-sign {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 104px; height: 104px;
  margin-left: -52px;
  rotate: 45deg;
  background: var(--zap);
  border: 5px solid #000;
  box-shadow: inset 0 0 0 3px var(--zap), inset 0 0 0 5px #000, 4px 4px 0 #000;
  display: grid;
  place-items: center;
}
.frog-sign span {
  rotate: -45deg;
  width: 90px;
  text-align: center;
  color: #000;
  font: 900 13px/1.05 "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
}
.frog {
  position: absolute;
  bottom: 22px;
  left: -140px;
  width: 104px;
  animation: frog-cross 17s linear 2s infinite;
}
@keyframes frog-cross {
  0% { left: -140px; }
  48% { left: calc(100% + 20px); }
  100% { left: calc(100% + 20px); }
}

/* ---------- scrapbook (below the fold on phones) ---------- */
.scrap { padding: 4px 12px 10px; }
.wall {
  position: relative;
  height: 860px;
  margin: 10px -4px 0;
  overflow: hidden;
  overflow: clip;
}
.wall picture { position: absolute; }

.dance-break { display: flex; justify-content: center; margin: -4px 0 0; }
.dance-break picture { width: 156px; }

.guestbook {
  text-align: center;
  font: bold 15px/1.3 "Times New Roman", Times, serif;
  color: var(--lime);
  margin: 6px 0 4px;
}
.guestbook small { display: block; color: #ccc; font-style: italic; }
.inline-gif { display: inline-block; vertical-align: middle; width: 24px; height: auto; }

/* ---------- fake windows ---------- */
.win {
  background: var(--win);
  color: #000;
  border: 3px outset #fff;
  box-shadow: 5px 5px 0 #000;
  max-width: 330px;
  margin: 14px auto;
  rotate: var(--r, 0deg);
}
.win-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 3px 3px 3px 6px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font: bold 12px/1.2 Tahoma, Verdana, sans-serif;
}
.win-bar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-x {
  flex: none;
  width: 18px; height: 16px;
  display: grid; place-items: center;
  background: var(--win);
  color: #000;
  border: 2px outset #fff;
  font-size: 10px;
}
.win-body { display: block; margin: 0; padding: 8px; }
.status { border-collapse: collapse; font: 12px/1.3 "Courier New", Courier, monospace; width: 100%; }
.status th, .status td { text-align: left; padding: 3px 4px; border: 1px solid #808080; }
.status th { background: #000080; color: #fff; width: 6.5em; }
.status td { background: #fff; }

.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 2px inset #fff;
  background: repeating-linear-gradient(45deg, #808080 0 8px, #a0a0a0 8px 16px);
  image-rendering: auto;
}
.photo-missing img { display: none; }
.photo-missing::before {
  content: "[ your photo: portrait-enhanced.png ]";
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 12px;
  border: 2px inset #fff;
  background: repeating-linear-gradient(45deg, #909090 0 8px, #a8a8a8 8px 16px);
  text-align: center;
  font: bold 12px/1.2 "Courier New", monospace;
  color: #000;
}
.photo-cap {
  margin: 6px 0 0;
  text-align: center;
  font: 900 14px/1.2 "Arial Black", Impact, sans-serif;
  color: #c00;
}

/* ---------- footer ---------- */
.foot {
  text-align: center;
  padding: 12px 14px calc(22px + env(safe-area-inset-bottom));
  background: #000;
  border-top: 4px ridge var(--hot);
}
.foot-flame { width: 160px; margin: 0 auto 4px; }
.notice {
  max-width: 34em;
  margin: 0 auto 12px;
  padding: 10px;
  border: 2px dashed #888;
  font: 13px/1.45 Verdana, Geneva, sans-serif;
  color: #eee;
}
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 0 0 12px; }
.badges img:nth-child(odd) { rotate: -2deg; }
.badges img:nth-child(2) { rotate: 3deg; translate: 0 4px; }
.counter { font: 13px/1.4 "Times New Roman", serif; color: #ccc; margin: 0 0 10px; }
.counter img { display: inline-block; vertical-align: middle; width: 122px; height: auto; }
.counter span { display: block; color: #fff; }
.fine { font: 11px/1.6 Verdana, Geneva, sans-serif; color: #aaa; margin: 0; }
.fine a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 10px;
  color: #6cf;
  font-weight: bold;
}

/* ---------- fly-by (desktop only) ---------- */
.flyby { display: none; }

/* ==========================================================================
   MOTION: staggered sticker entrances + desktop depth
   ========================================================================== */
.pop {
  animation: pop .55s cubic-bezier(.3, 1.7, .5, 1) var(--d, 0s) backwards;
}
.deco picture { rotate: var(--r, 0deg); }
@keyframes pop {
  from { scale: .1; opacity: 0; translate: 0 -30px; }
  to { scale: 1; opacity: 1; translate: 0 0; }
}
@keyframes drop {
  from { translate: 0 -60px; scale: 1.3; opacity: 0; }
  to { translate: 0 0; scale: 1; opacity: 1; }
}

/* Motion off: by OS setting (unless the visitor turned it back on) or by toggle */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) *, html:not(.motion-on) *::before { animation: none !important; transition: none !important; }
  html:not(.motion-on) .logo { background-image: url("gifs/handmade/still/flames.png"); }
  html:not(.motion-on) .divider { background-image: url("gifs/handmade/still/rainbow-bar.png"); }
  html:not(.motion-on) .frog { left: 58%; }
  html:not(.motion-on) .flyby { display: none !important; }
}
html.motion-off *, html.motion-off *::before { animation: none !important; transition: none !important; }
html.motion-off .logo { background-image: url("gifs/handmade/still/flames.png"); }
html.motion-off .divider { background-image: url("gifs/handmade/still/rainbow-bar.png"); }
html.motion-off .frog { left: 58%; }
html.motion-off .flyby { display: none !important; }

/* ==========================================================================
   SMALL PHONES
   ========================================================================== */
@media (max-width: 374px) {
  .agebar { font-size: 12px; }
  .cta-name { font-size: 27px; }
  .cta { min-height: 70px; margin-bottom: 14px; }
  .mast { padding-top: 30px; }
}

/* ==========================================================================
   DESKTOP: a full junk-drawer composition, not a stretched phone
   ========================================================================== */
@media (min-width: 960px) {
  .desk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 600px) minmax(0, 1fr);
    gap: 0 8px;
    max-width: 1500px;
    margin: 0 auto;
  }
  .main, .junk-left { order: 0; }
  .junk { position: relative; display: block; min-height: 980px; overflow: hidden; overflow: clip; }
  .junk .deco { display: block; position: absolute; inset: 0 0 auto; height: 1100px; }
  .junk .deco picture { position: absolute; }

  .junk-left .win-photo { width: min(270px, 88%); margin: 40px auto 0; }

  .mast { padding: 62px 40px 8px; }
  .mast [data-spot="welcome"] { left: 14px; top: 10px; width: 200px; }
  .mast [data-spot="star"] { right: 70px; top: 14px; width: 48px; }
  .mast [data-spot="eye"] { right: -26px; top: 96px; width: 76px; }
  .mast [data-spot="alien"] { left: -34px; top: 92px; width: 86px; }
  .logo { background-size: auto 40px; }
  .intro { font-size: 20px; }

  .choose { margin: 10px 56px 0; }
  .choose-h { height: 52px; }
  .choose-h .pick { width: 208px; }
  .choose-h .arrow { width: 70px; }
  .arrow-l { rotate: 15deg; }
  .arrow-r { rotate: 165deg; }
  .cta { min-height: 92px; padding: 10px 20px 10px 12px; gap: 16px; margin-bottom: 22px; }
  .cta-logo { width: 66px; height: 66px; }
  .cta-logo svg, .cta-logo img { width: 50px; height: 50px; }
  .cta-name { font-size: 40px; }
  .cta-kicker { font-size: 17px; }
  .cta-sub { font-size: 15px; }

  .scrap .win-status { margin: 10px 0 0 30px; max-width: 300px; }
  .wall { height: 720px; }

  /* depth: only decoration layers drift, the buttons never move */
  .layer-1 { translate: calc(var(--mx) * 10px) calc(var(--my) * 8px); }
  .layer-2 { translate: calc(var(--mx) * -18px) calc(var(--my) * -12px); }
  .deco { transition: translate .25s ease-out; }

  .flyby {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: 96px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
  }
  .flyby picture {
    position: absolute;
    left: -140px;
    width: 110px;
    animation: flyby 26s linear 6s infinite;
  }
  @keyframes flyby {
    0% { left: -140px; translate: 0 0; }
    10% { translate: 0 18px; }
    20% { translate: 0 -6px; }
    30% { left: calc(100% + 20px); translate: 0 10px; }
    100% { left: calc(100% + 20px); }
  }
}

@media (min-width: 1200px) {
  .desk { grid-template-columns: minmax(0, 1fr) 640px minmax(0, 1fr); }
}
