.ldl {
  --ldl-bg: #050914;
  --ldl-panel: #0a1020;
  --ldl-panel-2: #10182c;
  --ldl-ink: #f8f7f2;
  --ldl-muted: #bec7d9;
  --ldl-silver: #dce8f8;
  --ldl-blue: #76b9e8;
  --ldl-blue-soft: #bde7ff;
  --ldl-violet: #a58ce4;
  --ldl-gold: #e7c577;
  --ldl-line: rgba(185, 215, 240, .22);
  max-width: 1180px;
  margin: 2rem auto 0;
  color: var(--ldl-ink);
  font-family: inherit;
}

.ldl *, .ldl *::before, .ldl *::after { box-sizing: border-box; }
.ldl [hidden] { display: none !important; }
.ldl .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ldl-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr);
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(191, 222, 246, .25);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 25%, rgba(111, 176, 224, .16), transparent 30%),
    radial-gradient(circle at 10% 95%, rgba(96, 69, 155, .2), transparent 35%),
    linear-gradient(135deg, #050815, #080d1c 48%, #0b1427);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .58), inset 0 0 0 1px rgba(255, 255, 255, .018);
  isolation: isolate;
}

.ldl-hero::before,
.ldl-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ldl-hero::before {
  inset: 0;
  opacity: .5;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .8) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(173, 211, 245, .65) 0 1px, transparent 1.4px);
  background-position: 0 0, 43px 21px;
  background-size: 86px 86px, 121px 121px;
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}

.ldl-hero::after {
  width: 520px;
  height: 520px;
  right: -150px;
  bottom: -260px;
  border: 1px solid rgba(189, 231, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(189, 231, 255, .025), 0 0 0 120px rgba(189, 231, 255, .018);
}

.ldl-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(3rem, 6vw, 6rem);
}

.ldl-kicker {
  display: inline-block;
  color: var(--ldl-gold);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.ldl-hero h2,
.ldl-start h2,
.ldl-result h2,
.ldl-rank {
  margin: .58rem 0 1rem;
  color: #fffef9;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.04;
}

.ldl-hero h2 { max-width: 620px; font-size: clamp(2.75rem, 5.2vw, 5.5rem); }
.ldl-hero-copy > p { max-width: 560px; margin: 0; color: #d0d7e4; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.72; }
.ldl-hero-copy ul { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.ldl-hero-copy li { padding: .5rem .8rem; border: 1px solid rgba(194, 226, 249, .22); border-radius: 999px; background: rgba(4, 9, 20, .62); color: #e4edf7; font-size: .78rem; font-weight: 750; }

.ldl-hero-art { position: relative; z-index: 1; min-height: 570px; }
.ldl-moon {
  position: absolute;
  top: 13%;
  left: 50%;
  width: clamp(185px, 21vw, 280px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, rgba(130, 151, 176, .25) 0 4%, transparent 4.5%),
    radial-gradient(circle at 68% 57%, rgba(130, 151, 176, .18) 0 7%, transparent 7.5%),
    radial-gradient(circle at 48% 75%, rgba(130, 151, 176, .18) 0 4%, transparent 4.5%),
    radial-gradient(circle at 55% 43%, #fff 0, #e8f3fc 54%, #b8d4e8 100%);
  box-shadow: 0 0 40px rgba(189, 231, 255, .28), 0 0 110px rgba(108, 173, 220, .22);
}
.ldl-moon::after { content: ""; position: absolute; inset: 9%; border: 1px solid rgba(80, 119, 153, .25); border-radius: 50%; }
.ldl-moon i { position: absolute; inset: 41%; border-radius: 50%; background: #9fc4df; box-shadow: 0 0 18px #fff; }

.ldl-mini-maze {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(82%, 420px);
  aspect-ratio: 1.45;
  transform: translateX(-50%) perspective(650px) rotateX(58deg) rotateZ(-4deg);
  border: 1px solid rgba(224, 241, 255, .35);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 23%, rgba(173, 213, 244, .45) 23% 25%, transparent 25% 49%, rgba(173, 213, 244, .35) 49% 51%, transparent 51% 74%, rgba(173, 213, 244, .4) 74% 76%, transparent 76%),
    linear-gradient(transparent 31%, rgba(173, 213, 244, .38) 31% 34%, transparent 34% 65%, rgba(173, 213, 244, .43) 65% 68%, transparent 68%),
    rgba(10, 21, 39, .82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5), inset 0 0 35px rgba(100, 179, 232, .12);
}
.ldl-mini-maze::before { content: ""; position: absolute; left: 0; top: 48%; width: 78%; height: 4px; background: linear-gradient(90deg, #fff, #82ceff); box-shadow: 0 0 14px #72c8ff; clip-path: polygon(0 0, 25% 0, 25% 100%, 55% 100%, 55% 0, 100% 0, 100% 100%, 52% 100%, 52% 50%, 22% 50%, 22% 100%, 0 100%); }
.ldl-mini-maze i { position: absolute; width: 10%; aspect-ratio: 1; border: 2px solid rgba(192, 228, 251, .34); border-radius: 8px; }
.ldl-mini-maze i:nth-child(1) { left: 7%; top: 12%; }
.ldl-mini-maze i:nth-child(2) { left: 33%; top: 12%; }
.ldl-mini-maze i:nth-child(3) { left: 60%; top: 12%; }
.ldl-mini-maze i:nth-child(4) { right: 6%; top: 12%; }
.ldl-mini-maze i:nth-child(5) { left: 15%; bottom: 10%; }
.ldl-mini-maze i:nth-child(6) { left: 48%; bottom: 10%; }
.ldl-mini-maze i:nth-child(7) { right: 9%; bottom: 10%; }
.ldl-star { position: absolute; color: #dff4ff; text-shadow: 0 0 12px #9edaff; }
.ldl-star.is-one { top: 12%; left: 10%; font-size: 1.4rem; }
.ldl-star.is-two { top: 34%; right: 8%; font-size: 2rem; }
.ldl-star.is-three { top: 47%; left: 8%; font-size: 1.1rem; }

.ldl-shell {
  margin-top: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--ldl-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0, rgba(107, 169, 215, .1), transparent 36%),
    linear-gradient(145deg, rgba(12, 19, 36, .98), rgba(5, 8, 18, .99));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

.ldl-start, .ldl-game, .ldl-result { padding: clamp(1.3rem, 4.7vw, 4.8rem); }
.ldl-start { text-align: center; }
.ldl-start h2, .ldl-result h2 { font-size: clamp(2.25rem, 4.4vw, 4.6rem); }
.ldl-lead { max-width: 720px; margin: 0 auto 1.8rem; color: var(--ldl-muted); line-height: 1.72; }

.ldl-mode-select { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 880px; margin: 0 auto; padding: 0; border: 0; text-align: left; }
.ldl-mode-select > label { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 1rem; min-height: 175px; padding: 1.25rem; overflow: hidden; border: 1px solid rgba(186, 218, 242, .2); border-radius: 20px; background: rgba(4, 9, 20, .62); cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.ldl-mode-select > label:hover { transform: translateY(-2px); border-color: rgba(189, 231, 255, .48); }
.ldl-mode-select input { position: absolute; opacity: 0; }
.ldl-mode-select label:has(input:checked) { border-color: var(--ldl-blue); background: linear-gradient(145deg, rgba(45, 91, 128, .24), rgba(10, 16, 32, .86)); box-shadow: inset 0 0 0 1px rgba(140, 207, 251, .18), 0 0 30px rgba(82, 161, 216, .08); }
.ldl-mode-icon { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(194, 225, 247, .32); border-radius: 50%; color: var(--ldl-blue-soft); font: 1.8rem Georgia, serif; background: rgba(78, 137, 181, .12); }
.ldl-mode-select label > span:last-child { display: flex; flex-direction: column; align-items: flex-start; }
.ldl-mode-select strong { color: #fff; font: 1.3rem Georgia, serif; }
.ldl-mode-select small { margin-top: .25rem; color: var(--ldl-blue-soft); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ldl-mode-select em { margin-top: .7rem; color: #cbd3e0; font-size: .88rem; font-style: normal; line-height: 1.5; }
.ldl-daily-date, .ldl-daily-best { margin-top: .55rem; color: var(--ldl-gold); font-size: .76rem; }

.ldl-depth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; max-width: 650px; margin: 1.1rem auto 0; padding: 1rem; border: 1px solid rgba(186, 218, 242, .16); border-radius: 16px; }
.ldl-depth legend { padding: 0 .5rem; color: var(--ldl-silver); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.ldl-depth label { position: relative; cursor: pointer; }
.ldl-depth input { position: absolute; opacity: 0; }
.ldl-depth label span { display: flex; flex-direction: column; padding: .85rem; border: 1px solid rgba(186, 218, 242, .15); border-radius: 12px; background: rgba(0, 0, 0, .18); }
.ldl-depth label:has(input:checked) span { border-color: var(--ldl-violet); background: rgba(116, 89, 179, .14); }
.ldl-depth strong { color: #f5f3ff; font-size: .92rem; }
.ldl-depth small { margin-top: .2rem; color: var(--ldl-muted); font-size: .75rem; }

.ldl-rules { max-width: 880px; margin: 1.3rem auto 1.45rem; padding: 1.2rem 1.3rem; border: 1px solid rgba(186, 218, 242, .14); border-radius: 18px; background: rgba(2, 6, 14, .4); text-align: left; }
.ldl-rules h3 { margin: 0 0 .8rem; color: var(--ldl-silver); font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; }
.ldl-rules ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ldl-rules li { display: grid; grid-template-columns: 27px 1fr; gap: .65rem; align-items: start; color: #ccd4e1; font-size: .84rem; line-height: 1.5; }
.ldl-rules li b { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(215, 234, 248, .3); border-radius: 50%; color: var(--ldl-gold); font-size: .7rem; }

.ldl-btn { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: .7rem; padding: .85rem 1.25rem; border: 1px solid #80c8f4; border-radius: 13px; color: #05101b; background: linear-gradient(135deg, #dff4ff, #83c9f5); box-shadow: 0 10px 28px rgba(72, 154, 209, .17); font: 800 .82rem/1 inherit; letter-spacing: .055em; text-transform: uppercase; cursor: pointer; transition: transform .18s, filter .18s, opacity .18s; }
.ldl-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.ldl-btn:focus-visible, .ldl-tile:focus-visible, .ldl-sound:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ldl-btn.is-secondary { border-color: rgba(194, 225, 247, .25); color: #edf6fc; background: rgba(8, 15, 29, .84); box-shadow: none; }
.ldl-btn:disabled { opacity: .42; cursor: not-allowed; }
.ldl-begin { min-width: min(100%, 300px); }

.ldl-game { position: relative; }
.ldl-scorebar { display: grid; grid-template-columns: minmax(150px, 1.5fr) repeat(3, minmax(86px, .65fr)) auto; gap: .65rem; align-items: stretch; margin-bottom: 1rem; }
.ldl-scorebar > span, .ldl-sound { display: flex; min-height: 66px; flex-direction: column; align-items: center; justify-content: center; padding: .65rem .75rem; border: 1px solid rgba(186, 218, 242, .16); border-radius: 13px; background: rgba(2, 6, 14, .5); text-align: center; }
.ldl-scorebar small { color: #91a5bc; font-size: .62rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.ldl-scorebar strong { margin-top: .2rem; color: #fff; font: 1.05rem Georgia, serif; }
.ldl-mode-label { color: var(--ldl-gold) !important; }
.ldl-seed-label { font-size: .84rem !important; }
.ldl-sound { min-width: 70px; color: var(--ldl-blue-soft); cursor: pointer; }
.ldl-sound span { font-size: 1.1rem; }
.ldl-sound b { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ldl-message { max-width: 800px; margin: 0 auto 1rem; text-align: center; }
.ldl-message-title { display: block; margin: .35rem 0 .25rem; color: #fff; font: clamp(1.55rem, 3vw, 2.45rem) Georgia, serif; }
.ldl-message-text { margin: 0; color: var(--ldl-muted); line-height: 1.55; }

.ldl-board-shell { position: relative; max-width: 720px; margin: 2.7rem auto 1.2rem; padding: 0 30px; }
.ldl-board { --ldl-size: 6; display: grid; grid-template-columns: repeat(var(--ldl-size), minmax(0, 1fr)); gap: 5px; width: 100%; aspect-ratio: 1; padding: 9px; border: 1px solid rgba(211, 236, 252, .25); border-radius: 22px; background: #02050d; box-shadow: 0 26px 60px rgba(0, 0, 0, .48), inset 0 0 45px rgba(63, 125, 173, .08); }
.ldl-tile { position: relative; display: grid; min-width: 0; min-height: 0; place-items: center; overflow: hidden; padding: 0; border: 1px solid rgba(156, 190, 217, .14); border-radius: 10px; color: #6f8298; background: linear-gradient(145deg, #10192b, #080d19); cursor: pointer; touch-action: manipulation; transition: border-color .2s, background .2s, box-shadow .2s, transform .16s; }
.ldl-tile:hover:not(:disabled) { border-color: rgba(184, 223, 248, .38); background: linear-gradient(145deg, #15233a, #0a1120); }
.ldl-tile:active:not(:disabled) { transform: scale(.94); }
.ldl-tile svg { width: 100%; height: 100%; overflow: visible; }
.ldl-tile .ldl-path { fill: none; stroke: rgba(112, 139, 165, .45); stroke-width: 11; stroke-linecap: round; }
.ldl-tile .ldl-path-core { fill: none; stroke: rgba(9, 16, 28, .85); stroke-width: 5.5; stroke-linecap: round; }
.ldl-tile .ldl-node { fill: #26394f; stroke: rgba(194, 225, 247, .25); stroke-width: 2; }
.ldl-tile::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(202, 230, 248, .045); border-radius: 7px; pointer-events: none; }
.ldl-tile.is-reached { border-color: rgba(108, 192, 244, .47); background: radial-gradient(circle, rgba(63, 139, 194, .23), rgba(7, 15, 28, .96)); box-shadow: inset 0 0 20px rgba(67, 165, 226, .12); }
.ldl-tile.is-reached .ldl-path { stroke: #8dd3fb; filter: drop-shadow(0 0 5px #55bdf6); }
.ldl-tile.is-reached .ldl-path-core { stroke: #e7f8ff; }
.ldl-tile.is-reached .ldl-node { fill: #fff; stroke: #92d8ff; filter: drop-shadow(0 0 6px #65c8ff); }
.ldl-tile.is-route { border-color: rgba(231, 197, 119, .65); box-shadow: inset 0 0 24px rgba(117, 194, 241, .16), 0 0 12px rgba(231, 197, 119, .12); }
.ldl-tile.is-route .ldl-path { stroke: #f2d996; filter: drop-shadow(0 0 6px #eed17e); }
.ldl-tile.is-route .ldl-path-core { stroke: #fff8dd; }
.ldl-tile.is-hinted { animation: ldlHint 1s ease 2; }
.ldl-tile.is-fixed { cursor: default; }
.ldl-fixed-mark { position: absolute; right: 5px; top: 4px; color: rgba(229, 237, 246, .55); font-size: clamp(.45rem, 1.3vw, .66rem); font-weight: 900; letter-spacing: .04em; }
.ldl-fragment { position: absolute; z-index: 2; width: 18%; aspect-ratio: 1; transform: rotate(45deg); border: 1px solid #e7c577; background: #fff3bf; box-shadow: 0 0 10px #e7c577; }
.ldl-tile.is-route .ldl-fragment { animation: ldlFragment 1.2s ease-in-out infinite alternate; }
.ldl-edge-label { position: absolute; z-index: 3; display: flex; align-items: center; gap: .35rem; color: #a9b8c9; font-size: .66rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ldl-edge-label i { color: var(--ldl-gold); font-style: normal; font-size: 1.15rem; }
.ldl-edge-label.is-entry { left: 4px; bottom: 3%; transform: rotate(-90deg); transform-origin: left bottom; }
.ldl-edge-label.is-temple {
  left: calc(100% - 4px);
  right: auto;
  top: 3%;
  transform: rotate(90deg);
  transform-origin: left top;
}
.ldl-traveller { position: absolute; z-index: 8; display: grid; width: 28px; height: 28px; left: 0; top: 0; place-items: center; opacity: 0; border: 1px solid #fff3bd; border-radius: 50%; color: #fff; background: #8a6bc7; box-shadow: 0 0 18px #83cff7; pointer-events: none; transform: translate(-50%, -50%); transition: left .18s linear, top .18s linear, opacity .2s; }
.ldl-board-shell.is-travelling .ldl-traveller { opacity: 1; }

.ldl-controls { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: .8rem; max-width: 720px; margin: 0 auto; }
.ldl-controls .ldl-btn { width: 100%; }
.ldl-hint { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .6rem; text-align: left; }
.ldl-hint > span { grid-row: 1 / span 2; color: var(--ldl-gold); }
.ldl-hint small { color: #9fabc0; font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: none; }

.ldl-result { text-align: center; }
.ldl-result-moons { display: flex; justify-content: center; gap: .65rem; margin: 1.2rem 0 .45rem; }
.ldl-result-moons i { color: #34455a; font: 2.5rem Georgia, serif; font-style: normal; transform: rotate(-25deg); transition: color .3s, text-shadow .3s, transform .3s; }
.ldl-result-moons i.is-earned { color: #f2d88c; text-shadow: 0 0 18px rgba(241, 211, 126, .7); transform: rotate(-25deg) scale(1.08); }
.ldl-result-score { display: block; color: #fff; font: clamp(2rem, 5vw, 4rem) Georgia, serif; }
.ldl-rank { font-size: clamp(1.55rem, 3vw, 2.4rem); }
.ldl-rank-text { max-width: 600px; margin: -.4rem auto 1rem; color: var(--ldl-muted); line-height: 1.6; }
.ldl-result-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.ldl-result-stats span { padding: .55rem .75rem; border: 1px solid rgba(186, 218, 242, .17); border-radius: 999px; color: #d7e1eb; background: rgba(0, 0, 0, .18); font-size: .78rem; }
.ldl-result-criteria { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; max-width: 760px; margin: 1.2rem auto; padding: 0; list-style: none; }
.ldl-result-criteria li { display: flex; align-items: center; gap: .55rem; padding: .8rem; border: 1px solid rgba(186, 218, 242, .14); border-radius: 12px; color: #8797aa; background: rgba(0, 0, 0, .18); text-align: left; }
.ldl-result-criteria li.is-earned { border-color: rgba(231, 197, 119, .5); color: #fff2c8; }
.ldl-result-criteria i { display: grid; min-width: 24px; height: 24px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-style: normal; font-size: .7rem; }
.ldl-phase-award, .ldl-record { max-width: 650px; margin: .8rem auto; padding: .8rem; border: 1px solid rgba(231, 197, 119, .32); border-radius: 12px; color: #ffe8aa; background: rgba(129, 96, 35, .12); }
.ldl-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.4rem; }
.ldl-share-status { min-height: 1.2em; color: var(--ldl-blue-soft); }

.ldl-collection { margin-top: 1.2rem; overflow: hidden; border: 1px solid var(--ldl-line); border-radius: 21px; background: rgba(7, 12, 25, .9); }
.ldl-collection summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem; cursor: pointer; list-style: none; }
.ldl-collection summary::-webkit-details-marker { display: none; }
.ldl-collection summary > span { display: flex; flex-direction: column; }
.ldl-collection summary strong { color: #fff; font: 1.1rem Georgia, serif; }
.ldl-collection summary small { margin-top: .25rem; color: var(--ldl-muted); font-size: .77rem; }
.ldl-collection-progress { color: var(--ldl-gold); font-size: .78rem; white-space: nowrap; }
.ldl-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; padding: 0 1.2rem 1rem; }
.ldl-phase { display: flex; min-height: 126px; flex-direction: column; align-items: center; justify-content: center; padding: .7rem; border: 1px solid rgba(186, 218, 242, .12); border-radius: 14px; color: #5d6c7d; background: rgba(0, 0, 0, .18); text-align: center; }
.ldl-phase i { font: 2rem Georgia, serif; font-style: normal; }
.ldl-phase b { margin-top: .45rem; font-size: .76rem; }
.ldl-phase small { margin-top: .2rem; font-size: .64rem; }
.ldl-phase.is-lit { border-color: rgba(214, 232, 246, .38); color: #eef8ff; background: radial-gradient(circle at 50% 20%, rgba(127, 190, 233, .22), rgba(5, 10, 20, .52)); box-shadow: inset 0 0 25px rgba(92, 174, 228, .1); }
.ldl-phase.is-lit i { color: #fff; text-shadow: 0 0 16px #a7ddff; }
.ldl-phase.is-new { animation: ldlNewPhase 1.4s ease 2; }
.ldl-moon-total { margin: 0; padding: 0 1.2rem 1.2rem; color: var(--ldl-gold); text-align: center; }
.ldl-disclaimer { margin: .85rem auto 0; color: #8997a8; font-size: .72rem; line-height: 1.5; text-align: center; }

@keyframes ldlHint { 0%,100% { box-shadow: 0 0 0 rgba(231,197,119,0); } 50% { border-color: #f1d58b; box-shadow: 0 0 26px rgba(231,197,119,.52); } }
@keyframes ldlFragment { from { transform: rotate(45deg) scale(.9); } to { transform: rotate(45deg) scale(1.15); } }
@keyframes ldlNewPhase { 0%,100% { transform: scale(1); } 45% { transform: scale(1.06); box-shadow: 0 0 30px rgba(145,211,251,.4); } }

@media (max-width: 820px) {
  .ldl-hero { grid-template-columns: 1fr; min-height: 720px; }
  .ldl-hero-copy { align-self: start; padding: 2.6rem 2rem; }
  .ldl-hero h2 { max-width: 680px; font-size: clamp(2.5rem, 9vw, 4.6rem); }
  .ldl-hero-art { position: absolute; inset: 275px 0 0; min-height: 440px; }
  .ldl-moon { top: 4%; width: 190px; }
  .ldl-mini-maze { bottom: 4%; width: min(78%, 390px); }
  .ldl-scorebar { grid-template-columns: repeat(4, 1fr); }
  .ldl-scorebar > span:first-child { grid-column: 1 / -1; }
  .ldl-sound { position: absolute; right: 1.2rem; top: 1.2rem; min-height: 45px; }
}

@media (max-width: 620px) {
  .ldl { margin-top: 1rem; }
  .ldl-hero { min-height: 680px; border-radius: 21px; }
  .ldl-hero-copy { padding: 2.25rem 1.25rem; }
  .ldl-hero-copy > p { font-size: .94rem; line-height: 1.6; }
  .ldl-hero-copy ul { gap: .42rem; margin-top: 1.2rem; }
  .ldl-hero-copy li { padding: .42rem .62rem; font-size: .68rem; }
  .ldl-hero-art { inset: 300px 0 0; }
  .ldl-shell { border-radius: 20px; }
  .ldl-start, .ldl-game, .ldl-result { padding: 1.15rem; }
  .ldl-start h2, .ldl-result h2 { font-size: 2.35rem; }
  .ldl-mode-select { grid-template-columns: 1fr; }
  .ldl-mode-select > label { min-height: 145px; padding: 1rem; }
  .ldl-depth { grid-template-columns: 1fr; }
  .ldl-rules ol { grid-template-columns: 1fr; gap: .7rem; }
  .ldl-scorebar { gap: .4rem; padding-top: 2.8rem; }
  .ldl-scorebar > span { min-height: 58px; padding: .48rem .25rem; }
  .ldl-scorebar small { font-size: .53rem; }
  .ldl-scorebar strong { font-size: .88rem; }
  .ldl-sound { top: 1rem; right: 1rem; }
  .ldl-message-title { font-size: 1.65rem; }
  .ldl-message-text { font-size: .84rem; }
  .ldl-board-shell { margin-top: 2.3rem; padding: 0 28px 0 19px; }
  .ldl-board { gap: 3px; padding: 6px; border-radius: 15px; }
  .ldl-tile { border-radius: 7px; }
  .ldl-tile::before { inset: 3px; border-radius: 4px; }
  .ldl-fixed-mark { right: 3px; top: 2px; }
  .ldl-edge-label { font-size: .53rem; }
  .ldl-controls { grid-template-columns: 1fr; }
  .ldl-result-criteria { grid-template-columns: 1fr; }
  .ldl-result-actions { flex-direction: column; }
  .ldl-result-actions .ldl-btn { width: 100%; }
  .ldl-collection summary { align-items: flex-start; flex-direction: column; }
  .ldl-phases { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .ldl-hero { min-height: 650px; }
  .ldl-hero h2 { font-size: 2.35rem; }
  .ldl-hero-art { inset: 310px 0 0; }
  .ldl-moon { width: 165px; }
  .ldl-board-shell { padding: 0 26px 0 13px; }
  .ldl-board { gap: 2px; padding: 5px; }
  .ldl-fragment { width: 15%; }
}

@media (prefers-reduced-motion: reduce) {
  .ldl *, .ldl *::before, .ldl *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
