/* The website's front page (app.js renderLanding, body.landing-mode): full width, out of the 520 px
   game column. Sky-island art, the tower and two dragons up top; plain sections below. */
:root {
  --lp-night: #071d43;
  --lp-deep: #0c2c63;
  --lp-sky: #1d64b4;
  --lp-ice: #f4f9ff;
  --lp-mist: #c4def5;
  --lp-crystal: #8ce8ff;
  --lp-ember: #ff8f5e;
  --lp-ink: #0b4f9e;
  --lp-wrap: 1120px;
}

body.landing-mode { background: var(--lp-night); overflow-x: hidden; }
body.landing-mode .shell { width: 100%; max-width: none; min-height: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
body.landing-mode main, body.landing-mode #content { margin: 0; padding: 0; }
body.landing-mode #notice:empty { display: none; }

.landing { color: var(--lp-ice); font-family: DraklyBold, 'Trebuchet MS', system-ui, sans-serif; }
.landing a { color: inherit; }
.landing :focus-visible { outline: 3px solid var(--lp-crystal); outline-offset: 3px; border-radius: 6px; }
.landing h2 { margin: 0 0 16px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; letter-spacing: -.02em; color: #fff; text-shadow: 0 3px 0 #0a3f80; }
.landing h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.15; color: #fff; text-shadow: 0 2px 0 #0a3f80; }
.landing p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--lp-mist); }

/* Top bar over the hero art. */
.lp-bar { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(var(--safe-top, 0px) + 14px) clamp(16px, 4vw, 40px) 14px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-brand-icon { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 2px #ffffff66, 0 4px 10px #04224d88; }
.lp-brand-word { width: auto; height: 34px; filter: drop-shadow(0 2px 4px #04224d88); }
.lp-bar-nav { display: flex; align-items: center; gap: 8px; }
.lp-lang, .lp-bar-login { min-height: 40px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 15px; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.lp-lang { border: 2px solid #ffffff55; color: #fff; background: #0a2f6a66; backdrop-filter: blur(6px); }
.landing .lp-bar-login { border: 2px solid #fff; color: var(--lp-ink); background: #fff; }
.lp-lang:hover { background: #0a2f6aaa; }
.lp-install { min-height: 40px; padding: 0 16px 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 2px solid var(--lp-crystal); color: #fff; background: #0a2f6a99; backdrop-filter: blur(6px); font: inherit; font-size: 15px; cursor: pointer; }
.lp-install[hidden] { display: none; }
.lp-install:hover { background: #0a2f6add; }
.lp-install-icon { width: 18px; height: 18px; background: currentColor; }
.lp-lang-short { display: none; }
.landing .lp-bar-login:hover { background: var(--lp-crystal); border-color: var(--lp-crystal); }

/* Hero: the island is the backdrop, the tower stands on its stone circle, dragons around it. */
.lp-hero { position: relative; display: grid; align-items: center; min-height: min(100svh, 820px); padding: 110px clamp(16px, 5vw, 64px) 72px; overflow: hidden;
  background: linear-gradient(90deg, var(--lp-night) 0%, #071d43e6 30%, #071d4300 62%), linear-gradient(0deg, var(--lp-night) 0%, #071d4300 24%), url('/assets/cartoon-tower-location-wide-v2.webp') 62% 100% / cover no-repeat; }
.lp-stage { position: absolute; inset: 0; pointer-events: none; }
.lp-tower { position: absolute; right: 13%; bottom: 7%; width: auto; height: 74%; filter: drop-shadow(0 18px 24px #062a5e66); }
.lp-dragon { position: absolute; width: auto; filter: drop-shadow(0 14px 18px #062a5e55); }
.lp-dragon-a { right: 31%; top: 18%; height: 30%; transform: scaleX(-1) rotate(-6deg); }
.lp-dragon-b { right: 2%; bottom: 8%; height: 30%; transform: scaleX(-1); }
.lp-hero-copy { position: relative; z-index: 2; width: min(100%, 520px); margin-left: max(0px, calc((100% - var(--lp-wrap)) / 2)); }
/* The DRAKLY wordmark is the brand file, never typeset (docs/11-brand-asset-kit.md). */
.lp-wordmark { margin: 0 0 18px; line-height: 0; }
.lp-wordmark img { display: block; width: min(100%, 500px); height: auto; filter: drop-shadow(0 8px 18px #02163a99); }
.lp-lead { max-width: 30ch; font-size: clamp(20px, 2vw, 24px) !important; line-height: 1.35 !important; color: #fff !important; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-cta .btn { min-height: 58px; padding: 0 30px; font-size: 18px; text-decoration: none; }
.lp-note { margin-top: 16px !important; font-size: 15px !important; color: var(--lp-mist) !important; }

/* Sections. */
.lp-section { width: min(100%, var(--lp-wrap)); margin: 0 auto; padding: 88px clamp(16px, 4vw, 40px); }
.lp-section > h2 { text-align: center; }

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: lp-step; }
.lp-steps li { counter-increment: lp-step; text-align: center; }
.lp-step-art { display: grid; place-items: center; width: 200px; height: 200px; margin: 0 auto 18px; border-radius: 50%; background: radial-gradient(circle, #2f86d855 0, #2f86d800 68%); }
.lp-step-art img { width: auto; height: 180px; max-width: 190px; object-fit: contain; filter: drop-shadow(0 10px 16px #03173a88); }
.lp-steps h3::before { content: counter(lp-step); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 50%; vertical-align: 3px; font-size: 18px; color: #fff; text-shadow: none; background: var(--lp-ember); box-shadow: 0 3px 0 #b9532d; }
.lp-steps p { max-width: 32ch; margin: 0 auto; }

/* Roles: the one band in brighter sky. */
.lp-roles { width: 100%; max-width: none; background: linear-gradient(180deg, var(--lp-night) 0, #0f3f84 22%, var(--lp-sky) 60%, #0f3f84 86%, var(--lp-night) 100%); }
.lp-roles-head, .lp-role-list { width: min(100%, var(--lp-wrap)); margin-left: auto; margin-right: auto; }
.lp-roles-head { text-align: center; }
.lp-roles-head p { max-width: 52ch; margin: 0 auto; color: #e6f3ff; }
.lp-role-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; padding: 0; list-style: none; text-align: center; }
.lp-role-list img { display: block; width: 100%; max-width: 300px; height: 240px; margin: 0 auto 8px; object-fit: contain; filter: drop-shadow(0 16px 20px #04224d77); }
.lp-role-list h3 { font-size: 28px; }
.lp-role-list p { color: #e6f3ff; }

/* Season. */
.lp-season { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 5vw, 64px); }
.lp-leagues { position: relative; height: 280px; }
.lp-leagues img { position: absolute; width: 170px; height: 170px; top: 60px; filter: drop-shadow(0 12px 18px #02163a99); }
.lp-leagues img:nth-child(1) { left: 4%; transform: rotate(-10deg); }
.lp-leagues img:nth-child(2) { left: 50%; top: 18px; width: 220px; height: 220px; transform: translateX(-50%); z-index: 1; }
.lp-leagues img:nth-child(3) { right: 4%; transform: rotate(10deg); }
.lp-season-copy p + p { margin-top: 14px; }
.lp-season-now { color: #fff !important; }
.lp-fund { margin-top: 18px; }
.lp-fund-bar { height: 14px; border-radius: 999px; background: #ffffff1f; overflow: hidden; }
.lp-fund-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lp-crystal), #fff); }
.lp-fund p { margin-top: 8px !important; font-size: 15px !important; }
.lp-fund b { color: #fff; }

/* Questions. */
.lp-faq { max-width: 780px; }
.lp-faq details { border-bottom: 2px solid #ffffff1c; }
.lp-faq details:first-of-type { margin-top: 28px; border-top: 2px solid #ffffff1c; }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; cursor: pointer; list-style: none; font-size: 19px; color: #fff; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; flex: none; font-family: DraklyBlack, 'Trebuchet MS', sans-serif; font-size: 26px; line-height: 1; color: var(--lp-crystal); transition: transform .2s ease; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { padding: 0 2px 22px; max-width: 64ch; }

/* Returning players: the one boxed panel on the page, it holds a form. */
.lp-login { max-width: 520px; scroll-margin-top: 24px; }
.lp-login { padding-top: 40px; padding-bottom: 40px; }
.lp-login > h2, .lp-login > p { text-align: center; }
.lp-login > p { margin-bottom: 22px; }
.lp-login .email-login { margin-top: 8px; }
.lp-login .gate-alt { margin: 22px 0 10px; font-size: 15px; color: var(--lp-mist); opacity: 1; }
.lp-login .btn { min-height: 52px; font-size: 17px; text-decoration: none; }
.lp-login .field label { color: var(--lp-mist); }

.lp-final { text-align: center; padding-bottom: 64px; }
.lp-final h2 { font-size: clamp(36px, 5vw, 56px); }
.lp-final .lp-cta { justify-content: center; }

.lp-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 28px 16px calc(var(--safe-bottom, 0px) + 32px); border-top: 2px solid #ffffff14; font-size: 15px; color: var(--lp-mist); }
.lp-foot a { text-decoration: none; }
.lp-foot a:hover { color: #fff; text-decoration: underline; }

/* One entrance on load: the dragons fly in. */
@media (prefers-reduced-motion: no-preference) {
  .lp-dragon-a { animation: lp-fly-a .9s cubic-bezier(.2, .8, .2, 1) both .15s; }
  .lp-dragon-b { animation: lp-fly-b .9s cubic-bezier(.2, .8, .2, 1) both .3s; }
  @keyframes lp-fly-a { from { opacity: 0; transform: scaleX(-1) rotate(-6deg) translate(-60px, 40px); } }
  @keyframes lp-fly-b { from { opacity: 0; transform: scaleX(-1) translate(-60px, 0); } }
}

/* Tablets and phones: the art on top, the copy under it. */
@media (max-width: 899px) {
  .lp-hero { display: block; min-height: 0; padding: 0 0 48px;
    background: linear-gradient(0deg, var(--lp-night) 0, var(--lp-night) calc(100% - min(66vw + 120px, 620px) + 30px), #071d4300 calc(100% - min(66vw + 120px, 620px) + 110px)), url('/assets/cartoon-tower-location-wide-v2.webp') 55% 0 / auto min(66vw + 190px, 690px) no-repeat, var(--lp-night); }
  .lp-stage { position: relative; inset: auto; height: min(66vw + 120px, 620px); }
  .lp-tower { right: 50%; bottom: 0; height: 74%; transform: translateX(50%); }
  .lp-dragon-a { right: auto; left: 2%; top: 26%; height: 34%; }
  .lp-dragon-b { right: 1%; bottom: 0; height: 32%; }
  .lp-hero-copy { width: auto; margin: -8px 0 0; padding: 0 16px; text-align: center; }
  .lp-wordmark img { width: min(86%, 420px); margin: 0 auto; }
  .lp-lead { margin: 0 auto !important; }
  .lp-cta { justify-content: center; }
  .lp-steps { grid-template-columns: 1fr; gap: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
  .lp-steps li { display: grid; grid-template-columns: 104px 1fr; column-gap: 16px; align-items: center; text-align: left; }
  .lp-step-art { grid-row: span 2; width: 104px; height: 104px; margin: 0; }
  .lp-step-art img { height: 96px; max-width: 100px; }
  .lp-steps h3 { align-self: end; font-size: 19px; }
  .lp-steps h3::before { width: 28px; height: 28px; margin-right: 8px; font-size: 15px; }
  .lp-steps p { align-self: start; margin: 0; max-width: none; }
  .lp-role-list { gap: 10px; }
  .lp-role-list img { height: 120px; }
  .lp-role-list h3 { font-size: 19px; }
  .lp-role-list p { font-size: 14px !important; line-height: 1.35; }
  .lp-season { grid-template-columns: 1fr; text-align: center; }
  .lp-leagues { width: min(100%, 420px); margin: 0 auto; }
  .lp-section { padding-top: 64px; padding-bottom: 64px; }
}
@media (max-width: 520px) {
  .lp-brand-word { display: none; }
  .lp-bar-nav { gap: 6px; }
  .lp-lang, .lp-bar-login, .lp-install { padding-left: 12px; padding-right: 12px; }
  .lp-lang-long { display: none; }
  .lp-lang-short { display: inline; }
  .lp-cta { flex-direction: column; align-items: stretch; }
  .lp-cta .btn { width: 100%; }
  .lp-leagues { height: 210px; }
  .lp-leagues img { width: 120px; height: 120px; top: 50px; }
  .lp-leagues img:nth-child(2) { width: 160px; height: 160px; top: 14px; }
  .landing p { font-size: 16px; }
}

/* iOS: the two steps of the Share menu (app.js installApp), in the game's sheet. */
.install-steps { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 12px; font-size: 16px; line-height: 1.45; }
.install-steps li::marker { font-weight: 700; color: var(--lp-crystal); }
.install-share { display: inline-block; vertical-align: -5px; margin: 0 2px; color: var(--lp-crystal); }
.install-note { margin: 0; font-size: 14px; line-height: 1.45; opacity: .85; }

/* Owner 2026-10-25: the live window's prize fund under the pitch (app.js renderLanding lpFund). */
.lp-live { display:inline-flex; align-items:center; gap:10px; margin:14px 0 0 !important; padding:8px 14px 8px 10px; border-radius:999px; background:#0b2a55cc; border:1px solid #ffd36b88; color:#ffe9b0 !important; font-size:15px !important; }
.lp-live img { flex:0 0 28px; width:28px; height:28px; object-fit:contain; }
.lp-live b { color:#fff; font-variant-numeric:tabular-nums; }
