/* Leonidapad theme: Vice sunset.
   Matches the supplied logos: a violet-to-coral sky, palm silhouettes, chunky outlined lettering.
   Loaded last, so it re-themes the kit's tokens and the page's windows without touching the kit's files.
   The sky, sun, palms and skyline are baked into images (tools/scene-src.html, tools/render-scenes.mjs). */

:root {
  --lc-plum: #12041f;
  --lc-sky-1: #3a27c4;
  --lc-sky-2: #8b3fd6;
  --lc-sky-3: #e8499f;
  --lc-sky-4: #ff7a5c;
  --lc-sky-5: #ffc07a;
  --lc-postcard: linear-gradient(158deg, #3a27c4 0%, #8b3fd6 30%, #e8499f 62%, #ff8a4c 100%);
  --lc-outline: 7px;
}
html[data-ground="painting"] {
  --ground-bg: #1d0e30; --ground-surface: #281342; --ground-ink: #fff4fb; --ground-muted: #cdbbdd; --ground-accent: #ff4fa3;
}
body { background: var(--p-bg); }

/* ---------- lettering: the logo's chunky face with a hard black outline ---------- */
h1, h2, .closing__cta h2, .mo-wh__text {
  font-family: var(--font-logo); font-weight: 400; font-stretch: normal; letter-spacing: .012em;
  text-transform: uppercase; color: #fff;
  -webkit-text-stroke: var(--lc-outline) #000; paint-order: stroke fill;
  text-shadow: 0 5px 0 #000;
}
h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; }
h2 .muted { color: var(--lc-sky-5); }
.mo-wh__text { font-size: clamp(28px, 3.2vw, 48px); line-height: 1.16; -webkit-text-stroke-width: 6px; text-shadow: 0 4px 0 #000; }
.nav__logo { font-family: var(--font-logo); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; font-size: 19px; color: #fff; -webkit-text-stroke: 5px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000; }
.nav__logo .mark { -webkit-text-stroke: 0; text-shadow: none; box-shadow: 0 0 0 2px #000; }
.footer__lede { font-family: var(--font-logo); text-transform: uppercase; font-weight: 400; letter-spacing: .02em; font-size: 22px; }
@media (max-width: 420px) { .nav__logo { font-size: 15px; -webkit-text-stroke-width: 4px; } }

/* buttons: solid, black-edged, like a sticker */
.btn--primary { box-shadow: 0 0 0 2.5px #000; }
.btn--secondary { background: var(--lc-plum); color: #fff; box-shadow: 0 0 0 2.5px #000, inset 0 0 0 1.5px rgb(255 255 255 / .28); }
.btn--xl { font-family: var(--font-logo); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- the hero: key art layer, words on the calm left ---------- */
.hero--lc { background: var(--lc-plum); }
/* plum falls off under the words and under the facts; ::before sits above the image and below the wrap */
.hero--lc::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgb(10 3 18 / .94) 0, rgb(10 3 18 / .94) 6%, transparent 20%),
    linear-gradient(90deg, rgb(10 3 18 / .9) 0%, rgb(10 3 18 / .6) 34%, transparent 62%);
}
.hero--lc > .hero__bg { z-index: 0; }
.hero--lc > .wrap > .hero-text { position: relative; }
.hero--lc .hero__text h1 { font-size: clamp(32px, 3.5vw, 52px); line-height: 1.06; }
.hero--lc .hero__text { width: calc(50% - var(--gutter, 24px) / 2); }
.hero--lc .hero__lead { color: #fff; text-shadow: 0 1px 0 #000, 0 0 14px rgb(0 0 0 / .6); font-weight: 500; }
/* the logo files are 554px, so it is shown near its own size */
.lc-logo { position: absolute; right: 0; top: 46%; translate: 0 -50%; width: min(30vw, 420px); height: auto; filter: drop-shadow(0 22px 44px rgb(20 0 40 / .55)); pointer-events: none; z-index: 2; }
.hero--lc .hero__facts dt { color: var(--lc-sky-5); }
.hero--lc .hero__facts dd { color: #fff; font-weight: 500; text-shadow: 0 1px 0 #000; }
@media (max-width: 1023px) { .lc-logo { display: none; } .hero--lc .hero__text { width: 100%; } }
@media (max-width: 639px) {
  .hero--lc::before { background: linear-gradient(180deg, rgb(10 3 18 / .82), rgb(10 3 18 / .5) 70%); }
  .hero--lc .hero__facts { display: none; }
}

/* ---------- sections: halftone and glow instead of flat ground ---------- */
main > .section { position: relative; isolation: isolate; }
main > .section > .wrap { position: relative; z-index: 1; }
#launch, #coin, #stages, #giveaway { background: radial-gradient(55% 50% at 8% 0%, rgb(255 79 163 / .2), transparent 70%), radial-gradient(50% 60% at 100% 35%, rgb(84 84 204 / .3), transparent 70%), #0a0412; }
#launch::before, #coin::before, #stages::before, #giveaway::before, #rules::before, #rewards::before, #launchpad::before, #curve::before, #buy::before, #faq::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(rgb(255 138 76 / .35) 1.1px, transparent 1.7px) 0 0 / 20px 20px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 55%); mask-image: linear-gradient(135deg, #000, transparent 55%);
}
#rules, #rewards, #launchpad { background: radial-gradient(60% 40% at 90% 0%, rgb(224 57 159 / .22), transparent 70%), #0c0517; }
#rules::before, #rewards::before, #launchpad::before { -webkit-mask-image: linear-gradient(225deg, #000, transparent 50%); mask-image: linear-gradient(225deg, #000, transparent 50%); }
#curve, #buy { background: radial-gradient(50% 50% at 4% 30%, rgb(122 47 192 / .35), transparent 70%), radial-gradient(45% 50% at 100% 100%, rgb(255 122 92 / .22), transparent 70%), #09030f; }
#faq { background: radial-gradient(60% 45% at 0% 100%, rgb(255 79 163 / .18), transparent 70%), #0b0515; }
/* the two quiet screens get the city and a palm at their foot */
#curve::after, #buy::after, #faq::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 0; pointer-events: none; opacity: .6;
  background: url("art/palm-b.svg") left 2% bottom -3% / auto 88% no-repeat, linear-gradient(transparent 30%, rgb(224 57 159 / .22)), url("art/skyline.svg") bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 55%); mask-image: linear-gradient(transparent, #000 55%);
}
#faq::after { background: url("art/palm-a.svg") left 5% bottom -3% / auto 90% no-repeat, linear-gradient(transparent 30%, rgb(255 122 92 / .2)), url("art/skyline.svg") bottom / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 58%); mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 58%); }

/* the statement: the baked sunset scene behind the type */
#supply { background: #12041f; overflow: hidden; }
#supply > .layer { object-fit: cover; object-position: 50% 100%; z-index: 0; }
#supply .t-label { color: var(--lc-sky-5); font-family: var(--font-logo); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }

/* ---------- cards: sunset postcards with black edges ---------- */
.card--open .panel, .frame--split { background: var(--lc-postcard) !important; }
.card--open .panel {
  border: 2.5px solid #000; border-radius: var(--r-lg);
  box-shadow: 0 0 0 1.5px rgb(255 138 76 / .55), 0 18px 40px -18px rgb(224 57 159 / .6);
  position: relative; overflow: hidden;
}
.card--open .panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .8 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>"); }
.card--open .panel > .stage, .frame--split > .stage { --fx-bg: #14081f; --fx-surface: #1d0e30; --fx-ink: #fff4fb; --fx-muted: #c3b0d3; --fx-accent: #ff4fa3; --fx-accent-ink: #14031c; }
.card h3 { font-family: var(--font-logo); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 22px; color: #fff; text-shadow: 0 2px 0 #000; }
.card > p { color: #f1e6f7; }
.frame--split { border: 2.5px solid #000; box-shadow: 0 0 0 1.5px rgb(255 138 76 / .55), 0 18px 40px -18px rgb(224 57 159 / .6); }

/* ---------- product windows: dark plum glass with pink accents ---------- */
.lp, .app.ui {
  --fx-bg: #14081f; --fx-surface: #1d0e30; --fx-ink: #fff4fb; --fx-muted: #c3b0d3; --fx-accent: #ff4fa3; --fx-accent-ink: #14031c;
}
.app.ui { border: 2.5px solid #000; box-shadow: 0 0 0 1.5px rgb(255 138 76 / .55), 0 24px 60px -20px rgb(224 57 159 / .55); }
.app > .app__pane--list { background: linear-gradient(transparent 55%, rgb(224 57 159 / .22) 85%, rgb(255 122 92 / .3)); }
.app > .app__pane--list::after { display: none; }
.lp .lp-status[data-tone="bad"], .lp-field .lp-err { color: #ff8da0; }
.lp-tick { background: color-mix(in oklab, #ff4fa3 28%, #14081f); color: #ffb3d6; }
/* in-window buttons are real controls: the page's one 44px height */
.lp .ui-btn { min-height: 44px; padding-inline: 18px; border-radius: 10px; font-size: 14px; }
.lp .ui-btn--accent { color: #14031c; box-shadow: 0 0 0 2px #000; }
/* code tokens for a dark window */
.ui-code .k { color: #ff86c0; } .ui-code .f { color: #a9d2ff; } .ui-code .n { color: #ffc98a; } .ui-code .c { color: #b9a9c9; }
.ui-code__pre { color: #f3e9f8; }

/* the plate: a Leonida plate with a sunset band, set in the logo's face */
.lp-plate { position: relative; padding: 28px 18px 14px; background: #fff7ee; border: 3px solid #000; border-radius: 10px; box-shadow: inset 0 0 0 3px #fff7ee, inset 0 0 0 4.5px #14031c; }
.lp-plate::before {
  content: "Leonida"; position: absolute; left: 14px; right: 14px; top: 8px; height: 17px; border-radius: 4px 4px 0 0;
  display: grid; place-items: center; font: 400 12px/1 var(--font-logo); letter-spacing: .24em; text-transform: uppercase; color: #fff;
  background: var(--lc-postcard); text-shadow: 0 1px 0 #000;
}
.lp-plate__addr { color: #14031c; }
.lp-plate__addr b { color: #d4157a; }
.lp-plate__screw { background: #cdbfb4; box-shadow: inset 0 0 0 1px #14031c; }

/* ---------- small things ---------- */
.link { color: var(--lc-sky-5); }
.faq__item { border-color: rgb(255 138 76 / .35); }
.faq__item h3 { font-family: var(--font-logo); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 18px; }
.footer--dark { background: radial-gradient(70% 90% at 85% 0%, rgb(224 57 159 / .35), transparent 70%), radial-gradient(60% 80% at 0% 0%, rgb(84 84 204 / .3), transparent 70%), #10051b; position: relative; overflow: hidden; }
.footer--dark .closing__cta { position: relative; }
.lc-close-logo { position: absolute; right: 0; top: 4px; width: min(18vw, 250px); height: auto; filter: drop-shadow(0 16px 30px rgb(0 0 0 / .5)); pointer-events: none; }
@media (max-width: 1023px) { .lc-close-logo { display: none; } }

/* ---------- the official contract address (published from /contract) ---------- */
.lc-ca { display: grid; gap: 6px; margin-top: var(--s-4); max-width: 100%; }
.lc-ca__empty { margin: 0; color: #fff; font-size: 14px; text-shadow: 0 1px 0 #000; }
.lc-ca__live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 8px 8px 14px; border-radius: 12px; background: rgb(14 4 24 / .86); border: 2px solid #000; box-shadow: 0 0 0 1.5px rgb(255 138 76 / .6); }
.lc-ca__live[hidden], .lc-ca__empty[hidden] { display: none; }
.lc-ca__label { font-family: var(--font-logo); text-transform: uppercase; letter-spacing: .05em; font-size: 13px; color: var(--lc-sky-5); }
.lc-ca__addr { font: 500 14px/1.3 var(--font-mono); color: #fff; overflow-wrap: anywhere; min-width: 0; flex: 1 1 200px; }
.lc-ca__copy { min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: var(--p-accent); color: var(--p-accent-ink); font: 500 14px var(--font-text); cursor: pointer; box-shadow: 0 0 0 2px #000; }
.lc-ca__copy:hover { filter: brightness(1.08); }
.lc-ca__status { margin: 0; min-height: 18px; font-size: 13px; color: #fff; text-shadow: 0 1px 0 #000; }

/* ---------- fixes from the consistency run ---------- */
/* a brighter postcard so the dark windows keep 3:1 against their ground */
:root { --lc-postcard: linear-gradient(158deg, #6a4cff 0%, #b155ee 30%, #f45fa6 62%, #ffa35e 100%); }
.hero--lc .hero__facts dt { color: #fff; opacity: .92; text-shadow: 0 1px 0 #000, 0 0 8px rgb(0 0 0 / .7); }
.lp .ui-btn { font-size: 16px; }
.lp-ledger th, .lp-ledger td { padding-inline: 12px; }
.lp-ledger .ui-head { padding-inline: 12px; }
.lc-logo { right: 3px; }
/* tablets: the cards stack one to a row, so the code card needs room and the curve section takes two screens */
@media (min-width: 640px) and (max-width: 1023px) {
  #rules .panel, #coin .panel { --p-h: 340px; }
  #rules .at-rise, #coin .at-rise { --ay: 16px !important; }
  #curve, #buy { --h: 2; }
}

/* ---------- second pass ---------- */
@media (max-width: 639px) {
  .hero--lc .hero__text h1 { font-size: 30px; }
  .hero--lc .hero__lead { font-size: 16px; line-height: 1.45; }
  .lc-ca__live { padding: 6px 6px 6px 12px; }
}
.lp-field { min-width: 0; }
.lp-field .lp-in { min-width: 0; max-width: 100%; box-sizing: border-box; }
.lp-field input { width: 0; }
.lc-close-logo { right: 3px; }
@media (min-width: 640px) and (max-width: 1023px) { .app > .app__pane--list { max-height: 190px; } }
.lp-ledger table { font-size: 12px; }
.lp-ledger th, .lp-ledger td { padding-inline: 10px; }

/* ---------- round two: phone slots and the footer mark ---------- */
.footer__mark { font-family: var(--font-logo); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; color: #fff; -webkit-text-stroke: 5px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000; }
.footer__mark .mark { -webkit-text-stroke: 0; text-shadow: none; box-shadow: 0 0 0 2px #000; }
@media (max-width: 639px) {
  #rules .at-rise, #coin .at-rise { --ax: 12px !important; }
  #rules .ui-code__pre { font-size: 11px; }
  .hero--lc .hero__text h1 { font-size: 28px; }
}

/* ---------- round three: the phone hero and heading scale ---------- */
@media (max-width: 639px) {
  /* the kit's photo hero keeps 450px free above the words for a picture; here the picture is the layer behind */
  .hero--lc { padding-top: calc(var(--nav) + var(--s-6)) !important; }
  .hero--lc .hero__text h1 { font-size: 30px; }
  h2 { font-size: 24px; }
}

/* phones and tablets: the sunset fills the whole first screen (the kit sizes the image to its own ratio there) */
@media (max-width: 1023px) {
  .hero--lc > .hero__bg { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
}

/* two-column sections stack on phones and tablets and need more than one screen: they grow instead of spilling into the next section */
@media (max-width: 1023px), (max-height: 820px) {
  #rewards, #launchpad, #faq { --h: 2; }
}
@media (max-height: 700px) {
  #rewards, #launchpad, #faq { --h: 2.6; }
}

/* text sits on calm ground: where the words sit over the sun (phones, tablets) they get a soft dark halo of their own,
   so it works wherever the layout puts them */
@media (max-width: 1023px) {
  .hero--lc .hero__text { isolation: isolate; }
  .hero--lc .hero__text::before {
    content: ""; position: absolute; inset: -20px -16px; z-index: -1; border-radius: 28px; pointer-events: none;
    background: rgb(10 3 18 / .66); filter: blur(14px);
  }
}
@media (max-width: 639px) {
  #buy::after, #faq::after, #curve::after { opacity: .22; }
}

/* the giveaway page is a working screen: it takes the height its content needs, never a fixed number of screens */
main > #giveaway.section { height: auto; min-height: 100vh; min-height: 100svh; }
