/* Sign-in / sign-up page. Load AFTER harks-original.css. Everything is scoped to .li-* classes. */
.panel.li-panel { padding: 18px; }
.li-welcome { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 22px; align-items: center; }
.li-copy { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 6px 14px 20px; text-align: center; }
.li-title { margin: 0; font: 400 52px/1.02 var(--font-display); color: #ffa927; -webkit-text-stroke: 7px #1b5aa8; paint-order: stroke fill; text-shadow: 0 4px 0 rgba(22, 74, 124, .2); text-wrap: balance; }
.li-lead { max-width: 420px; margin: 0; font: 800 17px/1.5 var(--font-body); color: var(--ink); text-wrap: balance; }
.li-note { max-width: 380px; margin: 0; font: 600 14px/1.45 var(--font-body); color: var(--ink-soft); text-wrap: balance; }
.li-note b { font-weight: 800; color: var(--brown); }

.li-signin { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.li-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 280px; min-height: 56px; padding: 10px 26px; font-size: 23px; }
/* Google asks for its full-colour "G" on a white background, so it sits on a white disc. */
.li-g { flex: none; box-sizing: content-box; width: 20px; height: 20px; padding: 5px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.li-error { max-width: 360px; margin: 0; padding: 8px 12px; font: 800 13.5px/1.4 var(--font-body); color: #8f2018; background: #ffe3de; border: 2px solid #e8452f; border-radius: 10px; overflow-wrap: anywhere; }
.li-link { min-height: 32px; padding: 4px 2px; font: 800 14px var(--font-body); color: #165a96; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.li-link:hover { color: #a94800; }
.li-link:focus-visible { outline: 3px solid #1b5aa8; outline-offset: 2px; border-radius: 6px; }
.li-link:disabled { cursor: default; opacity: .6; }

/* The whole island map, with the Hark standing in the bottom corner. The frame keeps the map's
   own shape (1400 x 930) so none of it is cropped. */
.li-scene { position: relative; aspect-ratio: 1400 / 930; overflow: hidden; border-radius: 18px; background: #0f8fd9; }
.li-map { display: block; width: 100%; height: 100%; object-fit: cover; }
.li-hark { position: absolute; right: -1%; bottom: 1%; width: 37%; aspect-ratio: 1; padding: 0; background: none; border: 0; cursor: pointer; }
.li-hark:focus-visible { outline: 3px dashed #fff; border-radius: 50%; }
.li-hark img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 4px rgba(20, 70, 20, .3)); transform-origin: 50% 100%; }
.li-idle { animation: li-breathe 2.6s ease-in-out infinite; }
.li-hark:hover .li-idle { animation-duration: 1s; }
.li-hop { animation: li-hop .6s ease-out; }
.li-rings i { position: absolute; left: 22%; top: 22%; width: 56%; height: 56%; border: 5px solid #fff; border-radius: 50%; opacity: 0; pointer-events: none; animation: li-ring 1.1s ease-out forwards; }
.li-rings i:nth-child(2) { animation-delay: .18s; }
.li-rings i:nth-child(3) { animation-delay: .36s; }
.li-bubble { position: absolute; z-index: 2; right: 35%; bottom: 4%; pointer-events: none; }
.li-bubble span { display: block; padding: 7px 18px 9px; font: 400 23px/1.1 var(--font-display); color: #164a7c; background: #fff; border: 3px solid #1b5aa8; border-radius: 22px 22px 5px 22px; animation: li-pop .35s cubic-bezier(.2, 1.6, .4, 1) both; }

/* What you can do */
.li-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.li-features li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #eef8ff; border: 2px solid #9fd0f7; border-radius: 16px; }
/* Hover polish: the cards lift a little, the picture bounces, and the border brightens. */
.li-features li { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease; }
.li-features img { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
@media (hover: hover) {
  .li-features li:hover { transform: translateY(-5px); border-color: #4da6ee; background: #f6fcff; box-shadow: 0 8px 16px rgba(27, 90, 168, .22); }
  .li-features li:hover img { transform: scale(1.12) rotate(-4deg); }
}
.li-features img { flex: none; width: 76px; height: 76px; object-fit: contain; }
.li-features h2 { margin: 0 0 3px; font: 400 23px/1.1 var(--font-display); color: var(--brown); }
.li-features p { margin: 0; font: 600 13.5px/1.4 var(--font-body); color: var(--ink); }

@media (max-width: 860px) {
  .panel.li-panel { padding: 12px; }
  .li-welcome { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .li-copy { gap: 12px; padding: 10px 4px 4px; }
  .li-bubble span { padding: 4px 11px 6px; font-size: 17px; }
  .li-title { font-size: 40px; -webkit-text-stroke-width: 6px; }
  .li-lead { font-size: 15.5px; }
  .li-google { min-width: 0; width: 100%; font-size: 21px; }
  .li-signin { align-self: stretch; }
  .li-features { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
}

@keyframes li-breathe { 50% { transform: translateY(-7px); } }
@keyframes li-hop { 25% { transform: scale(1.06, .92); } 55% { transform: translateY(-28px) scale(.97, 1.04); } 80% { transform: scale(1.04, .95); } }
@keyframes li-ring { 0% { transform: scale(.5); opacity: .95; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes li-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .li-features li, .li-features img { transition: none; }
  .li-features li:hover, .li-features li:hover img { transform: none; }
  .li-scene *, .li-hark img { animation: none !important; }
  .li-rings { display: none; }
}
