/* Shared welcome lettering; the game workbench keeps its existing styles. */
.header-island-logo { display: block; width: 210px; height: auto; }
.site-header { min-height: 92px; background: rgba(255,255,255,.97); }
.brand-greeting { align-self: flex-end; margin: 0 0 8px 8px; font-size: .8rem; font-weight: 500; white-space: nowrap; color: #506d80; letter-spacing: .1em; transform: rotate(-5deg); }
.brand-greeting span { display: inline-block; animation: welcome-hop .6s both; }
.brand-greeting span:nth-child(2) { --tilt: 8deg; --lift: -3px; animation-delay: .1s; }
.brand-greeting span:nth-child(3) { --tilt: -7deg; --lift: 2px; animation-delay: .2s; }
.brand-greeting span:nth-child(4) { --tilt: 5deg; --lift: -2px; animation-delay: .3s; }
@keyframes welcome-hop {
  0% { opacity: 0; transform: translateY(9px) rotate(-12deg); }
  60% { opacity: 1; transform: translateY(-5px) rotate(8deg); }
  100% { opacity: 1; transform: translateY(var(--lift,0px)) rotate(var(--tilt,-4deg)); }
}
.home-page { --ink: #254b63; --ink-soft: #506d80; --moss: #368799; background: #fff; }
.home-page .island-hero { padding-top: 0; }
.sea-note { display: flex; align-items: center; gap: 12px; width: min(1370px,calc(100% - 48px)); min-height: 56px; margin: auto; color: var(--ink-soft); font-size: .85rem; }
.sea-note > span { font-size: 1.5rem; color: #368799; }
.sea-note p { margin: 0; }
.home-page .map-wrap { position: relative; isolation: isolate; min-height: 0; overflow: visible; border: 0; background: #f5fbfd url('/static/island-sea.webp') center top / 100% auto repeat-y; box-shadow: none; }
.home-page .map-wrap::before,.home-page .map-wrap::after { display: none; }
.home-page .plot-grid { position: relative; z-index: 2; margin: 0 auto; display: block; width: min(1600px,calc(100% - 48px)); aspect-ratio: 1600 / 1420; padding: 0; }
.map-routes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.map-routes path { fill: none; stroke: #6a827f; stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; opacity: .65; vector-effect: non-scaling-stroke; }
.home-page .plot,
.home-page .plot:not(.plot--hub,.plot--future),
.home-page .plot:hover { position: absolute; z-index: 1; left: var(--x); top: var(--y); width: var(--size,19%); translate: -50% -50%; min-width: 0; grid-area: auto; min-height: 0; margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; }
.home-page .plot::after { display: none; }
/* Uneven island clusters follow an open crescent; the bay stays free to grow. */
.plot--pond { --x: 17%; --y: 55%; --size: 29%; }
.plot--yard { --x: 28%; --y: 24%; --size: 23%; }
.plot--salon { --x: 52%; --y: 20%; --size: 22%; }
.plot--tide { --x: 83%; --y: 25%; --size: 18%; }
.plot--hub { --x: 71%; --y: 89%; --size: 12%; }
[data-destination="game-room"] { --x: 38%; --y: 9%; --size: 16%; }
[data-destination="library"] { --x: 54%; --y: 85%; --size: 22%; }
[data-destination="rabbit-hole"] { --x: 36%; --y: 80%; --size: 16%; }
.island-art { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.island-link { display: block; color: var(--ink); text-decoration: none; border-radius: 45%; transition: transform 180ms ease; }
.home-page .island-link:hover { transform: translateY(-4px); }
.island-link:focus-visible { outline: 3px dashed #236779; outline-offset: 5px; }
.pending-note { margin: 8px 0 0; color: #426376; text-align: center; font-size: .8rem; }
@media (min-width: 821px) {
  [data-destination="game-room"] .pending-note { position: absolute; left: 100%; top: 20%; width: max-content; margin: 0; text-align: left; font-size: .75rem; }
}
.home-page .plot--future { left: auto; top: auto; right: -24px; bottom: 0; width: 32%; translate: none; }
.plot--future .island-art { aspect-ratio: 3 / 2; }
.island-message { position: absolute; z-index: 3; top: -62px; right: 32px; width: 218px; pointer-events: none; }
.message-board { position: relative; }
.message-board img { display: block; width: 100%; height: auto; }
.message-board-copy { position: absolute; inset: 0; text-align: center; color: #3a554b; transform: rotate(-2deg); }
/* Body stays centered on the painted writing area for either one or two lines. */
.message-board-copy p { position: absolute; top: 51.5%; left: 50%; width: 80%; max-width: 9em; margin: 0; transform: translate(-50%,-50%); font-family: var(--display-font); font-size: 1.03rem; font-weight: 650; line-height: 1.3; white-space: pre-line; overflow-wrap: anywhere; text-wrap: balance; }
.wildlife-frames { position: absolute; background: url('/static/island-wildlife.webp') no-repeat; background-size: 400% 200%; }
.board-bird { width: 44px; height: 44px; left: 12px; top: 0; animation: bird-preen 10s step-end infinite; }
.board-cat { width: 88px; height: 88px; right: -5px; bottom: -19px; background-position: 0 100%; animation: cat-sweep 5s step-end infinite; }
@keyframes bird-preen { 0%,70%,100% { background-position: 0 0; } 40%,62% { background-position: 33.333% 0; } 48%,55% { background-position: 66.667% 0; } }
@keyframes cat-sweep { 0%,78%,100% { background-position: 0 100%; } 81%,96% { background-position: 33.333% 100%; } 84%,93% { background-position: 66.667% 100%; } 87%,90% { background-position: 100% 100%; } }
.home-page .island-forecast { display: flex; flex-wrap: wrap; gap: 12px 24px; min-height: 64px; justify-content: center; background: #f8fdff; color: var(--ink-soft); font-size: .85rem; }
.home-page .island-forecast[hidden] { display: none; }
.home-page .site-footer { background: #fff; min-height: 76px; }
.home-page .site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #236779; }
@media (max-width: 820px) {
  .site-header { min-height: 112px; }
  .header-island-logo { width: 130px; }
  .brand { gap: 0; }
  .brand-greeting { font-size: .65rem; margin-left: 4px; }
  .primary-nav a { min-height: 44px; }
  .boarding-link { max-width: 120px; padding-inline: 12px; }
  .home-page .plot-grid { display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: none; grid-template-rows: none; aspect-ratio: auto; gap: 48px; padding: 76px 0 60px; width: min(620px,calc(100% - 28px)); }
  .home-page .plot,.home-page .plot:not(.plot--hub,.plot--future),.home-page .plot:hover { position: relative; left: auto; top: auto; width: 78%; max-width: 320px; translate: none; justify-self: start; }
  .home-page .plot:nth-of-type(even) { justify-self: end; }
  .home-page .plot--hub { display: block; width: 42%; max-width: 180px; justify-self: start; }
  .home-page .plot--salon { width: 74%; justify-self: center; }
  .home-page .plot--tide { width: 70%; }
  .home-page [data-destination="game-room"] { margin-top: 40px; justify-self: start; }
  .home-page [data-destination="rabbit-hole"] { width: 72%; margin-top: 24px; }
  .home-page .plot--future { left: auto; top: auto; right: auto; bottom: auto; width: 90%; max-width: 400px; margin-right: -14px; justify-self: end; }
  .home-page .plot-grid { padding-bottom: 0; }
  .island-message { width: 160px; right: 16px; top: -35px; }
  .message-board-copy p { font-size: .75rem; }
  .board-bird { width: 32px; height: 32px; }
  .board-cat { width: 64px; height: 64px; bottom: -13px; }
  .sea-note { width: calc(100% - 28px); font-size: .75rem; padding-right: 145px; min-height: 64px; }
}
@media (max-width: 520px) {
  .home-page .plot-grid { max-width: 360px; gap: 36px; padding-top: 64px; }
  .sea-note { max-width: 360px; line-height: 1.7; }
  .home-page .island-forecast { padding: 16px; gap: 6px; flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-greeting span,.wildlife-frames { animation: none; }
  .island-link { transition: none; }
}
