/* Obrevane Layer: a level editor for games. One stylesheet, system fonts. */

:root {
  --ly-ground: #141519;
  --ly-panel: #1c1e24;
  --ly-panel-hi: #23262e;
  --ly-rule: #2d3039;
  --ly-rule-hi: #3a3e49;
  --ly-text: #ebecf0;
  --ly-soft: #a3a7b3;
  --ly-select: #3d8bff;
  --ly-select-soft: rgba(61, 139, 255, .16);
  --ly-run: #b8f25a;
  --ly-on-run: #172402;
  --ly-care: #ff8f70;
  --ly-on-care: #2e0d03;
  --ly-check-a: #23252c;
  --ly-check-b: #1b1d22;
  --ly-r: 8px;
  --ly-r-lg: 14px;
  --ly-1: 4px;
  --ly-2: 8px;
  --ly-3: 12px;
  --ly-4: 16px;
  --ly-5: 24px;
  --ly-6: 32px;
  --ly-7: 48px;
  --ly-8: 72px;
  --ly-head: "Gill Sans", "Gill Sans MT", "Seravek", "Trebuchet MS", "Segoe UI", sans-serif;
  --ly-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ly-code: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --ly-out: cubic-bezier(.22, .9, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100vh;
  background: var(--ly-ground);
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ly-text); font: 400 1rem/1.62 var(--ly-body);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: #8fb9ff; text-underline-offset: .2em; }
a:hover { color: #c3d9ff; }
:focus-visible { outline: 2px solid var(--ly-run); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--ly-head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 var(--ly-3); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 var(--ly-4); }

.ly-jump { position: absolute; left: -999px; top: 8px; z-index: 99; padding: 8px 14px; border-radius: 6px; background: var(--ly-run); color: var(--ly-on-run); }
.ly-jump:focus { left: 8px; }
.ly-hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ly-small { font-size: .86rem; color: var(--ly-soft); }
.ly-over { font: 600 .72rem/1.3 var(--ly-code); letter-spacing: .12em; text-transform: uppercase; color: var(--ly-select); margin-bottom: var(--ly-2); }
.ly-lede { font-size: 1.14rem; color: #cfd2da; max-width: 62ch; }
.ly-pill { display: inline-block; padding: 7px 12px; border-radius: var(--ly-r); border: 1px solid var(--ly-rule-hi); background: var(--ly-panel); font-size: .88rem; color: #d6d8df; }

/* ---------- notice and bar ---------- */

.ly-notice { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 20px; padding: 6px var(--ly-4); background: #0e0f12; border-bottom: 1px solid var(--ly-rule); font: 500 .76rem/1.4 var(--ly-code); color: #cdd0d8; }
.ly-notice__age { padding: 0 7px; border-radius: 4px; background: var(--ly-care); color: var(--ly-on-care); font-weight: 700; }
.ly-notice span + span::before { content: "/"; margin-right: 20px; color: var(--ly-rule-hi); }
.ly-notice .ly-notice__age + span::before { content: none; }

.ly-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: stretch; gap: var(--ly-4); padding: 0 clamp(14px, 2.5vw, 28px); background: #18191e; border-bottom: 1px solid var(--ly-rule); min-height: 58px; }
.ly-logo { flex: none; display: flex; align-items: center; gap: 10px; color: var(--ly-text); text-decoration: none; font: 600 1.05rem/1 var(--ly-head); }
.ly-logo img { width: 36px; height: 36px; }
.ly-logo em { font-style: normal; margin-left: 6px; padding: 3px 6px; border-radius: 5px; background: var(--ly-select); color: #fff; font: 700 .66rem/1 var(--ly-code); letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }
.ly-glyph { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ly-tabs { display: flex; align-items: flex-end; gap: 2px; margin-left: auto; }
.ly-tab { position: relative; display: flex; align-items: center; gap: 7px; padding: 9px 12px 10px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; color: var(--ly-soft); text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap; transition: color .16s ease-out, background-color .16s ease-out; }
.ly-tab:hover { color: var(--ly-text); background: rgba(255, 255, 255, .04); }
.ly-tab__file { font: 500 .68rem/1 var(--ly-code); color: #6f7482; }
.ly-tab.is-open { color: var(--ly-text); background: var(--ly-ground); border-color: var(--ly-rule); }
.ly-tab.is-open::after { content: ""; position: absolute; left: 10px; right: 10px; top: -1px; height: 2px; background: var(--ly-select); border-radius: 2px; }
.ly-tab.is-open .ly-tab__file { color: var(--ly-select); }
.ly-status { display: flex; align-items: center; gap: var(--ly-2); }
.ly-status__px { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--ly-r); background: var(--ly-panel); border: 1px solid var(--ly-rule-hi); color: var(--ly-text); text-decoration: none; }
.ly-status__px .ly-glyph { color: var(--ly-select); }
.ly-status__px b { font: 700 .92rem/1 var(--ly-code); }
.ly-status__px span { font-size: .72rem; color: var(--ly-soft); }
.ly-status__time { display: flex; align-items: center; gap: 5px; font: 500 .8rem/1 var(--ly-code); color: var(--ly-soft); }
.ly-status__pause, .ly-status__menu { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--ly-r); border: 1px solid var(--ly-care); background: transparent; color: var(--ly-text); font: 600 .86rem/1 var(--ly-body); cursor: pointer; transition: background-color .16s ease-out, transform .12s ease-out; }
.ly-status__pause:hover { background: rgba(255, 143, 112, .14); }
.ly-status__pause:active, .ly-status__menu:active { transform: scale(.97); }
.ly-status__menu { display: none; border-color: var(--ly-rule-hi); }

/* ---------- keys (buttons) ---------- */

.ly-key { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--ly-r); border: 1px solid var(--ly-rule-hi); background: var(--ly-panel-hi); color: var(--ly-text); font: 600 .95rem/1.2 var(--ly-body); text-decoration: none; cursor: pointer; transition: background-color .16s ease-out, border-color .16s ease-out, transform .12s ease-out; }
.ly-key:hover { border-color: var(--ly-select); color: var(--ly-text); }
.ly-key:active { transform: scale(.97); }
.ly-key--go { background: var(--ly-run); border-color: var(--ly-run); color: var(--ly-on-run); }
.ly-key--go:hover { background: #cdfa82; border-color: #cdfa82; color: var(--ly-on-run); }
.ly-key--blue { background: var(--ly-select); border-color: var(--ly-select); color: #fff; }
.ly-key--blue:hover { background: #63a2ff; color: #fff; }
.ly-key--quiet { background: transparent; border-color: transparent; color: var(--ly-soft); }
.ly-key--half { flex: 1 1 0; }
.ly-key[disabled] { opacity: .45; cursor: not-allowed; }
.ly-linkbtn { padding: 0; border: 0; background: none; color: #8fb9ff; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- modals, consent, toast ---------- */

.ly-locked { overflow: hidden; }
.ly-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--ly-4); background: rgba(8, 9, 11, .8); }
.ly-modal--age { background: rgba(8, 9, 11, .95); }
.ly-modal__box { width: min(500px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: var(--ly-6); border-radius: var(--ly-r-lg); background: var(--ly-panel); border: 1px solid var(--ly-rule-hi); box-shadow: 0 30px 70px rgba(0, 0, 0, .55); animation: ly-pop .2s var(--ly-out); }
.ly-modal__mark { width: 72px; height: 72px; margin-bottom: var(--ly-4); }
.ly-modal__h { font: 600 1.3rem/1.25 var(--ly-head); margin-bottom: var(--ly-3); }
.ly-modal__row { display: flex; flex-wrap: wrap; gap: var(--ly-3); margin: var(--ly-4) 0; }
.ly-modal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ly-2); margin: var(--ly-4) 0; }
.ly-modal__grid .ly-key { padding: 8px; font-size: .88rem; }
@keyframes ly-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.ly-panelnav { display: grid; gap: 6px; margin-bottom: var(--ly-4); }
.ly-panelnav__item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--ly-r); background: var(--ly-ground); border: 1px solid var(--ly-rule); color: var(--ly-text); text-decoration: none; }
.ly-panelnav__item small { font: 500 .7rem/1 var(--ly-code); color: #6f7482; }
.ly-panelnav__item.is-open { border-color: var(--ly-select); background: var(--ly-select-soft); }
.ly-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: var(--ly-3) 0; border-top: 1px solid var(--ly-rule); border-bottom: 1px solid var(--ly-rule); font-family: var(--ly-code); }
.ly-summary dd { margin: 0; text-align: right; font-weight: 700; }
.ly-consent { position: fixed; left: 16px; bottom: 16px; z-index: 70; width: min(560px, calc(100% - 32px)); padding: var(--ly-5); border-radius: var(--ly-r-lg); background: var(--ly-panel-hi); border: 1px solid var(--ly-rule-hi); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.ly-consent__h { font: 600 1.05rem/1.3 var(--ly-head); margin-bottom: var(--ly-2); }
.ly-consent p { font-size: .9rem; }
.ly-consent__row { display: flex; gap: var(--ly-3); }
.ly-toast { position: fixed; right: 16px; top: 74px; z-index: 75; max-width: 340px; margin: 0; padding: 11px 15px; border-radius: var(--ly-r); background: #f2f4f8; color: #15171c; font-size: .9rem; font-weight: 600; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s ease-out, transform .18s ease-out; }
.ly-toast.is-shown { opacity: 1; transform: none; }

/* ---------- page frame ---------- */

.ly-doc { display: block; max-width: 1320px; margin: 0 auto; padding: var(--ly-5) clamp(14px, 3vw, 40px) var(--ly-8); }
.ly-path ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--ly-5); padding: 0; font: 500 .78rem/1.4 var(--ly-code); color: var(--ly-soft); }
.ly-path li + li::before { content: "›"; margin-right: 6px; color: #5d6170; }
.ly-path a { color: var(--ly-soft); }
.ly-block { margin-top: var(--ly-8); }
.ly-blockhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--ly-3); margin-bottom: var(--ly-5); }
.ly-blockhead p { margin: 0; color: var(--ly-soft); max-width: 58ch; }
.ly-card-box { position: relative; padding: var(--ly-5); border-radius: var(--ly-r-lg); background: var(--ly-panel); border: 1px solid var(--ly-rule); }
.ly-panelhead { display: flex; justify-content: space-between; align-items: center; margin: calc(var(--ly-5) * -1) calc(var(--ly-5) * -1) var(--ly-4); padding: 8px var(--ly-4); border-bottom: 1px solid var(--ly-rule); font: 600 .7rem/1 var(--ly-code); letter-spacing: .14em; text-transform: uppercase; color: var(--ly-soft); background: rgba(255, 255, 255, .02); border-radius: var(--ly-r-lg) var(--ly-r-lg) 0 0; }
.ly-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ly-4); }
.ly-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ly-4); }
.ly-warn { padding: var(--ly-3) var(--ly-4); border-radius: var(--ly-r); border: 1px solid var(--ly-care); background: rgba(255, 143, 112, .09); }

/* ---------- canvas (home) ---------- */

.ly-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--ly-4); margin-bottom: var(--ly-5); }
.ly-intro p { margin: 0; }
.ly-editor { display: grid; grid-template-columns: 290px minmax(0, 1fr) 300px; gap: 0; border: 1px solid var(--ly-rule); border-radius: var(--ly-r-lg); overflow: hidden; background: var(--ly-panel); min-height: 560px; }
.ly-layers { border-right: 1px solid var(--ly-rule); display: flex; flex-direction: column; }
.ly-layers .ly-panelhead, .ly-props .ly-panelhead { margin: 0; border-radius: 0; }
.ly-group { margin: 0; padding: 0; list-style: none; }
.ly-group__name { margin: 0; display: flex; align-items: center; gap: 6px; padding: 8px 14px 4px; font: 600 .7rem/1.2 var(--ly-code); letter-spacing: .1em; text-transform: uppercase; color: #7d8291; }
.ly-group__name::before { content: "▾"; color: #5d6170; }
.ly-layer { display: grid; grid-template-columns: 18px 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 14px; color: var(--ly-text); text-decoration: none; border-left: 2px solid transparent; transition: background-color .14s ease-out; }
.ly-layer:hover, .ly-layer.is-selected { background: var(--ly-select-soft); color: var(--ly-text); }
.ly-layer.is-selected { border-left-color: var(--ly-select); }
.ly-layer .ly-glyph { color: #7d8291; width: 16px; height: 16px; }
.ly-layer.is-selected .ly-glyph { color: var(--ly-select); }
.ly-layer img { width: 44px; height: 34px; object-fit: cover; border-radius: 4px; border: 1px solid var(--ly-rule-hi); }
.ly-layer__name { display: block; font-weight: 600; font-size: .94rem; line-height: 1.2; }
.ly-layer__kind { display: block; font-size: .76rem; color: var(--ly-soft); }
.ly-layer__blend { font: 500 .68rem/1 var(--ly-code); color: #7d8291; }
.ly-layer--tool img { object-fit: contain; background: var(--ly-ground); }
.ly-layers__foot { margin-top: auto; padding: 10px 14px; border-top: 1px solid var(--ly-rule); font: 500 .72rem/1.3 var(--ly-code); color: #6f7482; }
.ly-canvas { position: relative; display: grid; place-items: center; padding: 46px 32px 32px 46px; background: repeating-conic-gradient(var(--ly-check-a) 0 25%, var(--ly-check-b) 0 50%) 0 0 / 22px 22px; }
.ly-canvas::before, .ly-canvas::after { content: ""; position: absolute; background: #111216; }
.ly-canvas::before { left: 0; right: 0; top: 0; height: 22px; border-bottom: 1px solid var(--ly-rule); background-image: repeating-linear-gradient(90deg, #4a4e5a 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, #6f7482 0 1px, transparent 1px 50px); background-size: 100% 6px, 100% 12px; background-repeat: no-repeat; background-position: 0 100%, 0 100%; }
.ly-canvas::after { top: 0; bottom: 0; left: 0; width: 22px; border-right: 1px solid var(--ly-rule); background-image: repeating-linear-gradient(180deg, #4a4e5a 0 1px, transparent 1px 10px), repeating-linear-gradient(180deg, #6f7482 0 1px, transparent 1px 50px); background-size: 6px 100%, 12px 100%; background-repeat: no-repeat; background-position: 100% 0, 100% 0; }
.ly-artboard { position: relative; width: min(330px, 100%); margin: 0; transition: transform .14s var(--ly-out), opacity .14s ease-out; }
.ly-artboard.is-swapping { opacity: .3; transform: scale(.97); }
.ly-artboard img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; box-shadow: 0 22px 50px rgba(0, 0, 0, .55); }
.ly-handles { position: absolute; inset: -6px; border: 1.5px solid var(--ly-select); pointer-events: none; }
.ly-handles i { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--ly-select); }
.ly-handles i:nth-child(1) { left: -5px; top: -5px; }
.ly-handles i:nth-child(2) { left: calc(50% - 5px); top: -5px; }
.ly-handles i:nth-child(3) { right: -5px; top: -5px; }
.ly-handles i:nth-child(4) { right: -5px; top: calc(50% - 5px); }
.ly-handles i:nth-child(5) { right: -5px; bottom: -5px; }
.ly-handles i:nth-child(6) { left: calc(50% - 5px); bottom: -5px; }
.ly-handles i:nth-child(7) { left: -5px; bottom: -5px; }
.ly-handles i:nth-child(8) { left: -5px; top: calc(50% - 5px); }
.ly-artboard figcaption { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); white-space: nowrap; padding: 4px 8px; border-radius: 4px; background: var(--ly-select); color: #fff; font: 600 .72rem/1 var(--ly-code); }
.ly-props { border-left: 1px solid var(--ly-rule); display: flex; flex-direction: column; }
.ly-props__body { padding: var(--ly-4); display: grid; gap: var(--ly-3); align-content: start; }
.ly-props__body h2 { font-size: 1.5rem; margin: 0; }
.ly-props__row { display: flex; justify-content: space-between; gap: var(--ly-3); padding: 7px 0; border-bottom: 1px solid var(--ly-rule); font-size: .86rem; }
.ly-props__row span { color: var(--ly-soft); }
.ly-props__row b { font: 600 .8rem/1.4 var(--ly-code); text-align: right; }
.ly-props__body p { margin: 0; color: #cfd2da; font-size: .94rem; }
.ly-sliders { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ly-sliders li { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 10px; font: 500 .74rem/1 var(--ly-code); text-transform: uppercase; letter-spacing: .08em; color: var(--ly-soft); }
.ly-bars { display: flex; gap: 3px; }
.ly-bars i { flex: 1; height: 7px; border-radius: 2px; background: #2f333d; }
.ly-bars i.is-on { background: var(--ly-select); }
.ly-props__acts { display: grid; gap: var(--ly-2); }
.ly-sessionbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ly-4) var(--ly-6); }
.ly-sessionbar dl { display: flex; flex-wrap: wrap; gap: var(--ly-4) var(--ly-6); margin: 0; }
.ly-sessionbar dt { font: 600 .7rem/1.2 var(--ly-code); text-transform: uppercase; letter-spacing: .12em; color: var(--ly-soft); }
.ly-sessionbar dd { margin: 4px 0 0; font: 700 1.2rem/1 var(--ly-code); }
.ly-sessionbar__acts { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--ly-2); }
.ly-rule { padding: var(--ly-5); border-radius: var(--ly-r-lg); background: var(--ly-panel); border: 1px solid var(--ly-rule); }
.ly-rule__tag { display: inline-block; margin-bottom: var(--ly-3); padding: 3px 8px; border-radius: 4px; background: var(--ly-select-soft); color: #9cc3ff; font: 600 .72rem/1.3 var(--ly-code); }
.ly-rule p { margin: 0; color: #cdd0d8; }
.ly-filetable { width: 100%; border-collapse: collapse; font-size: .94rem; }
.ly-filetable th, .ly-filetable td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--ly-rule); }
.ly-filetable thead th { font: 600 .7rem/1.2 var(--ly-code); letter-spacing: .12em; text-transform: uppercase; color: var(--ly-soft); }
.ly-filetable td:first-child { font-family: var(--ly-code); color: var(--ly-select); }
.ly-filetable a { color: var(--ly-text); text-decoration: none; font-weight: 600; }
.ly-filetable a:hover { color: #8fb9ff; }
.ly-strip { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--ly-5); align-items: center; padding: var(--ly-5); border-radius: var(--ly-r-lg); }
.ly-strip img { width: 100%; border-radius: var(--ly-r); }
.ly-strip--sub { background: #2a2420; border: 1px solid #4a3f37; }
.ly-strip--sub .ly-over { color: #ffc27a; }
.ly-strip--safe { background: linear-gradient(135deg, rgba(255, 143, 112, .12), rgba(61, 139, 255, .06)); border: 1px solid var(--ly-rule-hi); }
.ly-list4 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ly-4); }
.ly-doclink { display: block; height: 100%; padding: var(--ly-4); border-radius: var(--ly-r-lg); background: var(--ly-panel); border: 1px solid var(--ly-rule); color: var(--ly-text); text-decoration: none; transition: border-color .16s ease-out; }
.ly-doclink:hover { border-color: var(--ly-select); color: var(--ly-text); }
.ly-doclink b { display: block; font: 600 1.02rem/1.3 var(--ly-head); margin-bottom: 6px; }
.ly-doclink span { color: var(--ly-soft); font-size: .92rem; }
.ly-doclink small { display: block; margin-bottom: 6px; font: 500 .7rem/1 var(--ly-code); color: #6f7482; }
.ly-faq details { border-bottom: 1px solid var(--ly-rule); padding: var(--ly-3) 0; }
.ly-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--ly-3); font: 600 1.04rem/1.4 var(--ly-head); }
.ly-faq summary::-webkit-details-marker { display: none; }
.ly-faq summary::after { content: "+"; color: var(--ly-select); font-size: 1.3rem; line-height: 1; transition: transform .16s ease-out; }
.ly-faq details[open] summary::after { transform: rotate(45deg); }
.ly-faq details p { margin: var(--ly-3) 0 0; color: #cdd0d8; max-width: 72ch; }

/* ---------- layer list page ---------- */

.ly-filelist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ly-4); }
.ly-file { display: flex; flex-direction: column; height: 100%; border-radius: var(--ly-r-lg); background: var(--ly-panel); border: 1px solid var(--ly-rule); overflow: hidden; }
.ly-file__top { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--ly-rule); font: 500 .72rem/1 var(--ly-code); color: var(--ly-soft); }
.ly-file img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ly-file__body { padding: var(--ly-4); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ly-file__body h2 { font-size: 1.35rem; margin: 0; }
.ly-file__body h2 a { color: var(--ly-text); text-decoration: none; }
.ly-file__body p { margin: 0; color: #cdd0d8; font-size: .94rem; }
.ly-file__body .ly-key { margin-top: auto; align-self: flex-start; }
.ly-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.ly-chips li { padding: 5px 9px; border-radius: 5px; border: 1px solid var(--ly-rule-hi); font: 500 .74rem/1 var(--ly-code); color: var(--ly-soft); }
.ly-chips b { color: var(--ly-run); font-weight: 600; margin-left: 4px; }

/* ---------- game layer page ---------- */

.ly-gamehead { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: var(--ly-5); align-items: end; padding: var(--ly-5); border-radius: var(--ly-r-lg); overflow: hidden; border: 1px solid var(--ly-rule); isolation: isolate; }
.ly-gamehead__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .5; }
.ly-gamehead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 21, 25, .96) 25%, rgba(20, 21, 25, .55)); }
.ly-gamehead__cover { width: 170px; height: 226px; object-fit: cover; border-radius: 6px; outline: 1.5px solid var(--ly-select); outline-offset: 5px; }
.ly-gamehead h1 { margin-bottom: var(--ly-2); }
.ly-gamehead .ly-lede { margin-bottom: var(--ly-3); }
.ly-play { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: var(--ly-4); margin-top: var(--ly-5); }
.ly-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--ly-4); min-height: 360px; padding: var(--ly-5); border-radius: var(--ly-r-lg); border: 1px solid var(--ly-rule); background: repeating-conic-gradient(#1f2127 0 25%, #1a1c21 0 50%) 0 0 / 26px 26px; overflow: hidden; }
.ly-play.is-locked .ly-stage { filter: grayscale(.6); }
.ly-game { width: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--ly-4); }
.ly-say { margin: 0; min-height: 3em; text-align: center; max-width: 62ch; color: #d6d8df; }
.ly-result { margin: 0; min-height: 1.4em; font: 600 .98rem/1.4 var(--ly-code); color: var(--ly-soft); text-align: center; }
.ly-result.is-ahead { color: var(--ly-run); }
.ly-inspector { display: flex; flex-direction: column; gap: var(--ly-3); padding: 0 0 var(--ly-4); border-radius: var(--ly-r-lg); background: var(--ly-panel); border: 1px solid var(--ly-rule); overflow: hidden; }
.ly-inspector .ly-panelhead { margin: 0; border-radius: 0; }
.ly-inspector dl, .ly-inspector ol, .ly-inspector > p, .ly-inspector > .ly-key { margin: 0 var(--ly-4); }
.ly-inspector dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .88rem; }
.ly-inspector dt { color: var(--ly-soft); }
.ly-inspector dd { margin: 0; text-align: right; font: 600 .9rem/1.5 var(--ly-code); }
.ly-inspector ol { list-style: none; padding: 0; display: grid; gap: 4px; font-size: .8rem; max-height: 220px; overflow: auto; }
.ly-inspector li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 5px; background: var(--ly-ground); }
.ly-inspector li b { font-family: var(--ly-code); white-space: nowrap; }
.ly-none { color: var(--ly-soft); }
.ly-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--ly-4); padding: var(--ly-3) var(--ly-4); border-radius: var(--ly-r-lg); background: var(--ly-panel); border: 1px solid var(--ly-rule); }
.ly-stakes { display: flex; align-items: center; margin: 0; padding: 0; border: 0; }
.ly-stakes legend { float: left; margin-right: 10px; font: 600 .7rem/1.2 var(--ly-code); text-transform: uppercase; letter-spacing: .12em; color: var(--ly-soft); }
.ly-stake { min-width: 56px; height: 42px; padding: 0 12px; border: 1px solid var(--ly-rule-hi); background: var(--ly-ground); color: var(--ly-soft); font: 600 .9rem/1 var(--ly-code); cursor: pointer; transition: background-color .14s ease-out, color .14s ease-out; }
.ly-stake + .ly-stake { border-left: 0; }
.ly-stake:first-of-type { border-radius: var(--ly-r) 0 0 var(--ly-r); }
.ly-stake:last-of-type { border-radius: 0 var(--ly-r) var(--ly-r) 0; }
.ly-stake[aria-pressed="true"] { background: var(--ly-select); border-color: var(--ly-select); color: #fff; }
.ly-stake[disabled] { opacity: .55; cursor: not-allowed; }
.ly-actions { display: flex; flex-wrap: wrap; gap: var(--ly-2); margin-left: auto; }
.ly-run { min-width: 200px; min-height: 52px; padding: 12px 24px; border: 0; border-radius: var(--ly-r); background: var(--ly-run); color: var(--ly-on-run); font: 700 1.02rem/1.2 var(--ly-body); cursor: pointer; box-shadow: 0 0 0 1px rgba(184, 242, 90, .4), 0 10px 24px rgba(184, 242, 90, .16); transition: background-color .16s ease-out, transform .12s ease-out; }
.ly-run:hover { background: #cdfa82; }
.ly-run:active { transform: scale(.97); }
.ly-run[disabled] { background: #333743; color: #7d8291; box-shadow: none; cursor: not-allowed; }
.ly-opt { min-height: 48px; padding: 10px 16px; border-radius: var(--ly-r); border: 1px solid var(--ly-rule-hi); background: transparent; color: var(--ly-text); font: 600 .9rem/1.2 var(--ly-body); cursor: pointer; transition: border-color .16s ease-out, transform .12s ease-out; }
.ly-opt:hover { border-color: var(--ly-select); }
.ly-opt:active { transform: scale(.97); }
.ly-opt[disabled] { opacity: .45; cursor: not-allowed; }

/* overlay */
.ly-ov { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 600px; }
.ly-ov__col { display: grid; gap: 8px; }
.ly-ov__cell { position: relative; aspect-ratio: 1; border-radius: 8px; background: #101114; border: 1px solid var(--ly-rule); overflow: hidden; }
.ly-ov__back, .ly-ov__glass { position: absolute; inset: 0; display: grid; place-items: center; }
.ly-ov__back .ly-sym { width: 74%; }
.ly-ov__cell.has-glass .ly-ov__back { opacity: .25; }
.ly-ov__glass { background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(143, 185, 255, .08)); border: 1.5px solid rgba(190, 215, 255, .7); border-radius: 8px; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ly-ov__glass .ly-sym { width: 70%; }
.ly-ov.is-new .ly-ov__glass { animation: ly-glass .3s var(--ly-out) both; animation-delay: var(--ly-wait, 200ms); }
@keyframes ly-glass { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
.ly-ov__cell.is-lit { border-color: var(--ly-run); box-shadow: inset 0 0 0 1px var(--ly-run), 0 0 14px rgba(184, 242, 90, .3); }

/* parallax */
.ly-px { width: 100%; max-width: 620px; display: grid; gap: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--ly-rule-hi); }
.ly-px__strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ly-px__strip--back { background: linear-gradient(180deg, #2b2457, #3d2f6e); }
.ly-px__strip--middle { background: linear-gradient(180deg, #3c3a7a, #2c4f7a); }
.ly-px__strip--front { background: linear-gradient(180deg, #2f6b4f, #24503c); }
.ly-px__cell { display: grid; place-items: center; aspect-ratio: 1.15; border-right: 1px dashed rgba(255, 255, 255, .08); }
.ly-px__cell .ly-sym { width: 66%; }
.ly-px__cell.is-lit { background: rgba(184, 242, 90, .16); box-shadow: inset 0 0 0 1px rgba(184, 242, 90, .6); }
.ly-px__cell.is-scene { background: rgba(184, 242, 90, .3); }
.ly-px.is-moving .ly-px__strip--back { animation: ly-slide .55s var(--ly-out) both; }
.ly-px.is-moving .ly-px__strip--middle { animation: ly-slide .7s var(--ly-out) both; }
.ly-px.is-moving .ly-px__strip--front { animation: ly-slide .85s var(--ly-out) both; }
@keyframes ly-slide { from { transform: translateX(-12%); opacity: .2; } to { transform: none; opacity: 1; } }

/* cards */
.ly-card { position: relative; display: grid; place-items: center; width: 58px; height: 82px; padding: 0; border-radius: 7px; background: #f8f8f6; color: #16181d; border: 2px solid #d9dbe0; font-family: var(--ly-code); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); transition: transform .14s ease-out, border-color .14s ease-out; }
button.ly-card { cursor: pointer; }
button.ly-card[disabled] { cursor: default; opacity: .65; }
.ly-card--red { color: #d0284f; }
.ly-card__r { position: absolute; top: 4px; left: 6px; font-weight: 700; font-size: .9rem; }
.ly-card__s { font-size: 1.6rem; line-height: 1; }
.ly-card.is-picked { transform: translateY(-8px); border-color: var(--ly-select); }
.ly-card.is-tip-from { border-color: var(--ly-run); }
.ly-card.is-tip-onto { border-color: var(--ly-select); border-style: dashed; }
.ly-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 640px; }
.ly-count { margin: 0; font: 600 .9rem/1.4 var(--ly-code); color: var(--ly-soft); text-align: center; }
.ly-clock { position: relative; width: min(380px, 100%); aspect-ratio: 1; }
.ly-clock__pile { position: absolute; display: grid; justify-items: center; gap: 2px; width: 62px; transform: translate(-50%, -50%); }
.ly-clock__label { font: 600 .72rem/1 var(--ly-code); color: #7d8291; }
.ly-clock__top { display: grid; place-items: center; width: 50px; height: 70px; border-radius: 6px; border: 1.5px dashed #464a56; }
.ly-clock__top .ly-card { width: 50px; height: 70px; animation: ly-pop .18s var(--ly-out); }
.ly-clock__top .ly-card__s { font-size: 1.3rem; }
.ly-clock__pile--0 { left: 66%; top: 15%; }
.ly-clock__pile--1 { left: 82%; top: 29%; }
.ly-clock__pile--2 { left: 88%; top: 50%; }
.ly-clock__pile--3 { left: 82%; top: 71%; }
.ly-clock__pile--4 { left: 66%; top: 86%; }
.ly-clock__pile--5 { left: 50%; top: 92%; }
.ly-clock__pile--6 { left: 34%; top: 86%; }
.ly-clock__pile--7 { left: 18%; top: 71%; }
.ly-clock__pile--8 { left: 12%; top: 50%; }
.ly-clock__pile--9 { left: 18%; top: 29%; }
.ly-clock__pile--10 { left: 34%; top: 15%; }
.ly-clock__pile--11 { left: 50%; top: 8%; }
.ly-clock__pile--12 { left: 50%; top: 50%; }
.ly-clock__pile--12 .ly-clock__top { border-color: var(--ly-select); }

/* dice and tokens */
.ly-tray { display: flex; gap: 10px; justify-content: center; min-height: 60px; }
.ly-die { width: 56px; height: 56px; }
.ly-die rect { fill: #f6f7f9; stroke: #c8ccd4; stroke-width: 1.5; }
.ly-die circle { fill: #16181d; }
.ly-die.is-dead { opacity: .45; }
.ly-die.is-dead rect { fill: #ffd8cd; stroke: var(--ly-care); }
.ly-tray.is-rolled .ly-die { animation: ly-roll .34s var(--ly-out) both; }
.ly-tray.is-rolled .ly-die:nth-child(2) { animation-delay: .04s; }
.ly-tray.is-rolled .ly-die:nth-child(3) { animation-delay: .08s; }
.ly-tray.is-rolled .ly-die:nth-child(4) { animation-delay: .12s; }
.ly-tray.is-rolled .ly-die:nth-child(5) { animation-delay: .16s; }
@keyframes ly-roll { from { opacity: 0; transform: translateY(-12px) rotate(-20deg); } to { opacity: 1; transform: none; } }
.ly-throws { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; width: 100%; max-width: 480px; font: 500 .84rem/1.4 var(--ly-code); }
.ly-throws li { padding: 5px 10px; border-radius: 5px; background: rgba(0, 0, 0, .3); }
.ly-throws li.is-loss { color: var(--ly-care); }
.ly-calls { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ly-2); }
.ly-call { padding: 8px 14px; border-radius: var(--ly-r); border: 1px solid var(--ly-rule-hi); background: var(--ly-panel); color: var(--ly-text); font: 600 .88rem/1.2 var(--ly-body); cursor: pointer; transition: border-color .14s ease-out, background-color .14s ease-out; }
.ly-call[aria-pressed="true"] { border-color: var(--ly-select); background: var(--ly-select-soft); }
.ly-call[disabled] { opacity: .55; cursor: not-allowed; }
.ly-tokens { display: flex; gap: var(--ly-5); justify-content: center; }
.ly-token { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); }
.ly-token--sun { background: radial-gradient(circle at 40% 35%, #ffd877, #e59a1f); color: #5a3300; }
.ly-token--moon { background: radial-gradient(circle at 40% 35%, #a9c8ff, #3d6fd1); color: #0d214d; }
.ly-token__face { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.ly-token--moon .ly-token__face { fill: currentColor; stroke: none; }
.ly-tokens.is-flipped .ly-token { animation: ly-flip .4s var(--ly-out) both; }
.ly-tokens.is-flipped .ly-token + .ly-token { animation-delay: .06s; }
@keyframes ly-flip { from { transform: rotateY(90deg); opacity: .3; } to { transform: none; opacity: 1; } }

/* game page body */
.ly-gamebody { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: var(--ly-6); margin-top: var(--ly-7); align-items: start; }
.ly-text { max-width: 72ch; }
.ly-text h2 { margin-top: var(--ly-6); }
.ly-text h2:first-child { margin-top: 0; }
.ly-text li { margin-bottom: 6px; }
.ly-side { position: sticky; top: 90px; display: grid; gap: var(--ly-4); }
.ly-side dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: .9rem; }
.ly-side dt { color: var(--ly-soft); }
.ly-side dd { margin: 0; }
.ly-side--stop { border-color: rgba(255, 143, 112, .55); }
.ly-side--stop h2 { color: var(--ly-care); font-size: 1.1rem; }
.ly-scroll { overflow-x: auto; }
.ly-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: .93rem; }
.ly-table caption { text-align: left; color: var(--ly-soft); font-size: .85rem; margin-bottom: var(--ly-2); }
.ly-table th, .ly-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--ly-rule); }
.ly-table thead th { font: 600 .7rem/1.2 var(--ly-code); letter-spacing: .1em; text-transform: uppercase; color: var(--ly-soft); }
.ly-table td { font: 600 .92rem/1.4 var(--ly-code); color: var(--ly-run); }
.ly-neighbours { display: flex; flex-wrap: wrap; gap: var(--ly-4); margin-top: var(--ly-7); }
.ly-neighbours a { flex: 1 1 260px; display: flex; align-items: center; gap: var(--ly-3); padding: var(--ly-3); border-radius: var(--ly-r-lg); background: var(--ly-panel); border: 1px solid var(--ly-rule); color: var(--ly-text); text-decoration: none; transition: border-color .16s ease-out; }
.ly-neighbours a:hover { border-color: var(--ly-select); color: var(--ly-text); }
.ly-neighbours img { width: 54px; height: 72px; object-fit: cover; border-radius: 5px; }
.ly-neighbours small { display: block; font: 500 .72rem/1.3 var(--ly-code); color: var(--ly-soft); }
.ly-neighbours b { font-family: var(--ly-head); font-weight: 600; }

/* ---------- history ---------- */

.ly-stagecard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ly-4); }
.ly-stagename { font: 600 2.4rem/1 var(--ly-head); color: var(--ly-run); margin: var(--ly-2) 0 var(--ly-3); }
.ly-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ly-stages li { display: flex; justify-content: space-between; gap: var(--ly-3); padding: 8px 12px; border-radius: var(--ly-r); background: var(--ly-ground); border: 1px solid var(--ly-rule); font-family: var(--ly-code); font-size: .9rem; }
.ly-stages li.is-current { border-color: var(--ly-select); color: #9cc3ff; }
.ly-snaps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--ly-3); }
.ly-snap { min-height: 110px; padding: var(--ly-4); border-radius: var(--ly-r); border: 1px dashed var(--ly-rule-hi); color: var(--ly-soft); background: repeating-conic-gradient(#1d1f25 0 25%, #191b20 0 50%) 0 0 / 16px 16px; }
.ly-snap b { display: block; color: var(--ly-text); font-family: var(--ly-head); margin-bottom: 4px; }
.ly-snap.is-taken { border-style: solid; border-color: var(--ly-select); background: var(--ly-select-soft); color: #cfe0ff; }
.ly-plain { width: 100%; border-collapse: collapse; }
.ly-plain th, .ly-plain td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--ly-rule); }
.ly-plain td { font-family: var(--ly-code); }

/* ---------- safe mode ---------- */

.ly-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ly-4); }
.ly-tool h3 { display: flex; align-items: center; gap: 8px; }
.ly-tool h3 .ly-glyph { color: var(--ly-care); }
.ly-seg { display: flex; flex-wrap: wrap; margin: var(--ly-3) 0; padding: 0; border: 0; gap: 0; }
.ly-seg legend { width: 100%; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
.ly-seg__b { padding: 8px 13px; border: 1px solid var(--ly-rule-hi); background: var(--ly-ground); color: var(--ly-text); font: 600 .85rem/1.2 var(--ly-code); cursor: pointer; margin: 0 -1px -1px 0; transition: background-color .14s ease-out; }
.ly-seg__b[aria-pressed="true"] { background: var(--ly-select); border-color: var(--ly-select); color: #fff; position: relative; }
.ly-seg__b:first-of-type { border-radius: var(--ly-r) 0 0 var(--ly-r); }
.ly-seg__b:last-of-type { border-radius: 0 var(--ly-r) var(--ly-r) 0; }
.ly-check ol { padding-left: 1.3rem; }
.ly-check li { margin-bottom: var(--ly-4); }
.ly-scale { display: flex; flex-wrap: wrap; gap: 0; margin-top: 6px; }
.ly-outcome { padding: var(--ly-4); border-radius: var(--ly-r); background: var(--ly-select-soft); border: 1px solid rgba(61, 139, 255, .4); }
.ly-helpers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ly-3); }
.ly-helpers li { padding: var(--ly-4); border-radius: var(--ly-r); background: var(--ly-panel); border: 1px solid var(--ly-rule); }
.ly-helpers b { display: block; font-family: var(--ly-head); }
.ly-field { display: grid; gap: 6px; margin-bottom: var(--ly-3); }
.ly-field label { font-weight: 600; font-size: .9rem; }
.ly-field input, .ly-field select, .ly-field textarea { width: 100%; padding: 10px 12px; border-radius: var(--ly-r); border: 1px solid var(--ly-rule-hi); background: #101114; color: var(--ly-text); font: 1rem/1.4 var(--ly-body); }
.ly-field input:focus, .ly-field select:focus, .ly-field textarea:focus { outline: none; border-color: var(--ly-select); box-shadow: 0 0 0 3px rgba(61, 139, 255, .25); }
.ly-field small { color: var(--ly-care); }
.ly-tick { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: var(--ly-3); }
.ly-tick input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--ly-select); }
.ly-decoy { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ly-ok { color: var(--ly-run); font-weight: 600; }

/* ---------- sublayer (felt room) ---------- */

.ly-felt { background: #1d1a18; background-image: radial-gradient(800px 380px at 80% -10%, rgba(255, 194, 122, .1), transparent 70%); }
.ly-felt .ly-over { color: #ffc27a; }
.ly-felt .ly-card-box { background: #26221f; border-color: #3d3530; }
.ly-felt .ly-key--blue { background: #ffb15c; border-color: #ffb15c; color: #2b1600; }
.ly-felt .ly-key--blue:hover { background: #ffc890; color: #2b1600; }
.ly-shelfhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ly-5); align-items: center; }
.ly-shelfhead img { border-radius: var(--ly-r-lg); }
.ly-moods { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--ly-5) 0; padding: 0; border: 0; }
.ly-moods legend { width: 100%; font: 600 .72rem/1.2 var(--ly-code); letter-spacing: .12em; text-transform: uppercase; color: #bfae9e; margin-bottom: 8px; }
.ly-mood { padding: 8px 15px; border-radius: 999px; border: 1px solid #5a4d44; background: #26221f; color: #f2e8df; font: 600 .88rem/1.2 var(--ly-body); cursor: pointer; transition: background-color .14s ease-out; }
.ly-mood[aria-pressed="true"] { background: #ffb15c; border-color: #ffb15c; color: #2b1600; }
.ly-shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: var(--ly-5); }
.ly-review-card { display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; background: #26221f; border: 1px solid #3d3530; }
.ly-review-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ly-review-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: var(--ly-4); }
.ly-review-card__tag { font: 600 .7rem/1 var(--ly-code); letter-spacing: .12em; color: #ffc27a; }
.ly-review-card h2, .ly-review-card h3 { font-size: 1.2rem; margin: 0; }
.ly-review-card p { margin: 0; color: #dccfc4; font-size: .93rem; }
.ly-review-card .ly-chips li { border-color: #4f443c; color: #c8b8aa; }
.ly-review-card__links { margin-top: auto; padding-top: var(--ly-3); display: flex; flex-wrap: wrap; gap: 12px; font-weight: 600; }
.ly-felt .ly-review-card__links a, .ly-felt .ly-reading a:not(.ly-key), .ly-felt .ly-card-box a:not(.ly-key) { color: #ffc890; }
.ly-builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--ly-5); }
.ly-build { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ly-build li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 10px 12px; border-radius: var(--ly-r); background: #1d1a18; border-left: 3px solid #ffb15c; }
.ly-build li.is-break { border-left-color: var(--ly-run); }
.ly-build li.is-close { border-left-color: var(--ly-care); }
.ly-build time { font: 600 .92rem/1.4 var(--ly-code); }
.ly-reading { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--ly-6); align-items: start; }
.ly-reading__img { border-radius: var(--ly-r-lg); margin-bottom: var(--ly-5); }
.ly-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 var(--ly-4); font-size: .93rem; }
.ly-facts dt { color: #bfae9e; }
.ly-facts dd { margin: 0; }
.ly-score { font: 600 2.4rem/1 var(--ly-head); color: #ffb15c; }
.ly-score small { font-size: 1rem; color: #bfae9e; }

/* ---------- prose pages ---------- */

.ly-prose { max-width: 78ch; }
.ly-prose h2 { margin-top: var(--ly-6); font-size: 1.35rem; }
.ly-prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--ly-4); font-size: .92rem; }
.ly-prose th, .ly-prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--ly-rule); vertical-align: top; }
.ly-prose code { font-family: var(--ly-code); color: var(--ly-run); }
.ly-toc { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.ly-missing { text-align: center; padding: var(--ly-8) 0; }
.ly-missing__code { display: block; margin-bottom: var(--ly-4); font: 700 3.6rem/1 var(--ly-code); color: var(--ly-select); }

/* ---------- footer ---------- */

.ly-foot { border-top: 1px solid var(--ly-rule); background: #0f1013; padding: var(--ly-6) clamp(14px, 3vw, 40px) var(--ly-5); }
.ly-foot__terms { max-width: 1240px; margin: 0 auto var(--ly-5); padding: var(--ly-4) var(--ly-5); border-radius: var(--ly-r-lg); border: 1px solid var(--ly-rule-hi); background: var(--ly-panel); }
.ly-foot__terms p:last-child { margin: 0; color: #c6c9d2; }
.ly-foot__grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: var(--ly-5); }
.ly-foot__h { font: 600 .72rem/1.3 var(--ly-code); letter-spacing: .14em; text-transform: uppercase; color: var(--ly-select); margin-bottom: var(--ly-3); }
.ly-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .9rem; }
.ly-foot a { color: #cfd2da; }
.ly-foot a:hover { color: #8fb9ff; }
.ly-foot__n { display: inline-block; min-width: 26px; margin-right: 6px; font: 600 .7rem/1 var(--ly-code); color: #6f7482; }
.ly-foot__help li { color: var(--ly-soft); }
.ly-foot__base { max-width: 1240px; margin: var(--ly-5) auto 0; padding-top: var(--ly-4); border-top: 1px solid var(--ly-rule); font-size: .84rem; color: var(--ly-soft); }
.ly-foot__base p { margin: 0 0 6px; }

/* ---------- calm and reduced motion ---------- */

.ly-calm *, .ly-calm *::before, .ly-calm *::after { animation: none !important; transition-duration: 0s !important; }
.ly-calm .ly-result.is-ahead { color: var(--ly-soft); }
.ly-calm .ly-ov__cell.is-lit, .ly-calm .ly-px__cell.is-lit { box-shadow: inset 0 0 0 1px var(--ly-rule-hi); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- smaller screens ---------- */

@media (max-width: 1560px) {
  .ly-tab__file, .ly-status__px span, .ly-status__time { display: none; }
}
@media (max-width: 1240px) {
  .ly-tabs { display: none; }
  .ly-status { margin-left: auto; }
  .ly-status__menu { display: flex; }
}

@media (max-width: 1180px) {
  .ly-editor { grid-template-columns: 270px minmax(0, 1fr); }
  .ly-props { display: none; }
  .ly-gamebody, .ly-reading { grid-template-columns: minmax(0, 1fr); }
  .ly-side { position: static; }
  .ly-list4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ly-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ly-filelist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .ly-editor { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ly-canvas { display: none; }
  .ly-layers { border-right: 0; }
  .ly-play { grid-template-columns: minmax(0, 1fr); }
  .ly-inspector { order: 3; }
  .ly-stage { min-height: 0; padding: var(--ly-4) 10px; }
  .ly-two, .ly-three, .ly-tools, .ly-strip, .ly-stagecard, .ly-shelfhead, .ly-builder, .ly-helpers { grid-template-columns: minmax(0, 1fr); }
  .ly-gamehead { grid-template-columns: minmax(0, 1fr); }
  .ly-gamehead__cover { display: none; }
  .ly-actions { margin-left: 0; width: 100%; }
  .ly-run { flex: 1 1 100%; }
  .ly-filelist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ly-logo span { font-size: .95rem; }
  .ly-status__pause span, .ly-status__menu span { display: none; }
  .ly-status__pause, .ly-status__menu { padding: 9px; }
  .ly-status { gap: 6px; min-width: 0; }
  .ly-status__px { padding: 6px 8px; }
  .ly-status__px .ly-glyph { display: none; }
  .ly-notice { font-size: .68rem; gap: 2px 8px; }
  .ly-notice span + span::before { margin-right: 8px; }
  .ly-list4, .ly-foot__grid { grid-template-columns: minmax(0, 1fr); }
  .ly-layer { grid-template-columns: 16px 40px minmax(0, 1fr); }
  .ly-layer__blend { display: none; }
  .ly-ov { gap: 4px; }
  .ly-ov__col { gap: 4px; }
  .ly-card { width: 44px; height: 62px; }
  .ly-card__s { font-size: 1.2rem; }
  .ly-card__r { font-size: .75rem; top: 3px; left: 4px; }
  .ly-clock__pile { width: 42px; }
  .ly-clock__top, .ly-clock__top .ly-card { width: 36px; height: 50px; }
  .ly-stakes { flex-wrap: wrap; }
  .ly-stakes legend { float: none; width: 100%; margin-bottom: 6px; }
  .ly-stake { min-width: 0; flex: 1; padding: 0 6px; }
  .ly-modal__box { padding: var(--ly-5); }
  .ly-modal__grid { grid-template-columns: repeat(2, 1fr); }
  .ly-consent__row { flex-direction: column; }
  .ly-tokens .ly-token { width: 76px; height: 76px; }
  .ly-die { width: 46px; height: 46px; }
}
@media (max-width: 400px) {
  .ly-bar { gap: var(--ly-2); }
  .ly-logo span { display: none; }
}
