/* Lucy Wonderland — compact social-link page. */
@font-face {
  font-family: Outfit;
  src: url('../assets/fonts/Outfit.woff') format('woff');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url('../assets/fonts/CormorantGaramond.woff') format('woff');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url('../assets/fonts/CormorantGaramond-Italic.woff') format('woff');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
:root {
  --background: #100b10;
  --panel: #1c111a;
  --text: #ffeff4;
  --muted: #bfa8b8;
  --rose: #ff8db0;
  --border: #ffffff16;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  padding: 32px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 15% 20%, #52203555, transparent 65%), var(--background);
  color: var(--text);
  font: 400 1rem/1.4 Outfit, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
::selection { background: var(--rose); color: var(--background); }
a:focus-visible { outline: 3px solid #ffbed3; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; top: 10px; left: 10px; background: var(--text); color: var(--background); padding: 12px 20px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.link-page {
  width: min(1020px, 100%);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  background: var(--panel);
  border: 1px solid #e3aac92b;
  border-radius: 18px;
  box-shadow: 0 30px 100px #0006;
  overflow: hidden;
}
.portrait-panel { position: relative; min-height: 660px; background: #27121d; }
.lucy-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #1c111a88, transparent 55%), linear-gradient(90deg, transparent 80%, #1c111a66); pointer-events: none; }
.link-panel { min-width: 0; padding: 28px 34px 18px; }
.identity { display: flex; align-items: center; justify-content: center; gap: 17px; margin: 0 0 25px; }
.lucy-logo { width: 104px; height: 104px; object-fit: contain; flex: none; }
h1 { font: 500 2.75rem/.9 Cormorant, Georgia, serif; letter-spacing: -.025em; }
h1 em { display: block; color: #ffbbce; font-size: .83em; font-weight: 400; margin-top: 8px; }
.social-links { display: grid; gap: 12px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 14px 19px;
  border: 1px solid #efd1e029;
  border-radius: 9px;
  background: linear-gradient(100deg, #33232e, #281c26);
  transition: background .18s, border-color .18s, transform .18s;
}
.social-link:hover { transform: translateY(-2px); border-color: #ee9bb580; background: #3b2736; }
.network-icon { width: 39px; flex: none; text-align: center; font: italic 700 1.7rem/1 Outfit, sans-serif; letter-spacing: -.09em; color: #76efbb; }
.anime .network-icon { color: #d9a9ff; }
.x-profile .network-icon { color: #fff4fa; font-style: normal; font-weight: 400; letter-spacing: 0; }
.link-label { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.link-label strong { font-size: 1rem; font-weight: 500; }
.link-label>span { color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.link-arrow { font-size: 1.4rem; color: #eeb4ca; margin-left: auto; padding-left: 8px; flex: none; }

.game-card {
  position: relative;
  display: grid;
  grid-template-columns: .97fr 1.03fr;
  isolation: isolate;
  min-height: 186px;
  margin-top: 24px;
  border: 1px solid #cb76a042;
  border-radius: 10px;
  background: #1e152c;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.game-card:hover { border-color: #e995b5aa; box-shadow: 0 8px 26px #07030966; }
.game-art { position: relative; overflow: hidden; min-height: 186px; }
.game-clouds { position: absolute; inset: 0; background: url('../games/towel-fall/assets/background.webp') 50% 0 / auto 450px repeat-y; animation: cloud-scroll 32s linear infinite; opacity: .85; }
.game-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 72%, #1e152c), linear-gradient(0deg, #1e152c77, transparent 45%); pointer-events: none; }
.game-logo { position: absolute; width: 87%; top: 13px; left: 5%; filter: drop-shadow(0 2px 4px #100819); }
.sarah { position: absolute; width: 91%; left: 4%; bottom: 18px; aspect-ratio: 332/155; background: url('../games/towel-fall/assets/towel.webp') no-repeat; background-size: 377.710843% 809.032258%; background-position: 1.518438% 5.641492%; transform: rotate(8deg); filter: drop-shadow(0 7px 5px #0a082077); }
.game-info { display: flex; flex-direction: column; justify-content: center; padding: 21px 20px 21px 8px; }
.game-label { font-size: .75rem; color: #debad0; letter-spacing: .04em; }
h2 { font: 600 1.35rem/1.05 Cormorant, Georgia, serif; margin-top: 9px; }
h2>span { display: block; font: 400 .875rem/1.3 Outfit, sans-serif; margin-top: 4px; color: #edcede; }
.play-button { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; padding: 10px 12px; min-height: 44px; border-radius: 5px; background: var(--rose); color: #22101c; font-size: .875rem; font-weight: 500; transition: background .18s; }
.play-button svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.play-button>span { margin-left: auto; font-size: 1.15rem; line-height: 1; }
.game-card:hover .play-button { background: #ffb9d0; }
footer { padding-top: 22px; color: #ab899f; text-align: center; font-size: .75rem; }
@keyframes cloud-scroll { to { background-position: 50% -450px; } }

@media (max-width: 850px) and (min-width: 651px) {
  body { padding: 24px; }
  .link-page { grid-template-columns: .78fr 1.22fr; }
  .link-panel { padding-inline: 23px; }
  .identity { gap: 10px; }
  .lucy-logo { width: 88px; height: 88px; }
  h1 { font-size: 2.4rem; }
  .social-link { padding-inline: 14px; gap: 11px; }
  .game-info { padding-right: 14px; }
  .game-label { letter-spacing: 0; }
}
@media (max-width: 650px) {
  body { display: block; padding: 18px; }
  .link-page { max-width: 440px; margin: 0 auto; grid-template-columns: 1fr; border-radius: 14px; }
  .portrait-panel { min-height: 0; height: 154px; }
  .lucy-portrait { object-position: 50% 9%; }
  .portrait-panel::after { background: linear-gradient(0deg, var(--panel), transparent 62%); }
  .link-panel { position: relative; padding: 0 20px 18px; }
  .identity { justify-content: flex-start; gap: 14px; margin-top: -29px; margin-bottom: 19px; }
  .lucy-logo { width: 88px; height: 88px; filter: drop-shadow(0 4px 10px #100b1077); }
  h1 { font-size: 2.45rem; text-shadow: 0 3px 12px #160a12; }
  .social-links { gap: 11px; }
  .social-link { min-height: 73px; padding: 12px 15px; gap: 13px; }
  .network-icon { width: 31px; font-size: 1.5rem; }
  .link-label strong { font-size: 1rem; }
  .link-arrow { font-size: 1.25rem; }
  .game-card { min-height: 175px; margin-top: 20px; grid-template-columns: .94fr 1.06fr; }
  .game-art { min-height: 175px; }
  .game-info { padding: 18px 14px 18px 4px; }
  .game-label { font-size: .75rem; letter-spacing: 0; }
  h2 { font-size: 1.3rem; }
  .game-logo { top: 21px; width: 94%; left: 2%; }
  .sarah { bottom: 26px; width: 100%; left: 0; }
  .play-button { padding-inline: 10px; }
  footer { padding-top: 19px; }
}
@media (max-width: 370px) {
  body { padding: 10px; }
  .link-panel { padding-inline: 15px; }
  .lucy-logo { width: 76px; height: 76px; }
  h1 { font-size: 2.15rem; }
  .identity { gap: 10px; }
  .social-link { gap: 9px; padding-inline: 12px; }
  .game-info { padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .social-link:hover { transform: none; }
}

/* Keep the social links first on small screens, then show the full bike photo. */
@media (max-width: 850px) {
  body { display: block; padding: 18px; }
  .link-page { max-width: 440px; margin: 0 auto; grid-template-columns: 1fr; }
  .link-panel { order: 1; padding: 24px 20px 18px; }
  .identity { margin-top: 0; }
  .portrait-panel { order: 2; height: auto; min-height: 0; aspect-ratio: 2 / 3; }
  .lucy-portrait { object-fit: contain; object-position: center; }
  .portrait-panel::after { background: linear-gradient(180deg, #1c111a44, transparent 15%); }
}
@media (max-width: 370px) {
  body { padding: 10px; }
  .link-panel { padding-inline: 15px; }
}
