.plg-page {
  background: radial-gradient(circle at top left, #dbeafe, transparent 30%), #f6f8fc;
  min-height: calc(100vh - 110px);
  padding: 24px 0 42px;
}

.plg-hero,
.plg-game-card,
.plg-level-card,
.plg-play-shell,
.plg-result-card {
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.plg-hero {
  align-items: center;
  background: linear-gradient(135deg, #111827, #2563eb 65%, #22d3ee);
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 34px;
}

.plg-hero--runner {
  background: linear-gradient(135deg, #020617, #4338ca 55%, #f97316);
}

.plg-kicker {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
}

.plg-hero h1,
.plg-result-card h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 950;
  margin: 0 0 10px;
}

.plg-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  margin: 0;
  max-width: 720px;
}

.plg-runner-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  font-size: 44px;
  height: 104px;
  justify-content: center;
  width: 104px;
}

.plg-game-grid,
.plg-level-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plg-game-card,
.plg-level-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 24px;
}

.plg-level-card.is-locked {
  opacity: 0.6;
}

.plg-level-card.is-completed {
  border-color: #86efac;
}

.plg-card-top,
.plg-score-board,
.plg-game-actions,
.plg-card-actions,
.plg-result-stats {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plg-card-top,
.plg-score-board {
  justify-content: space-between;
}

.plg-badge,
.plg-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
}

.plg-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.plg-status {
  background: #f1f5f9;
  color: #64748b;
}

.plg-status--done {
  background: #dcfce7;
  color: #15803d;
}

.plg-game-card h2,
.plg-level-card h2 {
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  margin: 18px 0 8px;
}

.plg-game-card p,
.plg-level-card p,
.plg-mini-meta {
  color: #475569;
  line-height: 1.65;
}

.plg-mini-meta {
  margin: 10px 0 20px;
  padding-left: 18px;
}

.plg-btn {
  background: #2563eb;
  border: 0;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  margin-top: auto;
  padding: 12px 16px;
  text-decoration: none;
}

.plg-btn:hover {
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
}

.plg-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.plg-btn--ghost,
.plg-btn--light {
  background: #e0f2fe;
  color: #075985;
}

.plg-btn--light {
  background: #fff;
  color: #1d4ed8;
}

.plg-play {
  padding-top: 12px;
}

.playlab-game-play-page .c-footer,
.playlab-game-play-page .c-subheader {
  display: none;
}

.plg-play-shell {
  background: #fff;
  border: 1px solid #dbeafe;
  margin: 0 auto;
  max-width: 980px;
  overflow: hidden;
}

.plg-play-head {
  background: #0f172a;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px;
}

.plg-play-head h1 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 950;
  margin: 0;
}

.plg-score-board span {
  background: rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 10px 12px;
}

.plg-score-board {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.plg-progress-line {
  background: #e2e8f0;
  height: 10px;
}

.plg-progress-line span {
  background: linear-gradient(90deg, #22c55e, #facc15);
  display: block;
  height: 100%;
  transition: width 0.25s ease;
}

.plg-question-card {
  padding: 28px;
}

.plg-question-meta {
  color: #2563eb;
  font-weight: 900;
  margin-bottom: 10px;
}

.plg-question-card h2 {
  color: #0f172a;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 950;
  margin-bottom: 18px;
}

.plg-code {
  background: #020617;
  border-radius: 16px;
  color: #e2e8f0;
  overflow-x: auto;
  padding: 16px;
}

.plg-answer-area {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.plg-answer-btn,
.plg-order-item,
.plg-fill-input {
  background: #f8fafc;
  border: 2px solid #dbeafe;
  border-radius: 16px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 16px;
  text-align: left;
}

.plg-answer-btn {
  cursor: pointer;
}

.plg-answer-btn:hover,
.plg-answer-btn.is-selected {
  background: #dbeafe;
  border-color: #2563eb;
}

.plg-answer-btn.is-correct {
  background: #dcfce7;
  border-color: #22c55e;
}

.plg-answer-btn.is-wrong {
  background: #fee2e2;
  border-color: #ef4444;
}

.plg-fill-input {
  width: 100%;
}

.plg-answer-btn,
.plg-order-item,
.plg-fill-input {
  min-height: 50px;
}

.plg-order-list {
  display: grid;
  gap: 10px;
}

.plg-order-item {
  cursor: pointer;
}

.plg-order-item.is-picked {
  background: #dbeafe;
  border-color: #2563eb;
}

.plg-feedback {
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 900;
  min-height: 24px;
  margin-top: 16px;
}

.plg-result-card {
  background: #fff;
  border: 1px solid #dbeafe;
  margin: 0 auto;
  max-width: 760px;
  padding: 34px;
  text-align: center;
}

.plg-result-score {
  color: #2563eb;
  font-size: clamp(54px, 10vw, 96px);
  font-weight: 950;
  line-height: 1;
  margin: 18px 0;
}

.plg-result-stats {
  justify-content: center;
}

.plg-result-stats span,
.plg-login-note {
  background: #f1f5f9;
  border-radius: 999px;
  color: #475569;
  font-weight: 800;
  padding: 10px 14px;
}

.plg-login-note {
  border-radius: 16px;
  margin: 18px auto;
  max-width: 420px;
}

.plg-result-card .plg-card-actions {
  justify-content: center;
  margin-top: 24px;
}

.plg-note-panel {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  margin: 20px auto 0;
  max-width: 900px;
  padding: 24px;
}

.plg-note-panel__head,
.plg-note-item {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.plg-note-panel__head h2 {
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
  margin: 0;
}

.plg-note-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.plg-note-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 6px solid #2563eb;
  border-radius: 18px;
  padding: 16px;
}

.plg-note-item.is-wrong {
  border-left-color: #ef4444;
}

.plg-note-item.is-correct {
  border-left-color: #22c55e;
}

.plg-note-item p {
  color: #0f172a;
  font-weight: 800;
  margin: 4px 0;
}

.plg-note-item small,
.plg-note-message {
  color: #64748b;
}

.plg-note-message {
  font-weight: 900;
  margin: 14px 0 0;
}

@media (max-width: 1100px) {
  .plg-game-grid,
  .plg-level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .plg-page {
    padding-top: 10px;
  }

  .plg-hero,
  .plg-play-head,
  .plg-card-top,
  .plg-note-panel__head,
  .plg-note-item {
    align-items: stretch;
    flex-direction: column;
  }

  .plg-hero,
  .plg-game-card,
  .plg-level-card,
  .plg-question-card,
  .plg-result-card,
  .plg-note-panel {
    border-radius: 18px;
    padding: 20px;
  }

  .plg-game-grid,
  .plg-level-grid {
    grid-template-columns: 1fr;
  }

  .plg-score-board {
    justify-content: flex-start;
  }

  .plg-score-board span,
  .plg-game-actions .plg-btn,
  .plg-answer-btn,
  .plg-order-item,
  .plg-note-item .plg-btn,
  .plg-note-actions-inline .plg-btn {
    width: 100%;
  }

  .plg-question-card h2 {
    font-size: 24px;
    line-height: 1.28;
  }

  .plg-code {
    font-size: 13px;
    max-height: 220px;
  }

  .plg-runner-icon {
    display: none;
  }
}
