/* LOGIN PALS + the clean log-in card (2026-11-27, js/loginpals.js, js/online-ui.js). The game's green and gold. */
.fullscreen.lp-screen { justify-content: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; background: linear-gradient(180deg, #e3f1e6 0%, #f6f2e8 60%); }
.lp-wrap { min-height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: max(10px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)); box-sizing: border-box; }
.lp-stage { width: min(440px, 100%); height: clamp(118px, 23dvh, 210px); display: flex; align-items: flex-end; justify-content: center; pointer-events: none; flex: none; }
.lp-cardbox { width: min(440px, 100%); position: relative; z-index: 1; }
.lp-svg { height: 100%; width: auto; max-width: 100%; overflow: visible; display: block; }

/* the pals */
.lp-shadow { fill: rgba(15, 60, 40, .12); }
.lp-tall .lp-body { fill: #0f7b4f; }
.lp-dark .lp-body { fill: #0b2e22; }
.lp-gold .lp-body { fill: #f2b632; }
.lp-dome .lp-body { fill: #46bd82; }
.lp-dot, .lp-pupil { fill: #10231a; }
.lp-white { fill: #ffffff; }
.lp-tall .lp-dot { fill: #eafff3; }
.lp-mouth, .lp-beak, .lp-lid { fill: none; stroke: #10231a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lp-tall .lp-mouth, .lp-tall .lp-lid { stroke: #eafff3; }
.lp-dark .lp-mouth, .lp-dark .lp-lid { stroke: #ffffff; }
.lp-svg[data-mode="idle"] .lp-mouth[d^="M-8"] { fill: #10231a; }
.lp-lid { opacity: 0; }
.lp-dot, .lp-white { transform-box: fill-box; transform-origin: center; transition: transform .08s; }
.lp-blink .lp-dot, .lp-blink .lp-white { transform: scaleY(.12); }
.lp-blink .lp-pupil { opacity: 0; }
/* eyes shut while the password is shown */
.lp-svg[data-mode="see"] .lp-dot, .lp-svg[data-mode="see"] .lp-white, .lp-svg[data-mode="see"] .lp-pupil { opacity: 0; }
.lp-svg[data-mode="see"] .lp-lid { opacity: 1; }
/* leaning in to watch you type, away for the password (--lean: -1 .. 1, js/loginpals.js) */
.lp-pal { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.lp-tall { transform: skewX(calc(var(--lean, 0) * -11deg)) scaleY(calc(1 + var(--peek, 0) * .05)); }
.lp-dark { transform: skewX(calc(var(--lean, 0) * -6deg)); }
.lp-gold { transform: rotate(calc(var(--lean, 0) * 7deg)); }
.lp-dome { transform: scale(calc(1 + var(--peek, 0) * .03), calc(1 - var(--peek, 0) * .03)); }
/* dropping in when the screen opens */
.lp-drop { animation: lpDrop .75s cubic-bezier(.25, 1.45, .55, 1) both; animation-delay: var(--d, 0s); }
@keyframes lpDrop { 0% { transform: translateY(-240px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(0); } }
.lp-svg.lp-shake { animation: lpShake .5s ease; }
@keyframes lpShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.lp-hop .lp-drop { animation: lpHop .6s ease both; }
@keyframes lpHop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-16px); } }
.lp-still .lp-drop, .lp-still .lp-pal, .lp-svg.lp-still { animation: none !important; transition: none !important; }

/* the card */
.lp-card.authbox { width: 100%; margin: 0; max-height: none; overflow: visible; background: #fff; border-radius: 24px; padding: 18px 18px 16px; box-shadow: 0 10px 30px -12px rgba(15, 60, 40, .28), 0 2px 6px rgba(15, 60, 40, .06); }
.lp-card .lp-title { text-align: center; font-family: var(--display); font-size: 25px; font-weight: 800; margin: 0; color: #10231a; }
.lp-card .lp-sub { text-align: center; font-size: 13.5px; color: #5b6b62; margin: 4px 0 14px; }
.lp-card .formrow label { font-size: 12.5px; font-weight: 700; color: #5b6b62; }
.lp-card .formrow input[type=text], .lp-card .formrow input[type=password], .lp-card .formrow input[type=email] { background: transparent; border: 0; border-bottom: 2px solid rgba(16, 35, 26, .16); border-radius: 0; padding: 0 2px; height: 42px; font-size: 16px; color: #10231a; }
.lp-card .formrow input:focus { background: transparent; border-color: #0f7b4f; }
.lp-card .lp-pw { position: relative; }
.lp-card .lp-pw input { padding-right: 42px !important; }
.lp-card .lp-eyebtn { position: absolute; right: 0; bottom: 4px; width: 38px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #5b6b62; font-size: 17px; }
.lp-card .lp-eyebtn:active { background: rgba(16, 35, 26, .06); }
.lp-card .btn.block[data-k="go"], .lp-card .btn.block[data-k="react"] { background: #0b2e22; color: #fff; border-radius: 14px; height: 48px; font-size: 15.5px; box-shadow: 0 6px 16px -8px rgba(11, 46, 34, .7); }
.lp-card .btn.block[data-k="go"]:disabled { background: #0b2e22; color: #fff; opacity: .65; }
html.dark .lp-card .btn.block[data-k="go"]:disabled { background: #17a366; }
.lp-card .tabs { background: #f1f4f1; }
.lp-card .lp-forgot { background: none; border: 0; color: #0f7b4f; font-weight: 700; font-size: 13.5px; text-align: right; padding: 0; margin-top: -4px; justify-self: end; }
.lp-card .lp-badge { width: 44px; height: 44px; border-radius: 14px; margin: 0 auto 8px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(145deg, #17a366, #0f7b4f); box-shadow: 0 6px 14px -6px rgba(15, 123, 79, .8); }

/* sideways phones and wide screens: the pals beside the card */
@media (min-width: 760px) and (orientation: landscape), (max-height: 520px) and (orientation: landscape) {
  .lp-wrap { flex-direction: row; gap: clamp(12px, 4vw, 40px); }
  .lp-stage { width: min(420px, 42vw); height: min(62vh, 340px); align-self: center; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .lp-wrap { align-items: flex-start; }
  .lp-stage { position: sticky; top: 8px; }
  .lp-card .lp-sub { margin-bottom: 8px; }
}

/* dark mode */
html.dark .fullscreen.lp-screen { background: linear-gradient(180deg, #0d2219 0%, #0b1712 70%); }
html.dark .lp-card.authbox { background: var(--surface, #16211b); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7); }
html.dark .lp-card .lp-title { color: #eef6f0; }
html.dark .lp-card .lp-sub, html.dark .lp-card .formrow label, html.dark .lp-card .lp-eyebtn { color: #a9bcb0; }
html.dark .lp-card .formrow input[type=text], html.dark .lp-card .formrow input[type=password], html.dark .lp-card .formrow input[type=email] { color: #eef6f0; border-bottom-color: rgba(238, 246, 240, .2); }
html.dark .lp-card .formrow input:focus { border-color: #34c184; }
html.dark .lp-card .btn.block[data-k="go"], html.dark .lp-card .btn.block[data-k="react"] { background: #17a366; }
html.dark .lp-card .tabs { background: rgba(255, 255, 255, .06); }
html.dark .lp-card .lp-forgot { color: #34c184; }
html.dark .lp-dark .lp-body { fill: #123b2c; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; }
html.dark .lp-shadow { fill: rgba(0, 0, 0, .35); }
