/* oto.chat/links (static/links.html). Chrome 86 floor (CLAUDE.md): no ratio property, parent selector,
   container queries or inset shorthand; the media boxes use the padding-top trick. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: #1e1f22; color: #f2f3f5; font-family: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #d6a3ef; outline-offset: 2px; }

.links { width: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px;
  padding: max(22px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom)); }
#cards { display: flex; flex-direction: column; gap: 16px; }
.who { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.who img { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.who h1 { margin: 6px 0 0; font-size: 24px; line-height: 1; }
.who-link { display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.who-link:active img { transform: scale(0.96); }

.card { position: relative; border-radius: 22px; overflow: hidden; background: #2b2d31; border: 1px solid #3a3c42;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
.media { position: relative; height: 0; padding-top: 58%; overflow: hidden; background: #5f8a72; }
.media video, .media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
/* (the home screen clip: her end of it, a little closer, as the Lalala page's phone frame) */
.media.clip video { object-position: 50% 100%; transform: scale(1.12); transform-origin: 56% 100%; }
.tag { position: absolute; left: 12px; top: 12px; z-index: 2; height: 24px; padding: 0 10px; border-radius: 999px;
  background: linear-gradient(135deg, #ffd76a, #ffb020); color: #3a2500; font-size: 13px; font-weight: 800; line-height: 24px; }
.tag.live { background: #e5484d; color: #ffffff; }
.tag.live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%;
  background: #ffffff; vertical-align: 1px; animation: linksBlink 1.2s ease-in-out infinite; }
.body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.body h2 { margin: 0; font-size: 24px; line-height: 1.05; }
.body p { margin: 0; color: #c4c8cf; font-size: 15px; font-weight: 600; line-height: 1.3; }

.go { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 16px;
  color: #ffffff; font-size: 19px; font-weight: 800; text-decoration: none; }
.go:active { transform: translateY(1px); }
.go > span { position: relative; }
.go { margin-bottom: 6px; background: linear-gradient(135deg, #3fd8ff 0%, #4f97ff 50%, #b9a0ff 100%);
  animation: linksGlow 2.2s ease-in-out infinite; }
.go::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0) 62%);
  background-size: 260% 100%; background-repeat: no-repeat; animation: linksShine 2.2s ease-in-out infinite; }
.go .hand, .mg-all .hand { position: absolute; right: 18px; bottom: -16px; font-size: 32px; line-height: 1; pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); animation: linksTap 1.1s ease-in-out infinite; }
/* the systems she's on, under a store card's button */
.platforms { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 7px; margin-top: -2px;
  color: #a6abb3; font-size: 13px; font-weight: 700; }
.platforms > span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.platforms svg { width: 13px; height: 13px; fill: currentColor; flex: none; }
.platforms i { font-style: normal; color: #6d7179; }
.more { align-self: center; color: #c4c8cf; font-size: 14px; font-weight: 700; text-decoration: none; }
.more b { color: #f2f3f5; text-decoration: underline; }

/* More games, under a creator's one-game page (links.js moreNode): four tiles two by two, then See all games */
.more-games { padding: 14px 14px 14px; border-radius: 22px; background: rgba(255, 255, 255, 0.04); border: 1px solid #34363c; }
.mg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mg-head h2 { margin: 0; font-size: 19px; line-height: 1; }
.mg-head span { color: #9aa0ab; font-size: 13px; font-weight: 600; }
.mg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mg-tile { display: block; border-radius: 16px; overflow: hidden; background: #2b2d31; color: #ffffff; text-decoration: none; }
.mg-tile:active { transform: translateY(1px); }
.mg-pic { position: relative; display: block; height: 0; padding-top: 75%; background: #3a3c42; }
.mg-pic img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.mg-name { display: flex; flex-direction: column; padding: 8px 10px 9px; line-height: 1.15; }
.mg-name b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-name small { color: #9aa0ab; font-size: 12.5px; font-weight: 600; }
.mg-all { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 12px; border-radius: 16px;
  background: linear-gradient(135deg, #3fd8ff 0%, #4f97ff 50%, #b9a0ff 100%); color: #ffffff; font-size: 17px; font-weight: 800;
  text-decoration: none; }
.mg-all:active { transform: translateY(1px); }

/* the app for every system: store-style badges, two by two */
.foot { margin-top: 4px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* The footer waits for the cards (links.js adds .ready once they're in): shown first, the badges and Discord were
   all a slow load showed, then jumped down. If the cards never come, it shows after 4 s anyway. */
.links:not(.ready) .foot { visibility: hidden; animation: linksFootLate 0s 4s forwards; }
@keyframes linksFootLate { to { visibility: visible; } }
.foot-title { color: #a6abb3; font-size: 14px; font-weight: 700; }
.badges { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.badge { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 6px 12px; border-radius: 12px;
  background: #000000; border: 1px solid #5c5f66; color: #ffffff; text-decoration: none; }
.badge:active { transform: translateY(1px); }
.badge svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.badge span { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.badge small { font-size: 11px; font-weight: 600; color: #d4d7dc; white-space: nowrap; }
.badge b { font-size: 17px; font-weight: 800; white-space: nowrap; }
.foot-note { color: #c4c8cf; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center; }
.foot-note[hidden] { display: none; }
.foot-note b { color: #f2f3f5; }
/* our Discord server, last under the badges (links.html) */
.discord { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  border-radius: 12px; background: #5865f2; color: #ffffff; font-size: 17px; font-weight: 800; text-decoration: none; }
.discord:active { transform: translateY(1px); }
.discord svg { width: 24px; height: 24px; flex: none; fill: currentColor; }

/* back from the store without installing: Call Malfoid, right here (links.js offerMalfoid) */
.back-offer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  max-width: 440px; margin: 0 auto; padding: 14px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: #2b2d31; border: 1px solid #4a4d55; border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.55); transform: translateY(110%); transition: transform 0.28s ease-out; }
.back-offer.open { transform: translateY(0); }
.back-face { width: 58px; height: 58px; flex: none; border-radius: 16px; object-fit: cover; background: #5f8a72; }
.back-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.15; }
.back-text b { font-size: 19px; }
.back-text span { color: #c4c8cf; font-size: 14px; font-weight: 600; }
.back-go { flex: none; min-height: 48px; margin-bottom: 0; padding: 0 22px; font-size: 18px; }
.back-close { position: absolute; top: -44px; right: max(12px, env(safe-area-inset-right)); width: 36px; height: 36px; border: 1px solid #4a4d55;
  border-radius: 50%; background: #2b2d31; color: #c4c8cf; font: inherit; font-size: 22px; font-weight: 700; line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45); }
@media (prefers-reduced-motion: reduce) { .back-offer { transition: none; } }

@keyframes linksShine { 0% { background-position: 130% 0; } 55%, 100% { background-position: -30% 0; } }
@keyframes linksGlow { 0%, 100% { box-shadow: 0 6px 16px rgba(63, 120, 255, 0.3); } 50% { box-shadow: 0 6px 26px rgba(63, 160, 255, 0.75); } }
@keyframes linksTap { 0%, 100% { transform: translate(3px, 5px); } 45% { transform: translate(0, 0); } 60% { transform: scale(0.9); } }
@keyframes linksBlink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) {
  .go, .go::before, .go .hand, .tag.live::before { animation: none; }
}

/* TikTok's browser can't open a store (links.js buildGuide): the page dims to two steps, 1 Tap ⋯ with a 👆 poking up
   at TikTok's ⋯, 2 Tap Open in browser over a picture of TikTok's menu; Not now leaves a strip at the top. */
.tg { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 50; overflow-y: auto; background: #1e1f22;
  padding: 22px 22px max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.tg[hidden], .tg-strip[hidden] { display: none; }
.tg > * { width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
.tg-top { display: flex; align-items: flex-start; justify-content: space-between; max-width: none; margin-top: -10px; }
.tg-top .tg-step { margin-top: 14px; }
.tg-step { display: flex; align-items: center; gap: 10px; color: #ffffff; }
.tg-step b { font-size: 24px; font-weight: 800; line-height: 1.1; }
.tg-n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #3fd8ff 0%, #4f97ff 50%, #b9a0ff 100%);
  color: #ffffff; text-align: center; font-size: 22px; font-weight: 800; line-height: 42px; box-shadow: 0 0 18px rgba(63, 216, 255, 0.45); }
.tg-dots { display: inline-block; padding: 0 9px; border-radius: 10px; background: #2b2d31; border: 1px solid #4a4d55; color: #ffffff;
  font-size: 20px; font-weight: 800; line-height: 30px; letter-spacing: 1px; }
.tg-hand { font-size: 46px; line-height: 1; animation: tgPoke 1s ease-in-out infinite; filter: drop-shadow(0 4px 10px rgba(63, 216, 255, 0.45)); }
@keyframes tgPoke { 0%, 100% { transform: translateY(12px); } 50% { transform: translateY(-4px); } }
.tg-menu { margin-top: 2px; padding: 8px 8px 6px; border-radius: 20px; background: #ffffff; color: #161823;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55); }
.tg-row { position: relative; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; font-size: 16px; font-weight: 500; }
.tg-row + .tg-row { border-top: 1px solid #ececef; }
.tg-row.on { border-radius: 12px; border-top-color: transparent; box-shadow: 0 0 0 3px #4f97ff, 0 0 0 7px rgba(79, 151, 255, 0.3), 0 0 22px rgba(63, 216, 255, 0.45); }
.tg-row.on + .tg-row { border-top-color: transparent; }
.tg-icon { display: flex; width: 22px; height: 22px; }
.tg-icon svg { width: 22px; height: 22px; }
.tg-finger { position: absolute; right: 18px; top: 22px; font-size: 26px; }
.tg-later { align-self: center; width: auto; margin-top: 6px; padding: 6px 4px; border: 0; border-bottom: 1px solid #5c5f66; background: none;
  color: #a6abb3; font: inherit; font-size: 16px; font-weight: 600; }
.tg-strip { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 6px 54px 6px 16px; border: 0; background: linear-gradient(135deg, #3fd8ff 0%, #4f97ff 50%, #b9a0ff 100%);
  color: #ffffff; font: inherit; font-size: 17px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); }
.tg-strip b { font-weight: 800; }
.tg-strip .tg-dots { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.5); line-height: 24px; font-size: 17px; }
.tg-strip-hand { position: absolute; right: 12px; top: 10px; font-size: 28px; line-height: 1; animation: tgPoke 1s ease-in-out infinite; }
body.tg-stripped .links { padding-top: 64px; }
/* Copy link under the menu picture (links.js buildGuide), for a menu with no Open in browser; once tapped the steps
   dim, the picture goes, and it says to open Chrome (Safari) and paste, with the link itself. */
.tg-or { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: #a6abb3; font-size: 15px; font-weight: 600; }
.tg-or::before, .tg-or::after { content: ""; flex: 1; height: 1px; background: #3a3c42; }
.tg-copy { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 16px;
  border: 2px solid #4f97ff; background: rgba(79, 151, 255, 0.14); color: #ffffff; font: inherit; font-size: 20px; font-weight: 800; }
.tg-copy .tg-icon { width: 22px; height: 22px; }
.tg-copy.ok { border-color: #3ecf8e; background: rgba(62, 207, 142, 0.16); }
.tg-copy-hint { margin-top: -8px; margin-bottom: 0; text-align: center; color: #b5bac1; font-size: 15px; }
.tg-copy-hint[hidden], .tg-copied[hidden] { display: none; }
.tg-copied { display: flex; flex-direction: column; gap: 10px; }
.tg-now { padding: 12px 16px; border-radius: 16px; background: #ffffff; color: #161823; }
.tg-now b { display: block; font-size: 18px; line-height: 1.15; }
.tg-now span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.25; color: #4e5058; }
.tg-link { width: 100%; height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid #4a4d55; background: #2b2d31;
  color: #dbdee1; font: 15px system-ui, -apple-system, "Segoe UI", sans-serif; }
.tg.tg-done .tg-top, .tg.tg-done > .tg-step { opacity: 0.35; }
.tg.tg-done .tg-menu { display: none; }
@media (prefers-reduced-motion: reduce) { .tg-hand, .tg-strip-hand { animation: none; } }
