/* Evil Eye - Nazar page. Uses the shared RandomZone variables so it follows the light/dark toggle; the stage itself has its own scenery. */
.ld { max-width: 1120px; padding-top: 26px; padding-bottom: 70px; --lk1: #2f6bff; --lk2: #19c3d8; }
.ld-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); font-weight: 900; letter-spacing: -.03em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ld-badge { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--lk1), var(--lk2)); }
.ld-head p { color: var(--mut); max-width: 720px; margin-top: 8px; }
.fine { color: var(--mut); font-size: .88rem; }
.msg { min-height: 1.3em; font-size: .86rem; color: var(--mut); margin-top: 8px; }
.msg.warn { color: #e0902b; font-weight: 700; }
.chip { border: 1px solid var(--line); background: var(--surface2); color: var(--ink); font-family: inherit; font-weight: 700; font-size: .85rem; padding: 7px 14px; min-height: 40px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--lk1); }
.chip.on, .chip[aria-pressed="true"]:not(#flickAll) { background: linear-gradient(135deg, var(--lk1), var(--lk2)); color: #fff; border-color: transparent; }
.chip:focus-visible, .btn:focus-visible, input:focus-visible { outline: 3px solid var(--a1); outline-offset: 2px; }
.btn.primary { background: linear-gradient(135deg, var(--lk1), var(--lk2)); color: #fff; box-shadow: 0 10px 26px rgba(47, 107, 255, .35); }
input.in { width: 100%; font: inherit; font-weight: 700; font-size: 1.2rem; color: var(--ink); background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-height: 48px; text-align: center; }
label.tf { display: grid; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--mut); }

.ld-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; margin: 20px 0 12px; }
.ld-group { display: flex; flex-wrap: wrap; gap: 8px; }

/* stage */
.ld-stage { position: relative; height: clamp(430px, 64vh, 580px); border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); isolation: isolate; background: #2b95e3; touch-action: pan-y; }
.ld-scene { position: absolute; inset: 0; z-index: 0; }
.ld-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ld-stage[data-bg="paper"] .ld-scene { background: radial-gradient(900px 420px at 50% -10%, color-mix(in srgb, var(--a1) 14%, transparent), transparent 70%), linear-gradient(180deg, var(--surface), var(--surface2)); }
.ld-rail { position: absolute; left: 0; right: 0; top: 0; height: 13px; z-index: 1; background: linear-gradient(180deg, #fff1bd 0%, #d9a93f 40%, #8a6118 100%); box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
.ld-rail::before, .ld-rail::after { content: ""; position: absolute; top: -3px; width: 18px; height: 19px; border-radius: 6px; background: linear-gradient(180deg, #ffe9a0, #a67a22); }
.ld-rail::before { left: 10px; } .ld-rail::after { right: 10px; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.ld-stage .dg-hits { z-index: 3; }
.ld-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; max-width: calc(100% - 28px); text-align: center; padding: 9px 16px; border-radius: 999px; background: rgba(8, 18, 44, .72); color: #fff; font-weight: 700; font-size: .88rem; pointer-events: none; transition: opacity .6s, transform .6s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ld-hint.gone { opacity: 0; transform: translate(-50%, 10px); }
.ld-empty { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 4; text-align: center; padding: 12px 18px; border-radius: 16px; background: rgba(8, 18, 44, .72); color: #fff; font-weight: 700; max-width: calc(100% - 40px); }

/* gallery */
.ld-gal-head { margin: 34px 0 14px; }
.ld-gal-head h2 { font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }
.ld-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ld-card { display: grid; grid-template-columns: 108px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 4px 14px; padding: 16px; align-items: start; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ld-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ld-card.hung { border-color: color-mix(in srgb, var(--lk1) 55%, var(--line)); }
.ld-art { display: grid; align-self: start; place-items: center; min-height: 128px; border-radius: 16px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--lk1) 14%, var(--surface2)), var(--surface2)); }
.ld-art img { width: 100%; height: 124px; object-fit: contain; transform-origin: 50% 0; animation: ldsway 5s ease-in-out infinite alternate; }
.ld-card:hover .ld-art img { animation-duration: 1.4s; }
@keyframes ldsway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.ld-info h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.ld-reg { display: inline-block; margin: 5px 0 6px; font-size: .74rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2f6bff, #1f4fd0); padding: 3px 10px; border-radius: 6px; }
.ld-info p { color: var(--mut); font-size: .88rem; line-height: 1.5; }
.ld-btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ld-btns .btn { flex: 1 1 auto; min-width: 0; }
.btn.sm { min-height: 40px; padding: 0 14px; border-radius: 11px; font-size: .88rem; }

.ld-own { margin-top: 18px; padding: 20px; display: grid; gap: 14px; }
.ld-own h3 { font-size: 1.15rem; font-weight: 900; }
.ld-own-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px 16px; align-items: end; }
.ld-quick { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 2; }
.ld-quick button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.ld-quick button:hover { border-color: var(--lk1); }
.ld-own-row #strings { grid-column: 1 / -1; }
.ld-own-row .btn { grid-column: 1 / -1; }

@media (max-width: 980px) { .ld-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ld { padding-top: 16px; }
  .ld-gal { grid-template-columns: minmax(0, 1fr); }
  .ld-bar { gap: 10px; }
  .ld-stage { border-radius: 20px; height: clamp(400px, 66vh, 520px); }
  .ld-card { grid-template-columns: 96px minmax(0, 1fr); }
  .ld-own-row { grid-template-columns: minmax(0, 1fr); }
  .ld-quick { grid-column: 1; }
  .ld-hint { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .ld-art img { animation: none; } .ld-card:hover { transform: none; } }

/* inside the desktop app's playground window the site chrome and the download section are hidden */
html.app .nav, html.app footer.site, html.app #download, html.app .ld-appnote { display: none !important; }
html.app .ld { padding-top: 18px; }

/* desktop app download section */
.ld-appnote { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
.ld-dl { margin-top: 56px; padding: 26px 0 10px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.ld-dl-head { text-align: center; }
.ld-dl-head h2 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); font-weight: 900; letter-spacing: -.025em; line-height: 1.12; margin-top: 12px; }
.ld-dl-head .lead { color: var(--mut); max-width: 700px; margin: 12px auto 0; }
.ld-shot { margin: 26px 0 8px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); line-height: 0; }
.ld-shot img { width: 100%; height: auto; display: block; }
.ld-dls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 26px; }
.ld-dlcard { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.ld-dlcard.rec { border-color: color-mix(in srgb, var(--lk1) 65%, var(--line)); box-shadow: 0 14px 40px color-mix(in srgb, var(--lk1) 26%, transparent); }
.ld-dlcard h3 { font-size: 1.15rem; font-weight: 800; }
.ld-dlcard .req { color: var(--mut); font-size: .9rem; flex: 1; }
.ld-dlcard .size { color: var(--mut); font-size: .88rem; }
.ld-dlcard .hash { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .68rem; color: var(--mut); word-break: break-all; }
.ld-badge2 { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--lk1), var(--lk2)); padding: 3px 10px; border-radius: 999px; }
.ld-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-top: 18px; }
.ld-install { padding: 22px; }
.ld-install h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.ld-install p { color: var(--mut); margin-top: 10px; font-size: .92rem; }
.ld-install p b { color: var(--ink); }
.ld-install ol { margin: 8px 0 0 20px; color: var(--mut); font-size: .92rem; line-height: 1.7; }
.ld-install li b { color: var(--ink); }
.ld-code { background: #0e1530; color: #d7e3ff; border-radius: 10px; padding: 9px 12px; margin-top: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; user-select: all; }
.ld-opts-title { font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; margin-top: 44px; }
.ld-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 16px; }
.ld-opts .card { padding: 20px; }
.ld-opts h4 { font-size: 1.02rem; font-weight: 800; }
.ld-opts ul { list-style: none; margin-top: 10px; display: grid; gap: 7px; color: var(--mut); font-size: .9rem; }
.ld-opts li { position: relative; padding-left: 20px; }
.ld-opts li::before { content: "✦"; position: absolute; left: 0; color: var(--lk1); font-size: .8rem; top: .1em; }
.ld-opts li b { color: var(--ink); }
.ld-shots2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px auto 14px; max-width: 760px; }
.ld-shots2 figure { margin: 0; text-align: center; }
.ld-shots2 img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ld-shots2 figcaption { color: var(--mut); font-size: .84rem; margin-top: 8px; font-weight: 600; }
.ld-shots2 .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .ld-shots2 { grid-template-columns: minmax(0, 1fr); } .ld-dl { margin-top: 40px; } }
