:root { color-scheme: dark; --ink: #f0f2f6; --muted: #adb4c0; --accent: #79adff; --line: #2b3039; --surface: #13161b; }
  * { box-sizing: border-box; }
  body { position: relative; isolation: isolate; min-height: 100vh; margin: 0; overflow-x: hidden; background: #050608; color: var(--ink); font: 1rem/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
  body::before { content: ""; position: fixed; z-index: 0; inset: -15%; pointer-events: none; background: radial-gradient(ellipse at 20% 20%, #367ee854 0, transparent 32%), radial-gradient(ellipse at 80% 70%, #2369ba38 0, transparent 30%); transform: translate3d(-4%, -2%, 0); animation: ambient-drift 12s ease-in-out infinite alternate; }
  main { position: relative; z-index: 1; width: min(36rem, calc(100% - 2rem)); margin: 2.5rem auto; padding: 2rem; border: 1px solid #252a33; border-radius: 1.75rem; background: #0d0f13; box-shadow: 0 20px 60px #000b, 0 0 32px #4b83d30d; }
  main::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(ellipse 55% 15rem at 25% 0, #2879e54d, transparent 75%); background-size: 160% 100%; background-position: 0 0; background-repeat: no-repeat; animation: panel-glow 12s ease-in-out infinite alternate; }
  body.gallery-viewer-open { overflow: hidden; }
  body.gallery-viewer-open::before, body.gallery-viewer-open main::before { animation-play-state: paused; }
  header { text-align: center; margin-bottom: 1.75rem; animation: arrive .55s ease-out both; }
  .portrait-frame { position: relative; width: 6.75rem; height: 6.75rem; padding: .3rem; margin: 0 auto 1rem; border-radius: 50%; background: #13161c; outline: 1px solid #45658f; box-shadow: 0 0 0 4px #5488ce12, 0 8px 28px #0008; animation: photo-settle .8s ease-out both; }
  .portrait-crop { width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: #13161c; }
  .monogram { position: absolute; right: -.2rem; bottom: -.15rem; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #547cac; border-radius: 50%; background: #0d0f13; box-shadow: 0 0 0 2px #0d0f13, 0 4px 12px #0009; color: #a9cbff; font: 700 .7rem/1 system-ui, sans-serif; letter-spacing: .04em; }
  .portrait { width: 100%; height: 100%; object-fit: cover; object-position: 56% 65%; transform: scale(1.34); transform-origin: 56% 62%; display: block; }
  h1 { font: 400 clamp(2rem, 7vw, 2.6rem)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.035em; margin: 0; }
  header h1::after { content: ""; display: block; width: 2.25rem; height: 2px; margin: .75rem auto 0; border-radius: 2px; background: linear-gradient(90deg, #3972be, #91bdff); box-shadow: 0 0 10px #4b83d326; }
  .profile-note { max-width: 25rem; margin: .7rem auto 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
  ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
  li { min-width: 0; animation: arrive .45s ease-out both; animation-delay: calc(var(--order) * 45ms + 80ms); }
  .account-link { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) { .account-link:hover { background: #191d24; border-color: #557eaf; transform: translateY(-2px); box-shadow: 0 0 0 1px #4d80bd22, 0 6px 20px #0005; } }
  .account-link:active { transform: scale(.985); background: #1b2028; box-shadow: 0 0 14px #477ac21f; }
  a:focus-visible, button:focus-visible { outline: 3px solid #87b6ff; outline-offset: 3px; }
  .platform-badge { flex: 0 0 2.35rem; width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border-radius: .75rem; color: #c0c8d4; background: #20242b; transition: color .18s ease, background .18s ease; }
@media (hover: hover) and (pointer: fine) { .account-link:hover .platform-badge { color: #a9cbff; background: #1c2939; } }
  .platform-icon, .copy-icon { display: block; width: 1.35rem; height: 1.35rem; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
  .link-text { min-width: 0; }
  strong { display: block; font-size: 1rem; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
  .destination { display: block; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; margin-top: .2rem; line-height: 1.5; }
  .email-row { display: flex; gap: .55rem; align-items: stretch; min-width: 0; }
  .email-row .account-link { flex: 1; }
  .copy-email { flex: 0 0 3.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; border: 1px solid #303946; border-radius: 1rem; background: #141920; color: #9fc3ff; font: 500 .75rem/1.3 system-ui, sans-serif; padding: .5rem .25rem; min-height: 2.75rem; cursor: pointer; transition: background .18s ease, transform .18s ease; }
@media (hover: hover) and (pointer: fine) { .copy-email:hover { background: #1b2430; border-color: #638dc2; } }
  .copy-email:active { transform: scale(.95); }
  .copy-email[data-copied="true"] { background: #174638; border-color: #63ddb5; color: #8cf2cb; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  @keyframes ambient-drift { from { transform: translate3d(-4%, -2%, 0); } to { transform: translate3d(4%, 3%, 0); } }
  @keyframes panel-glow { from { background-position: 0 0; opacity: .75; } to { background-position: 100% 0; opacity: 1; } }
  @keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes photo-settle { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
  @media (max-width: 430px) { main { width: calc(100% - 1.25rem); margin: 1rem auto; padding: 1.5rem 1rem; border-radius: 1.4rem; } .account-link { padding: .85rem .8rem; gap: .65rem; } .platform-badge { flex-basis: 2rem; width: 2rem; height: 2rem; } }
  @media (max-width: 359px) { .email-row { flex-wrap: wrap; } .email-row .account-link { flex-basis: 100%; } .copy-email { flex-direction: row; flex: 1; gap: .5rem; } }
  @media (prefers-reduced-motion: reduce) { body::before, main::before, header, li, .portrait-frame { animation: none; } .account-link, .copy-email { transition: none; }.account-link:hover, .account-link:active, .copy-email:active { transform: none; } }

  .pet-teaser { margin-top: .8rem; padding: 1rem .9rem .8rem; border: 1px solid #3b4d66; border-radius: 1rem; background: linear-gradient(135deg, #121b29 0%, #10141b 58%, #111318 100%); box-shadow: inset 0 1px 0 #a4cbff12, 0 8px 24px #0007, 0 0 14px #4385d30d; animation: arrive .45s ease-out both; animation-delay: 170ms; }
  .pet-teaser h2 { margin: 0 0 .7rem; padding-left: .65rem; border-left: 2px solid #6887ad; color: #d4dbe5; font-size: .95rem; font-weight: 600; }
  .pet-teaser-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; }
  .pet-teaser-photo { display: block; overflow: hidden; aspect-ratio: 1.15; border: 1px solid #35485f; border-radius: .75rem; background: #15181e; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
@media (hover: hover) and (pointer: fine) { .pet-teaser-photo:hover { transform: translateY(-2px); border-color: #7897bd; box-shadow: 0 0 12px #629bf51c; } }
  .pet-teaser-photo:active { transform: scale(.97); }
  .pet-teaser-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
  .gallery-more { display: inline-flex; align-items: center; margin-top: .7rem; min-height: 2.75rem; color: #94bdf3; font-size: .875rem; font-weight: 600; text-decoration: underline; text-decoration-color: #719bce66; text-underline-offset: .2em; }
@media (hover: hover) and (pointer: fine) { .gallery-more:hover { color: #c8ddff; } }
  .pet-gallery-main { width: min(58rem,calc(100% - 2rem)); }
  .gallery-heading { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; text-align: left; margin-bottom: 1.5rem; }
  .gallery-heading h1 { font: 400 clamp(2rem,7vw,2.65rem)/1.15 Georgia,"Times New Roman",serif; letter-spacing: -.035em; margin: 0; }
  .back-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem .85rem; border: 1px solid #303640; border-radius: .8rem; color: #9fc3ff; text-decoration: none; background: #12151a; }
@media (hover: hover) and (pointer: fine) { .back-link:hover { border-color: #628bc0; background: #1a2029; } }
  .photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
  .photo-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #292e38; border-radius: 1rem; background: #111318; animation: arrive .4s ease-out both; animation-delay: calc(var(--order) * 45ms); }
  .photo-card--landscape { grid-column: 1 / -1; align-self: start; }
  .photo-open { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #15181e; cursor: zoom-in; }
  .photo-open img { display: block; width: 100%; height: auto; transition: transform .22s ease; }
@media (hover: hover) and (pointer: fine) { .photo-open:hover img { transform: scale(1.035); } }
  .photo-card figcaption { padding: .75rem .9rem; color: var(--muted); font-size: .875rem; }
  .photo-viewer { width: min(54rem,calc(100% - 1.5rem)); max-width: none; max-height: calc(100% - 1.5rem); padding: .85rem; overflow: auto; border: 1px solid #394f6d; border-radius: 1.1rem; background: #0b0d11; color: var(--ink); }
  .photo-viewer::backdrop { background: #050912e8; backdrop-filter: blur(4px); }
  .viewer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
  .viewer-count { color: #aeb6c3; font-size: .9rem; font-variant-numeric: tabular-nums; }
  .viewer-close { min-height: 2.75rem; padding: .55rem .9rem; border: 1px solid #303640; border-radius: .75rem; background: #171a20; color: var(--ink); font: inherit; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .viewer-close:hover { border-color: #648cc0; background: #1d2530; } }
  .viewer-image { display: block; width: 100%; max-height: min(76vh,52rem); object-fit: contain; border-radius: .65rem; background: #0c1119; touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
  .viewer-navigation { display: flex; justify-content: space-between; gap: .75rem; margin-top: .75rem; }
  .viewer-nav { min-height: 2.75rem; padding: .55rem .9rem; border: 1px solid #35465e; border-radius: .75rem; background: #12161d; color: #a9cbff; font: inherit; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
@media (hover: hover) and (pointer: fine) { .viewer-nav:hover { border-color: #648cc0; background: #1a2029; } }
  @media(max-width:700px) { .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; } }
  @media(max-width:430px) { .pet-gallery-main { width: calc(100% - 1.25rem); } .photo-grid { gap: .55rem; } .photo-card { border-radius: .8rem; } .photo-card figcaption { padding: .6rem .7rem; font-size: .8125rem; } .photo-viewer { padding: .6rem; } .viewer-navigation { gap: .5rem; } .viewer-nav { flex: 1; } }
  @media(max-width:359px) { .pet-teaser-grid { gap: .35rem; } .pet-teaser { padding: .8rem .65rem .6rem; } .photo-grid { grid-template-columns: minmax(0,1fr); } }
  @media(prefers-reduced-motion:reduce) { .pet-teaser,.photo-card { animation: none; } .pet-teaser-photo,.photo-open img { transition: none; }.pet-teaser-photo:hover,.pet-teaser-photo:active,.photo-open:hover img { transform: none; } }

  .pet-care-group { padding: .9rem; border: 1px solid #34465d; border-radius: 1.15rem; background: linear-gradient(145deg,#121a25,#0e1117 70%); box-shadow: inset 0 1px 0 #a4cbff0d,0 8px 24px #0005; }
  .pet-care-group > h2 { margin: 0 0 .7rem; padding-left: .65rem; border-left: 2px solid #6887ad; color: #d4dbe5; font-size: .95rem; font-weight: 600; }
  .pet-care-links { display: grid; gap: .55rem; }
  .pet-care-links .account-link { padding: .75rem .85rem; }
  .pet-care-group .pet-teaser { margin-top: .7rem; }
  .share-page { display: block; width: 100%; min-height: 2.9rem; margin: 1rem 0 0; padding: .65rem 1rem; border: 1px solid #385478; border-radius: .9rem; background: #111a26; color: #b4d1fb; font: 600 .95rem/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; cursor: pointer; transition: border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease; }
@media (hover: hover) and (pointer: fine) { .share-page:hover { border-color: #7198c8; background: #172334; transform: translateY(-1px); box-shadow: 0 0 16px #4b83d31a; } }
  .share-page:active { transform: scale(.99); }
  .share-page:disabled { cursor: wait; opacity: .72; }
  @media(max-width:430px) { .pet-care-group { padding: .75rem; } }
  @media(prefers-reduced-motion:reduce) { .share-page { transition: none; }.share-page:hover,.share-page:active { transform: none; } }

  .mobile-gallery-back { display: none; }
  @keyframes mobile-arrive { from { opacity: 0; } to { opacity: 1; } }
  @media (max-width: 700px) {
    main { margin: 1rem auto; padding: 1.5rem 1rem; }
    header { margin-bottom: 1.4rem; }
    body::before, main::before { animation: none; transform: none; }
    header, li, .portrait-frame, .pet-teaser, .photo-card { animation: mobile-arrive .25s ease-out both; animation-delay: 0s; }
    .gallery-page .pet-gallery-main { margin-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
    .gallery-heading > .back-link { display: none; }
    .mobile-gallery-back { position: fixed; z-index: 3; left: 50%; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: block; width: max-content; max-width: calc(100% - 2rem); }
    .mobile-gallery-back .back-link { min-height: 3rem; padding: .65rem 1.1rem; border-color: #4e709b; background: #111a26f5; box-shadow: 0 5px 24px #000b; }
    .photo-viewer[open] { display: flex; flex-direction: column; width: calc(100% - 1rem); height: calc(100vh - 1rem); height: calc(100dvh - 1rem); max-height: none; padding: .75rem; overflow: hidden; }
    .viewer-top, .viewer-navigation { flex-shrink: 0; }
    .viewer-image { flex: 1; height: 0; min-height: 0; max-height: none; }
    .viewer-nav { flex: 1; }
    .viewer-close, .viewer-nav { min-height: 3rem; padding: .65rem 1rem; }
  }
  @media (pointer: coarse) {
    .account-link, .copy-email, .share-page, .gallery-more { min-height: 3rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    header, li, .portrait-frame, .pet-teaser, .photo-card { animation: none; }
  }
