@font-face {
  font-family: "Geist Pixel";
  src: url("/assets/fonts/GeistPixel-Square.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  font-family: "Geist Pixel", monospace;
  font-synthesis: none;
  color: #2d3d2f;
  background: #fafbf9;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 1px solid #798e71; outline-offset: 5px; }
[hidden] { display: none !important; }
.page { max-width: 850px; margin: 0 auto; padding: 88px 35px 30px; }
h1 { font-size: 32px; font-weight: 400; letter-spacing: -1px; margin: 0 0 20px; }
.name-reveal { position: relative; border: 0; padding: 0; background: none; font: inherit; letter-spacing: inherit; cursor: default; }
.portrait { position: absolute; z-index: 40; left: calc(100% + 20px); top: 50%; width: 112px; height: 112px; object-fit: cover; border-radius: 8px; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(-50%) rotate(4deg) scale(.92); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.name-reveal:hover .portrait, .name-reveal:focus .portrait { opacity: 1; visibility: visible; transform: translateY(-50%) rotate(4deg) scale(1); }
.intro p { max-width: 565px; font-size: 16px; line-height: 1.75; color: #53624f; margin: 0; }
.intro p a { text-decoration: underline dotted; text-decoration-color: #c6cdbf; text-underline-offset: 3px; }
.socials { display: flex; gap: 20px; margin-top: 20px; font-size: 15px; color: #53624f; }
a:hover { color: #34492c; }
#garden { width: calc(100vw - 32px); max-width: 1280px; height: 1630px; position: relative; left: 50%; transform: translateX(-50%); margin-top: 28px; }
#world:focus { outline: none; }
#world { display: block; width: 100%; height: 100%; cursor: default; touch-action: pan-y; }
#portals { position: absolute; inset: 0; pointer-events: none; }
.portal { position: absolute; pointer-events: auto; transform: translate(-50%, -50%); width: 270px; height: 160px; margin-top: -18px; cursor: pointer; }
.bottle { position: absolute; pointer-events: auto; transform: translate(-50%,-50%); width: 48px; height: 48px; background: none; border: 0; cursor: pointer; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible { outline: 1px solid #798e71; outline-offset: 5px; }
dialog { border: 0; background: #fafbf9; color: #53675c; padding: 36px 28px 24px; width: min(360px, calc(100vw - 40px)); box-shadow: 0 12px 90px #40594b14; }
dialog::backdrop { background: #fafbf970; backdrop-filter: blur(3px); }
.bottle-close { position: absolute; right: 12px; top: 8px; }
dialog button { border: 0; background: none; padding: 8px 0; font-size: 13px; }
.bottle-close button { font-size: 24px; padding: 0 6px; }
#bottle-title { margin: 0 0 18px; font-size: 12px; color: #89978b; }
#bottle-message { line-height: 1.7; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
#bottle-actions, .note-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
#note-text { width: 100%; resize: vertical; background: transparent; border: 0; line-height: 1.7; padding: 0; font-size: 16px; }
#note-text::placeholder { color: #9aa597; }
.note-bottom small { color: #89978b; font-size: 11px; }
#bottle-status { font-size: 12px; line-height: 1.6; margin: 10px 0 0; }
#bottle-status:empty { display: none; }
button:disabled { opacity: .5; cursor: wait; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.notes-section { max-width: 565px; margin: 54px 0 0; }
.notes-section h2 { font-size: 14px; font-weight: 400; color: #667760; margin: 0 0 21px; }
.notes-section a { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; font-size: 16px; line-height: 1.65; }
.link-label { display: inline-flex; align-items: center; gap: 10px; }
.link-label img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.notes-section small { flex-shrink: 0; color: #667760; font-size: 13px; }
.notes-section p { font-size: 14px; line-height: 1.7; color: #667760; margin: 16px 0 70px; }
@media (max-width: 700px) {
  .page { padding: 52px 26px 24px; }
  h1 { font-size: 30px; }
  .portrait { left: auto; right: 0; top: calc(100% + 14px); transform: rotate(4deg) scale(.92); }
  .name-reveal:hover .portrait, .name-reveal:focus .portrait { transform: rotate(4deg) scale(1); }
  .intro p { font-size: 16px; }
  #garden { height: 1530px; margin-top: 24px; }
  .portal { width: 240px; height: 150px; }
  .notes-section a { font-size: 16px; flex-wrap: wrap; gap: 2px 16px; }
  .notes-section small { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
