/* Lily pond: cute pixel art over a soft pastel panel (the owner's pick from the redesign boards, 2026-11-18).
   The controls are the board's: white cards, a white state pill with an ink ring, pink buttons that sit on an ink
   shadow, numbered zone chips, square lamps. Only the art at the top is new. Two ways to show it (Settings):
     banner   a pixel scene at the top of the panel
     overlay  the same scene over the whole panel: full for its opening, then it steps back to a faint layer
              while you work, and comes forward again when you leave the panel. */

:root[data-look="lily"][data-lights] {
  color-scheme: light;
  --ink: #3a2b45;
  --ink-2: #6b5577;
  --ink-3: #7d6b91;
  --ground: transparent;
  --ground-2: #f3edff;
  --field: #ffffff;
  --line: rgb(58 43 69 / 0.10);
  --edge: rgb(58 43 69 / 0.16);
  --on-ink: #ffffff;
  --card: rgb(255 255 255 / 0.80);
  --pink: #ff7aa6;
  --lilac: #a786f0;
  --mint: #8fd67c;
  --hall: #f6f2ff;
  --hall-ink: #6b5577;
  --seat-free: #8fd67c;
  --seat-taken: #ddd2ee;
  --light: #ff7aa6;
  --r-well: 12px;
  --r-control: 10px;
}

:root[data-look="lily"] body {
  background: linear-gradient(180deg, #d9ecff 0%, #fde7f3 58%, #fff6e8 100%) fixed;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}
:root[data-look="lily"][data-sky="night"] body { background: linear-gradient(180deg, #dcd6ff 0%, #f6e1f2 58%, #fff3e6 100%) fixed; }

/* ---- the scene ---- */
.lily { display: none; }
:root[data-look="lily"] .lily { display: block; }
.lily { position: relative; height: 230px; overflow: hidden; pointer-events: none; user-select: none; }
.lily canvas, .lily img { image-rendering: pixelated; display: block; }
.lily__bg { position: absolute; left: 0; top: 0; }
.lily__actors { position: absolute; inset: 0; }
.lily__actors > * { position: absolute; }
.lily__title { position: absolute; left: 14px; top: 14px; width: auto; height: 33px; z-index: 3; }
.lily__island { right: -40px; top: 58px; }
.lily__dog { right: 40px; top: 46px; }
.lily__line { right: 79px; top: 68px; width: 60px; height: 90px; overflow: visible; }
.lily__cord { stroke: #3a2b45; stroke-width: 1.4; fill: none; }
.lily__float { fill: #ff6b6b; stroke: #3a2b45; stroke-width: 1.2; }
.lily__bang { right: 90px; top: 22px; opacity: 0; }
.lily__bang.is-on { animation: bang 700ms steps(4, end) both; }
@keyframes bang { 0% { opacity: 1; transform: translateY(6px); } 25% { transform: translateY(0); } 85% { opacity: 1; } 100% { opacity: 0; } }
.lily__cloud1 { left: 150px; top: 18px; animation: drift 60s steps(120, end) infinite; }
.lily__cloud2 { left: 268px; top: 52px; opacity: 0.85; animation: drift 90s steps(90, end) infinite reverse; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
.lily__wake { position: absolute; left: 0; top: 0; }
.lily__pad1 { left: 4px; top: 162px; }
.lily__pad2 { left: 200px; top: 168px; transform: scaleX(-1); }
.lily__pad3 { right: 6px; top: 158px; }
:root[data-sky="night"] .lily__cloud1, :root[data-sky="night"] .lily__cloud2 { opacity: 0.35; }

/* the boat rests and bobs one art pixel; while hunting she rows (a two-step rock) */
.lily__boat { left: 18px; top: 92px; width: 192px; height: 128px; z-index: 2; }
.lily__boat img { width: 192px; height: 128px; animation: bob 1.2s steps(2, end) infinite; }
@keyframes bob { 50% { transform: translateY(2px); } }
.lily[data-mode="hunt"] .lily__boat { animation: row 9s steps(36, end) infinite alternate; }
.lily[data-mode="hunt"] .lily__boat img { animation: rock 0.44s steps(2, end) infinite; transform-origin: 60% 80%; }
@keyframes rock { 0% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(2px); } }
@keyframes row { from { transform: translateX(0); } to { transform: translateX(36px); } }
.lily[data-mode="held"] .lily__boat img { animation: bob 0.6s steps(2, end) infinite; }

/* stuck: no refresh for 8 s while hunting. The rowing stops and the cat dozes. */
.lily__zzz { position: absolute; left: 118px; top: 6px; display: none; }
.lily__zzz canvas { position: absolute; }
.lily__zzz canvas:first-child { left: 0; top: 10px; animation: zz 1.6s steps(4, end) infinite; }
.lily__zzz canvas:last-child { left: 12px; top: 0; animation: zz 1.6s steps(4, end) 0.8s infinite; }
@keyframes zz { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.lily.is-asleep .lily__zzz { display: block; }
.lily.is-asleep .lily__boat, .lily.is-asleep .lily__boat img { animation-play-state: paused; }

/* a jumping fish and its splash; hearts that rise when seats are held */
.lily__fish { position: absolute; inset: 0; }
.lily__jumper { position: absolute; top: 146px; }
.lily__splash { position: absolute; top: 184px; width: 6px; height: 2px; background: #ecfaff; box-shadow: -8px -4px 0 #ecfaff, 8px -2px 0 #ecfaff; animation: splash 600ms steps(3, end) both; }
@keyframes splash { from { opacity: 1; } to { opacity: 0; transform: translateY(-4px); } }
.lily__fx { position: absolute; inset: 0; z-index: 3; }
.lily__float-up { position: absolute; opacity: 0; animation: float-up 1.8s steps(12, end) var(--delay, 0ms) both; }
@keyframes float-up { 0% { opacity: 0; transform: translateY(8px); } 12% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-64px); } }

/* ---- banner: the scene at the top; the bar sits on it ---- */
:root[data-look="lily"] .bar { position: absolute; top: 0; left: 0; right: 0; background: transparent; padding: 66px 14px 0; z-index: 4; justify-content: flex-start; gap: 8px; pointer-events: none; }
:root[data-look="lily"] .bar > * { pointer-events: auto; }
:root[data-look="lily"] .mark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:root[data-look="lily"] .state {
  margin-left: 0; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 9px; border-radius: 999px;
  background: rgb(255 255 255 / 0.92); color: var(--ink); font-weight: 600; font-size: 13px;
  box-shadow: 0 0 0 2px var(--ink), 0 3px 0 2px rgb(58 43 69 / 0.25);
}
:root[data-look="lily"] .state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px var(--ink); flex: none; }
:root[data-look="lily"] .lily[data-mode="hunt"] ~ .bar .state::before, :root[data-look="lily"][data-lights="down"] .state::before { background: #ffd86e; }
:root[data-look="lily"] .gear { position: absolute; right: 12px; top: 12px; background: rgb(255 255 255 / 0.85); box-shadow: 0 0 0 2px var(--ink); color: var(--ink); border-radius: 10px; margin: 0; }
:root[data-look="lily"] .wrap { position: relative; z-index: 1; margin-top: -10px; padding: 0 12px var(--s-8); }

/* ---- the board's cards and controls ---- */
:root[data-look="lily"] .hall__well { background: var(--hall); box-shadow: 0 0 0 4px var(--card); }
:root[data-look="lily"] .hall { background: var(--card); border-radius: 14px; padding: 10px; box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 6px 18px -10px rgb(58 43 69 / 0.35); }
:root[data-look="lily"] .hall__stage { fill: #c7b8e6; }
:root[data-look="lily"] .seat--lit { stroke: var(--ink); stroke-width: 1.2; }
:root[data-look="lily"] .seat--failed { stroke: #3a2b45; fill: #ffd86e; }
:root[data-look="lily"] .aim { stroke: var(--ink); opacity: 0.7; }
:root[data-look="lily"] .part, :root[data-look="lily"] .go, :root[data-look="lily"] .sheet, :root[data-look="lily"] .hunt, :root[data-look="lily"] .won {
  margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 6px 18px -10px rgb(58 43 69 / 0.35);
  backdrop-filter: blur(6px);
}
:root[data-look="lily"] .part > h2, :root[data-look="lily"] .sheet h3 {
  font: 700 11px/1 "Bahnschrift", "Segoe UI", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 10px;
}
:root[data-look="lily"] input[type="text"], :root[data-look="lily"] input[type="url"], :root[data-look="lily"] input[type="number"],
:root[data-look="lily"] input[type="tel"], :root[data-look="lily"] input[type="email"], :root[data-look="lily"] input[type="datetime-local"],
:root[data-look="lily"] select { border: 0; box-shadow: 0 0 0 1.5px var(--line) inset; border-radius: 10px; }
:root[data-look="lily"] input:focus-visible, :root[data-look="lily"] select:focus-visible { outline: 2px solid var(--lilac); outline-offset: 1px; }
:root[data-look="lily"] details, :root[data-look="lily"] .roster li { border-color: var(--line); }
:root[data-look="lily"] .roster .rank { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--lilac); color: #fff; font-size: 11px; }
:root[data-look="lily"] .chip { border-radius: 999px; border: 0; box-shadow: 0 0 0 1.5px var(--line) inset; background: #fff; font-weight: 600; }
:root[data-look="lily"] .chip[aria-pressed="true"] { background: #fff0f5; color: var(--ink); box-shadow: 0 0 0 2px var(--pink) inset; }
:root[data-look="lily"] .seg label { border-color: var(--edge); }
:root[data-look="lily"] .seg label:has(input:checked) { background: var(--lilac); border-color: var(--lilac); color: #fff; }
:root[data-look="lily"] .stepper .btn { background: #f3edff; color: var(--lilac); border-color: var(--edge); font-weight: 700; }

/* buttons: pink on an ink shadow; they press down into it */
:root[data-look="lily"] .btn {
  border: 0; background: #fff; color: var(--ink); border-radius: 12px; font-weight: 600;
  box-shadow: 0 0 0 2px var(--ink) inset, 0 3px 0 0 var(--ink);
  transition: transform 90ms var(--ease-out), box-shadow 90ms var(--ease-out), background-color 140ms ease;
}
:root[data-look="lily"] .btn:active { transform: translateY(3px); box-shadow: 0 0 0 2px var(--ink) inset, 0 0 0 0 var(--ink); }
:root[data-look="lily"] .btn--primary, :root[data-look="lily"] .btn--stop { min-height: 50px; border-radius: 14px; font-size: 15px; font-weight: 700; box-shadow: 0 0 0 2.5px var(--ink) inset, 0 4px 0 0 var(--ink); }
:root[data-look="lily"] .btn--primary { background: linear-gradient(180deg, #ffa3c2, #ff7aa6); color: #fff; text-shadow: 0 2px 0 rgb(58 43 69 / 0.35); }
:root[data-look="lily"] .btn--primary:active, :root[data-look="lily"] .btn--stop:active { transform: translateY(4px); box-shadow: 0 0 0 2.5px var(--ink) inset, 0 0 0 0 var(--ink); }
:root[data-look="lily"] .btn kbd { color: var(--ink-2); border-color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) {
  :root[data-look="lily"] .btn:not(:disabled):hover { background: #fbf8ff; }
  :root[data-look="lily"] .btn--primary:not(:disabled):hover { background: linear-gradient(180deg, #ffb3cd, #ff8ab1); }
}

/* the run: the count in big pixel digits, the seats as the headline */
:root[data-look="lily"] .hunt { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
:root[data-look="lily"] .hunt__n { display: none; }
:root[data-look="lily"] .hunt__pixel { grid-row: span 2; display: block; image-rendering: pixelated; height: 55px; }
.hunt__pixel { display: none; }
:root[data-look="lily"] .hunt__label { font-weight: 700; color: var(--ink); padding: 0; align-self: end; }
:root[data-look="lily"] .hunt__sub { align-self: start; }
:root[data-look="lily"] .won__label { font: 700 11px/1 "Bahnschrift", "Segoe UI", sans-serif; letter-spacing: 0.12em; color: var(--ink-2); }
:root[data-look="lily"] .won__seats { font: 700 2.2rem/1.1 "Bahnschrift", "Segoe UI", sans-serif; color: var(--ink); }
:root[data-look="lily"] .sheet .lamp { width: 10px; height: 10px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px var(--ink); }
:root[data-look="lily"] .sheet li[data-s="done"] .lamp { background: var(--mint); }
:root[data-look="lily"] .sheet li[data-s="now"] .lamp { background: #ffd86e; }
:root[data-look="lily"] .sheet li[data-s="you"] .lamp { background: var(--pink); }
:root[data-look="lily"] .sheet li[data-s="wait"] .lamp { box-shadow: 0 0 0 2px var(--ink-3); }
:root[data-look="lily"] .sheet li[data-s="fail"] .lamp { background: #fff; box-shadow: 0 0 0 2px var(--ink-3); }
:root[data-look="lily"] .dock { background: linear-gradient(180deg, rgb(255 246 232 / 0), #fff6e8 34%); }
:root[data-look="lily"] .settings { background: #fff8fb; }
:root[data-look="lily"] .settings__head { background: transparent; }

/* ---- overlay: the scene over the whole panel ---- */
:root[data-look="lily"][data-lily-art="overlay"] .lily {
  position: fixed; inset: 0; height: auto; z-index: 20;
  transition: opacity 900ms var(--ease-out), filter 900ms var(--ease-out);
}
:root[data-look="lily"][data-lily-art="overlay"] .lily.is-calm { opacity: 0.14; filter: saturate(0.7); transition-duration: 600ms; }
/* no painted sky over the controls: only the characters, and a soft strip of pond along the bottom edge */
:root[data-look="lily"][data-lily-art="overlay"] .lily__bg { display: none; }
:root[data-look="lily"][data-lily-art="overlay"] .lily::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 170px;
  background: linear-gradient(180deg, rgb(166 224 247 / 0), rgb(166 224 247 / 0.55) 40%, rgb(124 203 238 / 0.7));
}
:root[data-look="lily"][data-lily-art="overlay"][data-sky="night"] .lily::before { background: linear-gradient(180deg, rgb(53 64 127 / 0), rgb(53 64 127 / 0.5) 40%, rgb(35 44 96 / 0.7)); }
:root[data-look="lily"][data-lily-art="overlay"] .lily__wake { display: none; }
:root[data-look="lily"][data-lily-art="overlay"] .lily__title { display: none; }
:root[data-look="lily"][data-lily-art="overlay"] .bar { position: sticky; padding: 12px 14px 8px; }
:root[data-look="lily"][data-lily-art="overlay"] .gear { position: static; margin-left: auto; }
:root[data-look="lily"][data-lily-art="overlay"] .wrap { margin-top: 0; }
/* in the overlay the scene is spread over the panel: the pond is the lower third */
:root[data-look="lily"][data-lily-art="overlay"] .lily__boat { top: auto; bottom: 120px; }
:root[data-look="lily"][data-lily-art="overlay"] .lily__island { top: auto; bottom: 200px; }
:root[data-look="lily"][data-lily-art="overlay"] .lily__dog { top: auto; bottom: 228px; }
:root[data-look="lily"][data-lily-art="overlay"] .lily__line { top: auto; bottom: 212px; }
:root[data-look="lily"][data-lily-art="overlay"] .lily__bang { top: auto; bottom: 300px; }
:root[data-look="lily"][data-lily-art="overlay"] .lily__jumper { top: auto; bottom: 34px; }
:root[data-look="lily"][data-lily-art="overlay"] .lily__splash { top: auto; bottom: 60px; }

@media (prefers-reduced-motion: reduce) {
  .lily *, .lily { animation: none !important; transition: none !important; }
}
:root[data-motion="less"] .lily, :root[data-motion="less"] .lily * { animation: none !important; }

:root[data-look="lily"][data-lily-art="overlay"] .lily__pad1 { top: auto; bottom: 30px; }
:root[data-look="lily"][data-lily-art="overlay"] .lily__pad2 { top: auto; bottom: 4px; }
:root[data-look="lily"][data-lily-art="overlay"] .lily__pad3 { top: auto; bottom: 22px; }
:root[data-look="lily"][data-lily-art="overlay"] .lily__cloud1 { top: 70px; }
:root[data-look="lily"][data-lily-art="overlay"] .lily__cloud2 { top: 120px; }

/* the account's strip, messages and drawer (board 12), in the pond's colours */
:root[data-look="lily"][data-lights] {
  --acct-card: #ffffff; --acct-ring: rgb(58 43 69 / 0.12);
  --water-a: #a6e0f7; --water-b: #6fc3ea; --mini-ring: #3a2b45; --mini-bg: #eef4f8;
  --drawer-bg: #ffffff; --drawer-ring: rgb(58 43 69 / 0.10); --drawer-shade: rgb(58 43 69 / 0.45);
  --info-bg: #f2edfc; --info-line: #c9b8ee;
  --warn-bg: #fff6d6; --warn-line: #e9c95b;
  --stop-bg: #fff0f5; --stop-line: #e58aa6;
  --hold-fill: linear-gradient(180deg, #ffa3c2, #ff7aa6); --hold-ink: #3a2b45;
  --focus-halo: rgb(167 134 240 / 0.3);
}
:root[data-look="lily"] .signout { padding: 6px 11px; border-radius: 999px; background: rgb(255 255 255 / 0.92); color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: 0 0 0 2px var(--ink); }
:root[data-look="lily"] .later { color: #7b5bd6; }
:root[data-look="lily"] .btn--primary:disabled, :root[data-look="lily"] .btn--primary:disabled:active { background: #ece6f2; color: var(--ink-3); text-shadow: none; transform: none; box-shadow: 0 0 0 2px rgb(58 43 69 / 0.16) inset; }
