/* SKYLINE — landing pages (LND): the page players see, and the GM's editor. */
#lobby.lp-host { display: block; background: #000; }
.lp-host { position: relative; overflow: hidden; }
.lp-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.lp-stage.tr-fade { animation: lpFade .6s ease; } .lp-stage.tr-slide { animation: lpSlide .55s ease; } .lp-stage.tr-zoom { animation: lpZoom .55s ease; }
@keyframes lpFade { from { opacity: 0; } } @keyframes lpSlide { from { opacity: 0; translate: 6% 0; } } @keyframes lpZoom { from { opacity: 0; scale: 1.06; } }
.lp-sec { position: relative; overflow: hidden; }
.lp-bg { position: absolute; inset: 0; width: 100%; height: 100%; background-position: center; object-fit: cover; }
.lp-chrome { position: absolute; right: 12px; top: 10px; display: flex; gap: 6px; z-index: 5; } .lp-chrome button { background: rgba(8,14,22,.75); }
.lp-el { position: absolute; box-sizing: border-box; overflow: hidden; transform-origin: center; }
.lp-el.t-text, .lp-el.t-bubble, .lp-el.t-cast { overflow: visible; }
.lp-el.act { cursor: pointer; }
.lp-img { position: absolute; inset: 0; background-repeat: no-repeat; }
.lp-hover-img { opacity: 0; transition: opacity .25s; } .lp-el:hover .lp-hover-img { opacity: 1; }
.lp-el video { width: 100%; height: 100%; display: block; }
.lp-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 2px dashed #4fc3f766; color: #4fc3f7aa; font: 600 14px var(--head); text-transform: uppercase; }
.lp-ph.clickarea { border-color: #ffd74088; color: #ffd740aa; }
.lp-text, .lp-btn, .lp-counter, .lp-check, .lp-clock, .lp-count, .lp-music, .lp-prog, .lp-list, .lp-bub { position: absolute; inset: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.lp-text { white-space: normal; } .lp-text.shrink { font-size: min(1em, 6cqw); }
.lp-btn { padding: 0 12px; }
.lp-curve { width: 100%; height: 100%; overflow: visible; }
.lp-bub { padding: 14px 18px; background: var(--bb, #fff); border-radius: inherit; }
.lp-bub::after { content: ""; position: absolute; width: 24px; height: 24px; background: var(--bb, #fff); transform: rotate(45deg); }
.lp-bub.tail-bl::after { left: 26px; bottom: -10px; } .lp-bub.tail-br::after { right: 26px; bottom: -10px; } .lp-bub.tail-tl::after { left: 26px; top: -10px; } .lp-bub.tail-tr::after { right: 26px; top: -10px; } .lp-bub.tail-none::after { display: none; }
.lp-el.t-bubble { background: transparent !important; }
.lp-counter small, .lp-count small, .lp-prog small { font-size: .38em; letter-spacing: .2em; opacity: .8; } .lp-counter b, .lp-count b { font-weight: inherit; }
.lp-gmc { position: absolute; right: 4px; top: 4px; display: flex; gap: 2px; } .lp-gmc button { font-size: 12px; padding: 0 6px; }
.lp-check { flex-direction: row; align-items: center; gap: 10px; cursor: default; } .lp-check[data-tog] { cursor: pointer; } .lp-check img { height: 80%; } .lp-check i { font-style: normal; font-size: 1.3em; }
.lp-prog { justify-content: center; gap: 6px; } .lp-prog .bar { height: 12px; background: rgba(255,255,255,.12); border-radius: 6px; overflow: hidden; } .lp-prog .bar i { display: block; height: 100%; }
.lp-music { flex-direction: row; align-items: center; gap: 8px; } .lp-music i { font-style: normal; animation: lpBeat 1.2s infinite; }
@keyframes lpBeat { 50% { transform: scale(1.25); } }
.lp-cast { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); align-content: start; overflow: auto; }
.lp-cast.l-row { display: flex; overflow-x: auto; } .lp-cast.l-row .lp-card { flex: 0 0 calc(100% / var(--cols) - var(--gap)); } .lp-cast.l-column { grid-template-columns: 1fr; }
.lp-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgba(8,14,22,.7); border: 1px solid var(--cc); border-radius: 8px; padding: 10px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.5), 0 0 12px var(--cc); }
.lp-cimg { width: 100%; aspect-ratio: 3 / 4; background: #0b1520 center / cover; border-radius: 6px; display: flex; align-items: center; justify-content: center; font: 700 40px var(--head); color: var(--cc); }
.lp-card.c-round .lp-cimg { width: 70%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--cc); }
.lp-card.c-badge { flex-direction: row; } .lp-card.c-badge .lp-cimg { width: 56px; aspect-ratio: 1; border-radius: 50%; flex: none; font-size: 20px; }
.lp-card.c-tall .lp-cimg { aspect-ratio: 1 / 2; background-size: contain; background-color: transparent; }
.lp-card b { text-align: center; } .lp-card small { color: #9fb8c8; font-size: 12px; }
.lp-show { position: absolute; inset: 0; } .lp-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 18px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.lp-sb { position: absolute; top: 50%; translate: 0 -50%; background: rgba(0,0,0,.45); border: 0; font-size: 26px; padding: 4px 12px; } .lp-sb.prev { left: 6px; } .lp-sb.next { right: 6px; }
.lp-dots { position: absolute; bottom: 6px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; } .lp-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); } .lp-dots i.on { background: #fff; }
.lp-list { padding: 14px 16px; overflow: auto; gap: 6px; } .lp-lt { font: 700 1.1em var(--head); letter-spacing: .2em; opacity: .9; }
.lp-lf { display: flex; gap: 4px; flex-wrap: wrap; } .lp-lf button { font-size: .7em; padding: 1px 8px; background: rgba(255,255,255,.06); } .lp-lf button.on { border-color: currentColor; }
.lp-li { display: flex; gap: 8px; padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.08); cursor: pointer; } .lp-li.done b { text-decoration: line-through; opacity: .6; }
.lp-li i { font-style: normal; } .lp-li img { width: 46px; height: 46px; object-fit: cover; border-radius: 4px; } .lp-li p { margin: 4px 0 0; font-size: .85em; opacity: .85; white-space: pre-wrap; }
.lp-li em { margin-left: 6px; font-size: .6em; color: #ffd740; border: 1px solid #ffd740; padding: 0 4px; font-style: normal; } .lp-li.sel { background: rgba(255,255,255,.05); }
.lp-frame { position: absolute; inset: 0; pointer-events: none; }
.lp-frame.f-line { border: 1px solid rgba(255,255,255,.6); } .lp-frame.f-double { border: 4px double rgba(255,255,255,.75); }
.lp-frame.f-corner { background: linear-gradient(#fff, #fff) 0 0 / 24px 2px, linear-gradient(#fff, #fff) 0 0 / 2px 24px, linear-gradient(#fff, #fff) 100% 100% / 24px 2px, linear-gradient(#fff, #fff) 100% 100% / 2px 24px; background-repeat: no-repeat; }
.lp-frame.f-film { border-top: 14px solid #000; border-bottom: 14px solid #000; }
/* motion */
.en-fade { animation: enFade var(--t) var(--d) both ease-out; } .en-up { animation: enUp var(--t) var(--d) both ease-out; } .en-down { animation: enDown var(--t) var(--d) both ease-out; }
.en-left { animation: enLeft var(--t) var(--d) both ease-out; } .en-right { animation: enRight var(--t) var(--d) both ease-out; } .en-zoom { animation: enZoom var(--t) var(--d) both ease-out; } .en-blur { animation: enBlur var(--t) var(--d) both ease-out; }
@keyframes enFade { from { opacity: 0; } } @keyframes enUp { from { opacity: 0; translate: 0 40px; } } @keyframes enDown { from { opacity: 0; translate: 0 -40px; } }
@keyframes enLeft { from { opacity: 0; translate: 60px 0; } } @keyframes enRight { from { opacity: 0; translate: -60px 0; } } @keyframes enZoom { from { opacity: 0; scale: .8; } } @keyframes enBlur { from { opacity: 0; filter: blur(12px); } }
.am-float { animation: amFloat 4s ease-in-out infinite; } .am-pulse { animation: amPulse 2.4s ease-in-out infinite; } .am-sway { animation: amSway 5s ease-in-out infinite; }
.am-spin { animation: amSpin 18s linear infinite; } .am-glow { animation: amGlow 2.5s ease-in-out infinite; } .am-flicker { animation: amFlicker 3s steps(1) infinite; }
.en-fade.am-float, .en-up.am-float { animation: enUp var(--t) var(--d) both ease-out, amFloat 4s calc(var(--d) + var(--t)) ease-in-out infinite; }
@keyframes amFloat { 50% { translate: 0 -10px; } } @keyframes amPulse { 50% { scale: 1.04; } } @keyframes amSway { 50% { rotate: 2deg; } } @keyframes amSpin { to { rotate: 360deg; } }
@keyframes amGlow { 50% { filter: drop-shadow(0 0 12px #4fc3f7); } } @keyframes amFlicker { 0%, 100% { opacity: 1; } 47% { opacity: .4; } 49% { opacity: 1; } 83% { opacity: .7; } }
.lp-el { transition: translate .2s, scale .2s, filter .2s, outline-color .2s; outline: 2px solid transparent; }
.hv-lift:hover { translate: 0 -5px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); } .hv-glow:hover { filter: drop-shadow(0 0 14px #4fc3f7); } .hv-scale:hover { scale: 1.05; }
.hv-outline:hover { outline-color: #4fc3f7; } .hv-bright:hover { filter: brightness(1.25); }
@media (prefers-reduced-motion: reduce) { .lp-el, .lp-stage { animation: none !important; } }
body.reduce-motion .lp-el, body.reduce-motion .lp-stage { animation: none !important; }
/* preview overlay */
#lp-preview { position: fixed; inset: 0; z-index: 85; background: #000; } #lp-preview .lp-pv-host { position: absolute; inset: 0 0 34px 0; }
.lp-pv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; display: flex; align-items: center; justify-content: center; gap: 12px; background: #4a1d1d; font: 600 13px var(--head); letter-spacing: 2px; }

/* ---------------------------------------------------------------- editor */
#page-design { overflow: hidden; } #design-body { height: 100%; display: flex; flex-direction: column; }
.ed-top { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: #0b1119; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ed-top select, .ed-top input { width: auto; } .ed-sep { width: 1px; height: 22px; background: var(--line); } .ed-add { display: flex; gap: 2px; } .ed-add button { min-width: 30px; }
.ed-main { flex: 1; display: grid; grid-template-columns: 220px 1fr 300px; min-height: 0; }
.ed-left, .ed-right { overflow: auto; padding: 8px; background: #0e151f; border-right: 1px solid var(--line); font-size: 12px; } .ed-right { border-right: 0; border-left: 1px solid var(--line); }
.ed-wrap { position: relative; overflow: auto; background: #05080d; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ed-canvas { position: relative; flex: none; box-shadow: 0 0 0 1px #2c3a4d, 0 20px 60px rgba(0,0,0,.6); }
.ed-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ed-stage .pinned-from-other { opacity: .5; pointer-events: none; }
.ed-over { position: absolute; inset: 0; pointer-events: none; }
.ed-box { position: absolute; outline: 1px solid #4fc3f7; transform-origin: center; } .ed-box.locked { outline-color: #ffb74d; outline-style: dashed; }
.ed-box .h { position: absolute; width: 10px; height: 10px; background: #fff; border: 1px solid #4fc3f7; pointer-events: auto; }
.ed-box .nw { left: -5px; top: -5px; cursor: nwse-resize; } .ed-box .n { left: calc(50% - 5px); top: -5px; cursor: ns-resize; } .ed-box .ne { right: -5px; top: -5px; cursor: nesw-resize; }
.ed-box .e { right: -5px; top: calc(50% - 5px); cursor: ew-resize; } .ed-box .se { right: -5px; bottom: -5px; cursor: nwse-resize; } .ed-box .s { left: calc(50% - 5px); bottom: -5px; cursor: ns-resize; }
.ed-box .sw { left: -5px; bottom: -5px; cursor: nesw-resize; } .ed-box .w { left: -5px; top: calc(50% - 5px); cursor: ew-resize; }
.ed-box .rot { left: calc(50% - 6px); top: -28px; width: 12px; height: 12px; border-radius: 50%; cursor: grab; background: #4fc3f7; }
.ed-guide { position: absolute; background: #f06292; } .ed-guide.v { top: 0; bottom: 0; width: 1px; } .ed-guide.hz { left: 0; right: 0; height: 1px; }
.ed-mq { position: absolute; border: 1px dashed #4fc3f7; background: rgba(79,195,247,.08); }
.ed-sec { display: flex; align-items: center; } .ed-sec > button { flex: 1; text-align: left; background: transparent; border: 0; } .ed-sec.on > button { color: var(--accent); font-weight: 700; }
.ed-ly { display: flex; align-items: center; gap: 2px; } .ed-ly .ly-n { flex: 1; text-align: left; background: transparent; border: 0; padding: 3px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-ly.on { background: #12304a; border-radius: 4px; } .ed-ly.grp .ly-n { padding-left: 12px; }
.ed-f { display: flex; align-items: center; gap: 6px; margin: 3px 0; } .ed-f > span { width: 82px; flex: none; color: var(--muted); } .ed-f input, .ed-f select, .ed-f textarea { font-size: 12px; padding: 3px 5px; }
.ed-f input[type=color] { width: 32px; padding: 0; height: 24px; flex: none; } .ed-f .ed-colt { flex: 1; } .ed-f.chk input { width: auto; }
.ed-grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; } .ed-grid4 .ed-f > span { width: 40px; }
.ed-right details { border-top: 1px solid var(--line); padding: 4px 0; } .ed-right summary { cursor: pointer; font: 600 12px var(--head); color: var(--accent); padding: 4px 0; }
.ed-tools { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; margin: 4px 0; }
.ed-sl, .ed-it { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin: 3px 0; background: #101a27; padding: 4px; border-radius: 4px; }
.ed-sl i { width: 46px; height: 30px; background: #000 center / cover; flex: none; } .ed-sl input { flex: 1; } .ed-it input { flex: 1; } .ed-it textarea { width: 100%; }
.ed-pick { position: fixed; z-index: 95; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px; display: flex; flex-direction: column; min-width: 180px; }
.ed-pick button { text-align: left; background: transparent; border: 0; } .ed-pick button:hover { background: #12304a; } .ed-pick small { color: var(--muted); padding: 2px 6px; }
.ed-empty { max-width: 640px; margin: 60px auto; }
@media (max-width: 1100px) { .ed-main { grid-template-columns: 170px 1fr 250px; } }
