:root {
  --games-ink: #102235;
  --games-muted: #586b82;
  --games-line: #d9e3ef;
  --games-soft: #f5f8fb;
  --games-panel: #ffffff;
  --games-blue: #0b78bf;
  --games-green: #16885d;
  --games-coral: #c8543b;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background: #edf2f6;
  display: flex;
  flex-direction: column;
}

.lp-games-header {
  position: relative;
  z-index: 10;
  flex: 0 0 auto;
}

.lp-games-page {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 18px;
  color: var(--games-ink);
  display: flex;
}

.lp-games-layout {
  width: min(1580px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.lp-games-sidebar,
.lp-game-stage {
  border: 1px solid var(--games-line);
  border-radius: 8px;
  background: var(--games-panel);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(16, 34, 53, 0.08);
}

.lp-games-sidebar {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lp-games-sidebar__head {
  min-height: 76px;
  padding: 17px 18px;
  display: grid;
  align-content: center;
  border-bottom: 1px solid var(--games-line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.lp-games-sidebar__head span,
.lp-game-kicker {
  color: var(--games-green);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lp-games-sidebar__head strong {
  margin-top: 5px;
  color: var(--games-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.lp-games-list {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow: hidden;
}

.lp-games-empty {
  padding: 18px;
  color: var(--games-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.lp-game-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--games-line);
  background: #fff;
  color: var(--games-ink);
}

.lp-game-select {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}

.lp-game-select:hover,
.lp-game-select:focus-visible,
.lp-game-item.is-active {
  outline: none;
  background: #f4f9fd;
  box-shadow: inset 4px 0 0 var(--games-blue);
}

.lp-game-item strong,
.lp-game-item span {
  display: block;
  min-width: 0;
}

.lp-game-item strong {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.lp-game-item span {
  margin-top: 4px;
  color: var(--games-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.lp-game-item.is-compact .lp-game-select {
  grid-template-columns: minmax(0, 1fr);
  min-height: 76px;
}

.lp-game-item.is-compact strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.lp-game-pill,
.lp-game-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #0d5b42;
  background: #e8f6ef;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.lp-game-stage {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.lp-game-stage__body {
  min-height: 0;
  background: var(--games-soft);
}

.lp-game-placeholder {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.lp-game-placeholder__inner {
  width: min(560px, 100%);
}

.lp-game-placeholder__tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 11px;
  color: #8a341f;
  background: #fff1ec;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lp-game-placeholder h2 {
  margin: 14px 0 0;
  color: var(--games-ink);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.lp-game-placeholder p {
  margin: 10px auto 0;
  max-width: 460px;
  color: var(--games-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.lp-game-launch {
  min-height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
}

.lp-game-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lp-game-item__actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  flex-wrap: wrap;
}

.lp-game-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--games-line);
  border-radius: 8px;
  padding: 0 13px;
  background: #fff;
  color: var(--games-ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.lp-game-btn:hover,
.lp-game-btn:focus-visible {
  outline: none;
  border-color: rgba(11, 120, 191, 0.34);
  color: var(--games-blue);
}

.lp-game-btn--primary {
  border-color: var(--games-blue);
  background: var(--games-blue);
  color: #fff;
}

.lp-game-btn--primary:hover,
.lp-game-btn--primary:focus-visible {
  color: #fff;
  background: #0867a5;
}

.lp-game-frame-wrap {
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #dfeef5;
}

.lp-game-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  border: 0;
  background: #fff;
}

@media (max-width: 980px) {
  .lp-games-page {
    padding: 16px;
  }

  .lp-games-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
  }

  .lp-games-sidebar,
  .lp-game-stage {
    min-height: 0;
  }

  .lp-games-sidebar {
    max-height: 190px;
  }
}

@media (max-width: 620px) {
  .lp-games-page {
    padding: 12px;
  }

  .lp-game-launch {
    grid-template-rows: minmax(0, 1fr);
  }

  .lp-game-frame-wrap,
  .lp-game-frame {
    min-height: 0;
  }
}
