:root {
  color-scheme: dark;
  --lp-bg: #05090d;
  --lp-panel: #0b121a;
  --lp-panel-2: #101a24;
  --lp-line: rgba(177, 205, 214, 0.14);
  --lp-line-strong: rgba(177, 205, 214, 0.28);
  --lp-text: #f4f7f8;
  --lp-muted: #8fa2ad;
  --lp-lime: #c5f43d;
  --lp-mint: #4de1ba;
  --lp-amber: #f4b64f;
  --lp-red: #ff6878;
  --lp-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --lp-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body.lp-body {
  margin: 0;
  min-height: 100vh;
  color: var(--lp-text);
  font-family: var(--lp-body);
  line-height: 1.5;
  background:
    linear-gradient(rgba(109, 186, 175, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 186, 175, 0.025) 1px, transparent 1px),
    radial-gradient(42rem 26rem at 88% -8%, rgba(197, 244, 61, 0.07), transparent 72%),
    radial-gradient(38rem 28rem at 0 18%, rgba(77, 225, 186, 0.06), transparent 74%),
    var(--lp-bg);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.lp-page { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.page-header { max-width: none; }

.lp-hero {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 232px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--lp-line);
}

.lp-hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 164px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(197, 244, 61, 0.24);
  border-radius: 8px;
  background: #0d171e;
}

.lp-hero-mark::before {
  content: "";
  position: absolute;
  inset: 24px 18px;
  clip-path: polygon(5% 32%, 22% 20%, 42% 22%, 53% 8%, 70% 16%, 78% 8%, 96% 24%, 92% 48%, 100% 66%, 82% 84%, 62% 79%, 48% 94%, 28% 82%, 9% 86%, 0 61%);
  background: linear-gradient(145deg, #204338, #182c36);
  box-shadow: inset 0 0 0 1px rgba(197, 244, 61, 0.2);
}

.lp-hero-mark span { position: relative; z-index: 2; font: 800 28px/1 var(--lp-display); color: var(--lp-lime); }
.lp-hero-mark i { position: absolute; z-index: 3; width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--lp-amber); box-shadow: 0 0 16px currentColor; }
.lp-hero-mark i:nth-of-type(1) { left: 44px; top: 74px; }
.lp-hero-mark i:nth-of-type(2) { right: 42px; top: 50px; background: var(--lp-mint); }
.lp-hero-mark i:nth-of-type(3) { right: 54px; bottom: 40px; background: #ef6fa7; }

.lp-kicker {
  display: block;
  color: var(--lp-lime);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.lp-hero-copy h1, .lp-section-head h2, .lp-room h2, .lp-action-card h2, .lp-result h2 {
  margin: 5px 0 0;
  font-family: var(--lp-display);
  letter-spacing: 0;
}
.lp-hero-copy h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1; }
.lp-hero-copy p { max-width: 680px; margin: 15px 0 18px; color: var(--lp-muted); font-size: 15px; }
.lp-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-meta span { padding: 6px 10px; border: 1px solid var(--lp-line); border-radius: 6px; color: #b7c4cb; font-size: 11px; font-weight: 700; }
.lp-meta .online { color: var(--lp-mint); border-color: rgba(77, 225, 186, 0.32); }

.lp-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 188px;
  padding: 10px 12px;
  border: 1px solid var(--lp-line);
  border-radius: 8px;
  background: rgba(11, 18, 26, 0.78);
}
.lp-profile-avatar { display: grid; place-items: center; width: 38px; aspect-ratio: 1; flex: 0 0 auto; border-radius: 50%; background: var(--lp-lime); color: #16200b; font-weight: 900; }
.lp-profile-pill strong, .lp-profile-pill small { display: block; }
.lp-profile-pill strong { max-width: 126px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.lp-profile-pill small { color: var(--lp-muted); font-size: 10px; }

main { padding: 26px 0 0; }
.lp-panel { border: 1px solid var(--lp-line); border-radius: 8px; background: rgba(10, 18, 26, 0.9); }
.lp-setup { padding: 24px; }
.lp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.lp-section-head h2 { font-size: 26px; }
.lp-mode-tabs, .lp-segmented { display: flex; padding: 3px; border: 1px solid var(--lp-line); border-radius: 7px; background: #070d13; }
.lp-mode-tabs button, .lp-segmented button { min-height: 36px; padding: 7px 14px; border: 0; border-radius: 5px; background: transparent; color: var(--lp-muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.lp-mode-tabs button.active, .lp-segmented button.active { background: var(--lp-lime); color: #17200d; box-shadow: 0 7px 22px rgba(197, 244, 61, 0.12); }
.lp-setup-grid { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(440px, 1.1fr); gap: 20px; }

.lp-route-preview {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--lp-line);
  border-radius: 7px;
  background:
    linear-gradient(rgba(77, 225, 186, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 225, 186, 0.04) 1px, transparent 1px),
    #09141a;
  background-size: 34px 34px;
}
.lp-route-preview::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1.55;
  right: -6%;
  bottom: 18px;
  clip-path: polygon(3% 34%, 20% 17%, 40% 24%, 51% 7%, 70% 17%, 82% 9%, 98% 28%, 90% 52%, 100% 67%, 80% 90%, 58% 80%, 45% 96%, 27% 82%, 8% 88%, 0 60%);
  background: linear-gradient(145deg, rgba(77, 225, 186, 0.23), rgba(40, 87, 81, 0.2));
  border: 1px solid rgba(77, 225, 186, 0.18);
}
.lp-preview-label { display: block; color: var(--lp-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.lp-route-preview strong { position: relative; z-index: 2; display: block; max-width: 280px; margin-top: 7px; font: 800 25px/1.22 var(--lp-display); }
.lp-preview-line { position: absolute; z-index: 2; left: 48px; right: 50px; bottom: 90px; display: flex; justify-content: space-between; align-items: center; }
.lp-preview-line::before { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--lp-amber), var(--lp-mint), var(--lp-lime)); }
.lp-preview-line i { position: relative; width: 15px; aspect-ratio: 1; border: 3px solid #0a141a; border-radius: 50%; background: var(--lp-lime); box-shadow: 0 0 0 2px rgba(197, 244, 61, 0.28); }
.lp-preview-places { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 28px; display: flex; justify-content: space-between; gap: 8px; }
.lp-preview-places span { padding: 5px 8px; border: 1px solid var(--lp-line); border-radius: 5px; background: rgba(5, 10, 14, 0.74); color: #a9bac2; font-size: 10px; font-weight: 700; }

.lp-settings { border: 1px solid var(--lp-line); border-radius: 7px; background: #0b141d; }
.lp-setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 94px; padding: 17px 20px; border-bottom: 1px solid var(--lp-line); }
.lp-setting strong, .lp-setting small { display: block; }
.lp-setting strong { font-size: 14px; }
.lp-setting small { margin-top: 3px; color: var(--lp-muted); font-size: 11px; }
.lp-start-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 92px; padding: 18px 20px; background: rgba(197, 244, 61, 0.035); }
.lp-start-row strong, .lp-start-row span { display: block; }
.lp-start-row strong { font-size: 14px; }
.lp-start-row div > span { margin-top: 3px; color: var(--lp-muted); font-size: 11px; }

.lp-primary, .lp-secondary, .lp-icon-button, .lp-join-row button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}
.lp-primary { padding: 10px 16px; background: var(--lp-lime); color: #142009; box-shadow: 0 10px 26px rgba(197, 244, 61, 0.13); }
.lp-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.lp-primary:disabled { cursor: not-allowed; opacity: 0.35; transform: none; }
.lp-secondary { padding: 9px 14px; border-color: var(--lp-line-strong); background: #0c151e; color: #bfccd2; }
.lp-icon-button { width: 40px; padding: 0; border-color: var(--lp-line-strong); background: #0b151e; }

.lp-online-actions { padding: 8px 20px 16px; }
.lp-online-option { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--lp-line); }
.lp-online-option strong, .lp-online-option small { display: block; }
.lp-online-option strong { font-size: 13px; }
.lp-online-option small, .lp-online-actions > p { color: var(--lp-muted); font-size: 10px; }
.lp-step { display: grid; place-items: center; width: 30px; aspect-ratio: 1; border: 1px solid rgba(197, 244, 61, 0.25); border-radius: 50%; color: var(--lp-lime); font-size: 10px; font-weight: 800; }
.lp-join-row { display: flex; }
.lp-join-row input { width: 92px; min-height: 40px; border: 1px solid var(--lp-line-strong); border-radius: 6px 0 0 6px; outline: 0; background: #070d13; color: var(--lp-text); text-align: center; text-transform: uppercase; font-weight: 900; letter-spacing: 0; }
.lp-join-row button { border-radius: 0 6px 6px 0; background: #17232d; color: var(--lp-text); }

.lp-room { padding: 24px; }
.lp-room-head, .lp-room-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.lp-code-line { display: flex; align-items: center; gap: 9px; }
.lp-code-line h2 { color: var(--lp-lime); font-size: 34px; letter-spacing: 0; }
.lp-room-head p { margin: 5px 0 0; color: var(--lp-muted); font-size: 12px; }
.lp-seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; }
.lp-seat { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 12px; border: 1px solid var(--lp-line); border-radius: 7px; background: #0d1720; }
.lp-seat.empty { opacity: 0.55; border-style: dashed; }
.lp-seat-avatar { display: grid; place-items: center; width: 36px; aspect-ratio: 1; flex: 0 0 auto; border-radius: 50%; background: var(--seat-color, var(--lp-lime)); color: #0c1419; font-weight: 900; }
.lp-seat strong, .lp-seat small { display: block; }
.lp-seat strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.lp-seat small { color: var(--lp-muted); font-size: 9px; }
.lp-room-footer { padding-top: 18px; border-top: 1px solid var(--lp-line); color: var(--lp-muted); font-size: 12px; }

.lp-game { padding-bottom: 6px; }
.lp-game-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 78px; padding: 14px 16px; border: 1px solid var(--lp-line); border-radius: 8px 8px 0 0; background: rgba(10, 17, 24, 0.94); }
.lp-game-topbar > div:first-child strong { display: block; margin-top: 3px; font: 800 17px/1.2 var(--lp-display); }
.lp-market { min-width: 190px; padding: 8px 15px; border: 1px solid rgba(197, 244, 61, 0.22); border-radius: 6px; background: rgba(197, 244, 61, 0.045); text-align: center; }
.lp-market small, .lp-market strong { display: block; }
.lp-market small { color: var(--lp-muted); font-size: 9px; text-transform: uppercase; font-weight: 800; }
.lp-market strong { margin-top: 2px; color: var(--market-color, var(--lp-lime)); font-size: 14px; }
.lp-game-top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
#lp-room-badge { padding: 7px 9px; border: 1px solid var(--lp-line); border-radius: 5px; color: var(--lp-muted); font-size: 10px; font-weight: 800; }

.lp-player-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--lp-line); border-top: 0; background: var(--lp-line); }
.lp-player-chip { position: relative; min-height: 76px; padding: 12px 14px 11px 43px; overflow: hidden; background: #0b141c; }
.lp-player-chip::before { content: ""; position: absolute; left: 14px; top: 17px; width: 20px; aspect-ratio: 1; border: 4px solid rgba(255,255,255,0.18); border-radius: 50%; background: var(--player-color); }
.lp-player-chip.active { background: color-mix(in srgb, var(--player-color) 9%, #0b141c); box-shadow: inset 0 2px 0 var(--player-color); }
.lp-player-chip.bankrupt { opacity: 0.45; }
.lp-player-chip strong, .lp-player-chip small { display: block; }
.lp-player-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.lp-player-chip small { margin-top: 3px; color: var(--lp-muted); font-size: 9px; }
.lp-player-money { display: block; margin-top: 5px; color: var(--player-color); font-size: 11px; font-weight: 800; }

.lp-game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; margin-top: 12px; }
.lp-map-shell { min-width: 0; padding: 10px; border: 1px solid var(--lp-line); border-radius: 7px; background: #081117; }
.lp-map { position: relative; width: 100%; aspect-ratio: 1.08; min-height: 620px; overflow: hidden; border: 1px solid rgba(123, 178, 174, 0.2); border-radius: 7px; background:
  linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
  radial-gradient(circle at 50% 46%, rgba(61, 125, 115, 0.22), transparent 42%),
  linear-gradient(145deg, #07131a, #0b1820 52%, #081118);
  background-size: 24px 24px, 24px 24px, auto, auto;
  box-shadow: inset 0 0 90px rgba(0,0,0,0.48);
}
#lp-map-tiles { position: absolute; z-index: 3; inset: 16px; display: grid; grid-template: repeat(7, minmax(0, 1fr)) / repeat(7, minmax(0, 1fr)); gap: 5px; }
.lp-tile { position: relative; grid-row: var(--row); grid-column: var(--column); z-index: 3; min-width: 0; min-height: 0; padding: 20px 7px 8px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--tile-color) 62%, #26333b); border-radius: 5px; background: linear-gradient(155deg, color-mix(in srgb, var(--tile-color) 13%, #152029), #0d171f 70%); color: var(--lp-text); cursor: pointer; box-shadow: 0 7px 0 #04090d, 0 11px 20px rgba(0,0,0,0.32); transform: translateY(-4px); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.lp-tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,0.07), transparent 32%); }
.lp-tile:hover, .lp-tile:focus-visible, .lp-tile.selected { z-index: 8; outline: none; transform: translateY(-7px); border-color: var(--tile-color); box-shadow: 0 9px 0 #03070a, 0 15px 24px rgba(0,0,0,0.46), 0 0 0 2px color-mix(in srgb, var(--tile-color) 28%, transparent); }
.lp-tile.hot { animation: lp-hot-tile 2.4s ease-in-out infinite; }
.lp-tile.owned { border-color: var(--owner-color); background: linear-gradient(150deg, color-mix(in srgb, var(--owner-color) 30%, #152029), color-mix(in srgb, var(--owner-color) 10%, #0c161e) 72%); }
.lp-owner-band { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 17px; display: flex; justify-content: flex-end; align-items: center; padding: 0 5px; background: color-mix(in srgb, var(--tile-color) 72%, #0d161d); box-shadow: 0 2px 5px rgba(0,0,0,.28); }
.lp-owner-band i { position: absolute; inset: 0; opacity: 0; background: var(--owner-color); }
.lp-owner-band b { position: relative; display: none; place-items: center; width: 14px; aspect-ratio: 1; border-radius: 2px; background: #071017; color: var(--owner-color); font-size: 8px; }
.lp-tile.owned .lp-owner-band i { opacity: 1; }
.lp-tile.owned .lp-owner-band b { display: grid; }
.lp-tile-region { position: absolute; top: 23px; left: 6px; right: 6px; overflow: hidden; color: color-mix(in srgb, var(--tile-color) 80%, white); font-size: 6px; font-weight: 800; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.lp-tile-symbol { position: absolute; right: 6px; top: 34px; color: color-mix(in srgb, var(--tile-color) 82%, white); font-size: 9px; font-weight: 900; opacity: .8; }
.lp-tile-label { position: relative; z-index: 1; display: -webkit-box; margin-top: 15px; overflow: hidden; color: #f2f6f7; font-size: clamp(7px, .77vw, 10px); font-weight: 900; line-height: 1.12; text-align: left; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.lp-tile-price { position: absolute; left: 7px; bottom: 7px; color: #9dafb7; font-size: 7px; font-weight: 800; }
.lp-tile-buildings { position: absolute; right: 6px; bottom: 6px; display: flex; align-items: flex-end; gap: 2px; height: 15px; }
.lp-tile-buildings i { position: relative; width: 8px; height: 9px; border: 1px solid rgba(255,255,255,.32); border-radius: 1px 1px 0 0; background: var(--owner-color, var(--tile-color)); box-shadow: 1px 2px 0 rgba(0,0,0,.35); }
.lp-tile-buildings i::before { content: ""; position: absolute; left: 2px; top: 2px; width: 2px; height: 2px; background: #fff5a9; box-shadow: 0 4px 0 #fff5a9, 3px 0 0 #fff5a9, 3px 4px 0 #fff5a9; opacity: .75; }
.lp-tile-buildings i.hotel { width: 12px; height: 14px; background: color-mix(in srgb, var(--owner-color) 70%, #fff); }
.lp-tile-event, .lp-tile-trend, .lp-tile-grant, .lp-tile-hub { display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: 17px; text-align: center; }
.lp-tile-event .lp-tile-label, .lp-tile-trend .lp-tile-label, .lp-tile-grant .lp-tile-label, .lp-tile-hub .lp-tile-label { margin: 0; text-align: center; }
.lp-tile-event .lp-tile-symbol, .lp-tile-trend .lp-tile-symbol, .lp-tile-grant .lp-tile-symbol, .lp-tile-hub .lp-tile-symbol { position: static; margin-bottom: 4px; font-size: 17px; }
.lp-tile-event .lp-tile-region, .lp-tile-trend .lp-tile-region, .lp-tile-grant .lp-tile-region, .lp-tile-hub .lp-tile-region { display: none; }
.lp-token { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); z-index: 12; display: grid; place-items: center; width: 25px; aspect-ratio: 1; transform: translate(calc(-50% + var(--offset-x)), calc(-50% + var(--offset-y))); border: 3px solid #061017; border-radius: 50%; background: var(--player-color); color: #081016; font-size: 9px; font-weight: 900; box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 12px color-mix(in srgb, var(--player-color) 42%, transparent); transition: left 380ms ease, top 380ms ease; pointer-events: none; }
.lp-map-center { position: absolute; z-index: 1; inset: calc(14.285% + 21px); display: grid; place-content: center; overflow: hidden; border: 1px solid rgba(97, 197, 174, .18); border-radius: 8px; background: radial-gradient(circle at 50% 40%, rgba(197,244,61,.09), transparent 37%), linear-gradient(145deg, rgba(17,44,44,.88), rgba(9,24,31,.92)); box-shadow: inset 0 0 70px rgba(0,0,0,.35), 0 14px 26px rgba(0,0,0,.25); text-align: center; }
.lp-map-center::before, .lp-map-center::after { content: ""; position: absolute; width: 210px; height: 210px; border: 1px solid rgba(77,225,186,.1); transform: rotate(45deg); }
.lp-map-center::before { left: -130px; top: -100px; }
.lp-map-center::after { right: -130px; bottom: -100px; }
.lp-map-center span { display: block; color: var(--lp-lime); font: 800 clamp(15px, 2vw, 25px)/1 var(--lp-display); }
.lp-map-center i { display: block; width: 180px; height: 2px; margin: 15px auto; background: linear-gradient(90deg, transparent, var(--lp-lime), var(--lp-mint), transparent); animation: lp-pulse-line 2.6s ease-in-out infinite; }
.lp-map-center b { color: rgba(225,237,238,.65); font-size: 11px; line-height: 1.55; }
.lp-map-center em { display: block; margin-top: 20px; color: rgba(255,255,255,.07); font: 800 clamp(24px, 5vw, 56px)/1 var(--lp-display); font-style: normal; }

.lp-sidebar { display: grid; align-content: start; gap: 10px; }
.lp-action-card, .lp-place-card, .lp-history-card { border: 1px solid var(--lp-line); border-radius: 7px; background: #0b141d; }
.lp-action-card { min-height: 274px; padding: 18px; }
.lp-action-card h2 { margin-top: 7px; font-size: 21px; line-height: 1.15; }
.lp-action-card p { min-height: 42px; margin: 8px 0 13px; color: var(--lp-muted); font-size: 11px; }
.lp-dice { display: flex; gap: 8px; margin-bottom: 14px; }
.lp-dice span { display: grid; place-items: center; width: 52px; aspect-ratio: 1; border: 1px solid var(--lp-line-strong); border-radius: 7px; background: #f3f3e9; color: #111a20; font: 800 22px/1 var(--lp-display); box-shadow: inset 0 -5px 0 rgba(0,0,0,0.08); }
.lp-dice.rolling span { animation: lp-dice 460ms ease; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.lp-actions button { flex: 1 1 118px; }
.lp-actions .lp-skip { border-color: var(--lp-line-strong); background: #101b24; color: #c5d0d5; box-shadow: none; }
.lp-actions .lp-buy { background: var(--lp-mint); }
.lp-actions .lp-route-choice { min-width: 76px; }
.lp-place-card { min-height: 185px; padding: 16px; }
.lp-place-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-place-head span { color: var(--place-color, var(--lp-muted)); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.lp-place-head b { display: grid; place-items: center; width: 28px; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--place-color) 48%, transparent); border-radius: 50%; color: var(--place-color); font-size: 9px; }
.lp-place-card h3 { margin: 5px 0; font: 800 18px/1.2 var(--lp-display); }
.lp-place-card p { margin: 0; color: var(--lp-muted); font-size: 10px; }
.lp-place-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 13px; }
.lp-place-numbers div { padding: 7px; border: 1px solid var(--lp-line); border-radius: 5px; }
.lp-place-numbers strong, .lp-place-numbers small { display: block; }
.lp-place-numbers strong { font-size: 11px; }
.lp-place-numbers small { color: var(--lp-muted); font-size: 8px; }
.lp-history-card { height: 202px; overflow: hidden; }
.lp-history-card > div { padding: 13px 15px; border-bottom: 1px solid var(--lp-line); }
.lp-history-card > div > strong { display: block; margin-top: 3px; font-size: 12px; }
.lp-history-card ol { height: 145px; margin: 0; padding: 8px 15px 12px 34px; overflow-y: auto; scrollbar-width: thin; }
.lp-history-card li { padding: 5px 0; color: #b1c0c6; font-size: 9px; }
.lp-history-card li::marker { color: #526570; }

.lp-result { margin-top: 12px; padding: 26px; border: 1px solid rgba(197,244,61,0.26); border-radius: 7px; background: rgba(197,244,61,0.035); text-align: center; }
.lp-result h2 { font-size: 30px; }
.lp-result > p { color: var(--lp-muted); font-size: 12px; }
.lp-standings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 850px; margin: 20px auto; }
.lp-standing { padding: 12px; border: 1px solid var(--lp-line); border-radius: 6px; background: #0a141b; text-align: left; }
.lp-standing.winner { border-color: rgba(197,244,61,0.4); }
.lp-standing strong, .lp-standing small { display: block; }
.lp-standing strong { font-size: 12px; }
.lp-standing small { margin-top: 5px; color: var(--lp-muted); font-size: 9px; }

.lp-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 26px 0 34px; border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); }
.lp-info-grid article { min-height: 158px; padding: 22px 20px; border-right: 1px solid var(--lp-line); }
.lp-info-grid article:last-child { border-right: 0; }
.lp-info-grid article > span { color: var(--lp-mint); font-size: 10px; font-weight: 800; }
.lp-info-grid strong { display: block; margin-top: 12px; font: 800 15px/1.2 var(--lp-display); }
.lp-info-grid p { margin: 8px 0 0; color: var(--lp-muted); font-size: 10px; }
.lp-footer { display: flex; flex-wrap: wrap; gap: 18px; padding: 0 0 28px; color: var(--lp-muted); font-size: 10px; }
.lp-footer span { margin-right: auto; }
.lp-toast { position: fixed; z-index: 1000; left: 50%; bottom: 22px; max-width: min(420px, calc(100% - 28px)); padding: 11px 15px; transform: translate(-50%, 20px); border: 1px solid rgba(77,225,186,0.3); border-radius: 6px; background: #0c191c; color: #d9f8ef; font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transition: 180ms ease; }
.lp-toast.show { transform: translate(-50%, 0); opacity: 1; }
.lp-toast.error { border-color: rgba(255,104,120,0.4); color: #ffd6da; }
.lp-modal { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2,7,10,.8); backdrop-filter: blur(10px); }
.lp-modal.hidden { display: none; }
.lp-modal-card { width: min(580px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; border: 1px solid rgba(197,244,61,.28); border-radius: 8px; background: linear-gradient(145deg, #111e27, #09131b); box-shadow: 0 28px 90px rgba(0,0,0,.65); }
.lp-modal-card h2 { margin: 7px 0 9px; font-size: 25px; }
.lp-modal-card > p { color: var(--lp-muted); font-size: 11px; line-height: 1.55; }
.lp-modal-icon { display: grid; place-items: center; width: 54px; aspect-ratio: 1; margin-bottom: 18px; border: 1px solid rgba(244,182,79,.5); border-radius: 7px; background: rgba(244,182,79,.09); color: var(--lp-amber); font: 800 25px/1 var(--lp-display); box-shadow: inset 0 -5px 0 rgba(0,0,0,.15); }
.lp-event-impact { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.lp-event-impact span { padding: 9px 11px; border: 1px solid var(--lp-line); border-radius: 5px; background: rgba(255,255,255,.025); font-size: 12px; font-weight: 800; }
.lp-event-impact .positive { border-color: rgba(77,225,186,.3); color: var(--lp-mint); }
.lp-event-impact .negative { border-color: rgba(255,113,132,.3); color: #ff8b9a; }
.lp-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lp-trade-dialog { width: min(760px, 100%); }
.lp-trade-target { display: grid; gap: 6px; margin: 16px 0; color: var(--lp-muted); font-size: 10px; font-weight: 800; }
.lp-trade-target select, .lp-trade-columns input[type="number"] { min-height: 40px; border: 1px solid var(--lp-line-strong); border-radius: 5px; outline: 0; background: #071017; color: var(--lp-text); padding: 8px 10px; }
.lp-trade-columns { display: grid; grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); gap: 10px; align-items: stretch; }
.lp-trade-columns > section { padding: 14px; border: 1px solid var(--lp-line); border-radius: 6px; background: rgba(255,255,255,.018); }
.lp-trade-columns > section > strong { display: block; margin-bottom: 10px; color: var(--lp-mint); font-size: 12px; }
.lp-trade-columns > section > label { display: grid; gap: 5px; margin-top: 12px; color: var(--lp-muted); font-size: 9px; font-weight: 800; }
.lp-trade-swap { display: grid; place-items: center; color: var(--lp-lime); font-size: 22px; }
.lp-trade-venues { display: grid; gap: 6px; min-height: 80px; max-height: 190px; overflow-y: auto; }
.lp-trade-venues > p { color: var(--lp-muted); font-size: 9px; }
.lp-trade-venues label { cursor: pointer; }
.lp-trade-venues input { position: absolute; opacity: 0; }
.lp-trade-venues label > span { display: block; padding: 8px 9px; border: 1px solid var(--lp-line); border-left: 4px solid var(--choice-color); border-radius: 4px; background: #0a141c; font-size: 10px; font-weight: 800; }
.lp-trade-venues label > span small { display: block; margin-top: 2px; color: var(--lp-muted); font-size: 8px; }
.lp-trade-venues input:checked + span { border-color: var(--lp-lime); background: rgba(197,244,61,.08); box-shadow: inset 0 0 0 1px rgba(197,244,61,.15); }
.lp-trade-note { margin: 14px 0 !important; }
.lp-trade-response-card { width: min(620px, 100%); }
#lp-trade-response-copy { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 10px; align-items: center; margin: 18px 0; }
#lp-trade-response-copy > div { min-height: 92px; padding: 13px; border: 1px solid var(--lp-line); border-radius: 6px; background: rgba(255,255,255,.02); }
#lp-trade-response-copy > span { color: var(--lp-lime); font-size: 22px; text-align: center; }
#lp-trade-response-copy small, #lp-trade-response-copy strong { display: block; }
#lp-trade-response-copy small { color: var(--lp-muted); font-size: 9px; }
#lp-trade-response-copy strong { margin-top: 7px; font-size: 12px; line-height: 1.4; }
.lp-trade-response-actions { display: flex; gap: 8px; }
.lp-upgrade-choice { border-left: 3px solid var(--lp-mint); }

@keyframes lp-dice { 0%,100% { transform: rotate(0) scale(1); } 35% { transform: rotate(9deg) scale(0.92); } 70% { transform: rotate(-7deg) scale(1.06); } }
@keyframes lp-hot-pulse { 0%,100% { box-shadow: 0 8px 20px rgba(0,0,0,.32), 0 0 0 4px rgba(5,10,14,.74); } 50% { box-shadow: 0 8px 20px rgba(0,0,0,.32), 0 0 0 6px color-mix(in srgb, var(--tile-color) 22%, transparent); } }
@keyframes lp-hot-tile { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
@keyframes lp-pulse-line { 0%,100% { opacity: .45; transform: scaleX(.7); } 50% { opacity: 1; transform: scaleX(1); } }

@media (max-width: 1020px) {
  .lp-hero { grid-template-columns: 124px 1fr; }
  .lp-hero-mark { width: 124px; }
  .lp-profile-pill { display: none; }
  .lp-setup-grid { grid-template-columns: 1fr; }
  .lp-route-preview { min-height: 260px; }
  .lp-game-layout { grid-template-columns: 1fr; }
  .lp-sidebar { grid-template-columns: 1fr 1fr; }
  .lp-history-card { grid-column: 1 / -1; }
  .lp-map { min-height: 0; }
  .lp-info-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-info-grid article:nth-child(2) { border-right: 0; }
  .lp-info-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--lp-line); }
}

@media (max-width: 720px) {
  .lp-page { width: min(100% - 20px, 620px); }
  .lp-hero { grid-template-columns: 80px 1fr; gap: 15px; min-height: 176px; padding: 20px 0; }
  .lp-hero-mark { width: 80px; }
  .lp-hero-mark::before { inset: 12px 9px; }
  .lp-hero-mark span { font-size: 17px; }
  .lp-hero-mark i { width: 5px; }
  .lp-hero-copy h1 { font-size: 32px; }
  .lp-hero-copy p { margin: 10px 0 12px; font-size: 12px; }
  .lp-meta span { padding: 4px 7px; font-size: 9px; }
  main { padding-top: 14px; }
  .lp-setup, .lp-room { padding: 14px; }
  .lp-section-head { display: block; }
  .lp-mode-tabs { width: 100%; margin-top: 14px; }
  .lp-mode-tabs button { flex: 1; }
  .lp-route-preview { display: none; }
  .lp-setting { grid-template-columns: 1fr; gap: 10px; min-height: 0; padding: 14px; }
  .lp-segmented { width: 100%; }
  .lp-segmented button { flex: 1; padding-inline: 8px; }
  .lp-start-row { align-items: stretch; flex-direction: column; padding: 14px; }
  .lp-online-actions { padding-inline: 14px; }
  .lp-online-option { grid-template-columns: 30px 1fr; }
  .lp-online-option > button, .lp-online-option > .lp-join-row { grid-column: 2; }
  .lp-seats { grid-template-columns: repeat(2, 1fr); }
  .lp-room-head { align-items: flex-start; }
  .lp-game-topbar { grid-template-columns: 1fr auto; }
  .lp-market { grid-row: 2; grid-column: 1 / -1; min-width: 0; }
  .lp-game-top-actions { align-self: start; }
  #lp-room-badge { display: none !important; }
  .lp-player-strip { grid-template-columns: repeat(2, 1fr); }
  .lp-player-chip { min-height: 66px; padding-top: 9px; padding-bottom: 8px; }
  .lp-player-chip::before { top: 13px; }
  .lp-map-shell { padding: 4px; overflow-x: auto; }
  .lp-map { width: 780px; min-width: 780px; min-height: 720px; }
  .lp-sidebar { grid-template-columns: 1fr; }
  .lp-action-card { position: sticky; bottom: 8px; z-index: 20; min-height: 0; box-shadow: 0 -12px 28px rgba(2,6,8,.7); }
  .lp-action-card p { min-height: 0; }
  .lp-dice span { width: 44px; }
  .lp-history-card { grid-column: auto; }
  .lp-standings { grid-template-columns: repeat(2, 1fr); }
  .lp-info-grid { grid-template-columns: 1fr; }
  .lp-info-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--lp-line); }
  .lp-info-grid article:last-child { border-bottom: 0; }
  .lp-trade-columns { grid-template-columns: 1fr; }
  .lp-trade-swap { transform: rotate(90deg); }
}

@media (max-width: 440px) {
  .lp-hero-copy p { display: none; }
  .lp-meta span:nth-child(3) { display: none; }
  .lp-seat { padding: 9px; }
  .lp-seat strong { max-width: 88px; }
  .lp-game-topbar { padding: 11px; }
  .lp-game-top-actions .lp-secondary { font-size: 0; width: 40px; padding: 0; }
  .lp-game-top-actions .lp-secondary::before { content: "×"; font-size: 18px; }
}

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