/* play.csen.lt: the launcher LOOK-ALIKE frame (operator 2026-09-06: "play
   could contain just that, not interactable, just see the values change").
   A scoped port of relay/internal/tunnel/ui/static/style.css at the
   launcher's designed 1140x560 box; play-preview.js scales the frame to the
   page width and feeds it the real public status + links feeds. Everything
   is under .lp so the shared csen.css page styles stay untouched.
   DRIFT RULE: when the launcher's style.css changes a visible thing, mirror
   it here (there is no build step joining the two - deliberate, the page
   must never depend on the Go embed). Tokens come from csen.css (:root). */

.lp-wrap{position:relative;width:100%;max-width:1140px;margin:0 auto;overflow:hidden;
  border-radius:12px;box-shadow:0 30px 80px rgba(0,0,0,.55)}
.lp{position:absolute;left:0;top:0;width:1140px;height:560px;transform-origin:0 0;
  display:flex;flex-direction:column;background:var(--bg);color:var(--bone);
  font:14px/1.45 -apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  border:1px solid var(--line);border-radius:12px;overflow:hidden;
  pointer-events:none;user-select:none;-webkit-user-select:none;text-align:left}
.lp *{box-sizing:border-box}
/* !important: csen.css page classes (.warn, .num, ...) and the .lp .panel
   rule below would otherwise outrank a bare .hidden - the first deploy showed
   BOTH panels stacked (operator 2026-09-06) */
.lp .hidden{display:none!important}

/* title bar (the borderless native window's) */
.lp .titlebar{position:relative;display:flex;align-items:center;justify-content:flex-end;
  height:32px;background:var(--box);border-bottom:1px solid var(--line);flex:none}
.lp .tb-title{position:absolute;left:50%;transform:translateX(-50%);
  color:var(--ash);font-size:11px;font-weight:700;letter-spacing:.18em}
.lp .tb-btns{display:flex;height:100%}
.lp .tb-btn{width:44px;height:100%;display:flex;align-items:center;justify-content:center;
  color:var(--ash);font-size:13px;line-height:1}

/* header: brand left, tabs center, sign-in right */
.lp header{position:relative;display:flex;align-items:center;gap:12px;padding:8px 16px;
  border-bottom:1px solid var(--line);background:var(--box);flex:none}
.lp .brand{height:42px;width:42px;border-radius:8px;flex:none}
.lp .tabs{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:20px}
.lp .tab{border-bottom:2px solid transparent;color:var(--ash);font-weight:700;font-size:12px;
  letter-spacing:.16em;text-transform:uppercase;padding:9px 4px 7px}
.lp .tab.active{color:var(--bone);border-bottom-color:var(--gold)}
.lp .hdr-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.lp .steam-btn{background:var(--box);color:var(--bone);border:1px solid var(--gold);
  border-radius:7px;font-weight:600;font-size:12px;padding:8px 13px;white-space:nowrap}

/* main: server browser left, sidebar right */
.lp main{flex:1;min-height:0;display:flex}
.lp .left{flex:1;min-width:0;display:flex;flex-direction:column;padding:14px 16px 10px}
.lp .panel{flex:1;min-height:0;display:flex;flex-direction:column}
.lp .browser{flex:1;min-height:0;display:flex;flex-direction:column;
  background:var(--box);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.lp .srv-head,.lp .srv-row{display:grid;
  grid-template-columns:minmax(0,1fr) 130px 84px 64px 92px;
  gap:10px;align-items:center;padding:0 12px}
.lp .srv-head{flex:none;height:34px;color:var(--ash);font-size:11px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;border-bottom:1px solid var(--line);
  background:rgba(0,0,0,.18)}
.lp .srv-head .num{text-align:right}
.lp .srv-rows{flex:1;min-height:0;overflow:hidden}
.lp .srv-row{height:46px;border-bottom:1px solid var(--line)}
.lp .srv-row:last-child{border-bottom:0}
.lp .srv-name{display:flex;align-items:center;gap:8px;min-width:0;font-weight:600;font-size:14px}
.lp .srv-name .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp .srv-map,.lp .srv-players,.lp .srv-ping{color:var(--bone);font-size:13px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp .srv-players,.lp .srv-ping{text-align:right;font-variant-numeric:tabular-nums}
.lp .srv-row.down .srv-map,.lp .srv-row.down .srv-players,.lp .srv-row.down .srv-ping,
.lp .srv-row.down .srv-name{color:var(--ash)}
.lp .dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--ash);flex:none}
.lp .dot.up{background:#3fb950}
.lp .dot.down{background:var(--blood)}
.lp .srv-btn{text-align:right}
.lp .play{display:inline-block;text-align:center;background:var(--gold);color:var(--gold-ink);
  border-radius:7px;font-weight:700;padding:7px 0;width:84px;font-size:13px}
.lp .srv-row.down .play{background:var(--line);color:var(--ash)}
.lp .play.alt{background:var(--box);color:var(--bone);border:1px solid var(--gold);width:auto;padding:8px 16px}
.lp .manual{flex:none;display:flex;gap:10px;margin-top:10px}
.lp .manual .input{flex:1;background:var(--box);border:1px solid var(--line);color:var(--ash);
  border-radius:8px;padding:8px 12px;font-size:13px}
/* .lp-warn, NOT .warn: csen.css has a .warn box (yellow border) that leaked
   into the first deploy */
.lp .lp-warn{flex:none;color:var(--ash);font-size:11px;text-align:center;margin-top:8px}
.lp .loading{color:var(--ash);padding:14px}

/* a value that just changed flashes gold and settles - the "see the values
   change" cue; the real launcher has no such flash */
.lp .chg{animation:lp-flash 1.6s ease-out}
@keyframes lp-flash{0%{color:var(--gold)}100%{color:inherit}}

/* sidebar */
.lp .side{flex:none;width:280px;border-left:1px solid var(--line);background:var(--box);
  padding:14px;display:flex;flex-direction:column;gap:9px;overflow:hidden}
.lp .banner{display:block;width:100%;border-radius:8px;opacity:.95;flex:none}
.lp .discord-cta{display:block;text-align:center;background:var(--bg);
  border:1px solid var(--line);border-radius:8px;padding:9px 12px;
  color:var(--bone);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.lp .side-title{color:var(--ash);font-size:11px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;margin-top:2px;text-align:center}
.lp .side-title::after{content:"";display:block;width:28px;height:2px;
  background:var(--gold);margin:5px auto 0;border-radius:1px}
.lp .side-link{display:grid;grid-template-columns:1fr auto;align-items:center;
  column-gap:10px;background:var(--bg);border:1px solid var(--line);
  border-radius:8px;padding:9px 12px;color:var(--bone)}
.lp .side-link::after{content:"\203A";grid-column:2;grid-row:1/span 2;
  color:var(--ash);font-size:20px;font-weight:700;line-height:1}
.lp .sl-name{grid-column:1;font-weight:700;font-size:13px}
.lp .sl-desc{grid-column:1;color:var(--ash);font-size:11.5px;line-height:1.35;margin-top:1px}

.lp footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  color:var(--ash);font-size:11px;padding:7px 16px;border-top:1px solid var(--line);flex:none}

/* caption under the frame: live / connecting state */
.lp-cap{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;
  color:var(--ash);font-size:12px;margin-top:12px;text-align:center}
.lp-cap .ldot{width:8px;height:8px;border-radius:50%;background:var(--ash);flex:none}
.lp-cap.live .ldot{background:#3fb950;box-shadow:0 0 0 3px rgba(63,185,80,.18)}
/* RustEra "Coming soon" pill (launcher 1.2.9; same look as the 1.2.5 CSEra one) */
.lp .tab .soon{display:inline-block;vertical-align:1px;margin-left:6px;padding:1px 6px;
  border:1px solid var(--line);border-radius:9px;background:var(--bg);
  color:var(--ash);font-size:9px;letter-spacing:.08em;font-weight:700}
