/* ==========================================================================
 * Game 01d: Lay the Grass (铺草坪 / 잔디 깔기)
 * Lush illuminated emerald-turf-on-obsidian 114-cell architectural park
 * ========================================================================== */

.ltg-layout {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.ltg-park-card {
  border-radius: 22px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background:
    radial-gradient(ellipse 70% 45% at 50% 10%, rgba(16, 185, 129, 0.14), transparent 64%),
    linear-gradient(180deg, rgba(13, 18, 26, 0.96), rgba(8, 11, 16, 0.99));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(110, 231, 183, 0.16);
  overflow: hidden;
}

.ltg-park-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--dp-border-subtle);
  background: rgba(8, 12, 18, 0.8);
  flex-wrap: wrap;
}

.ltg-capacity-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(10, 14, 21, 0.85);
  border-bottom: 1px solid var(--dp-border-subtle);
  font-size: 12px;
}

.ltg-cap-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ltg-cap-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #34d399, #f59e0b);
  transition: width 0.3s var(--dp-ease);
}

.ltg-cap-fill.is-over {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.7);
}

/* 12x10 Park Grid (114 playable cells + 6 bronze sculptures) */
.ltg-board-wrap {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ltg-board {
  width: min(100%, 660px);
  aspect-ratio: 12 / 10;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 3px;
  padding: 10px;
  border-radius: 16px;
  border: 2px solid rgba(212, 175, 106, 0.34);
  background:
    linear-gradient(145deg, #0d131a, #090d12);
  box-shadow:
    inset 0 0 40px rgba(16, 185, 129, 0.08),
    0 16px 36px rgba(0, 0, 0, 0.65);
  user-select: none;
  touch-action: manipulation;
}

.ltg-cell {
  position: relative;
  border-radius: 5px;
  background: linear-gradient(155deg, rgba(22, 34, 34, 0.85), rgba(14, 21, 24, 0.92));
  border: 1px solid rgba(52, 211, 153, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dp-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  transition: transform 0.12s, background 0.14s, border-color 0.14s, box-shadow 0.14s;
}

.ltg-cell.is-obstacle {
  background:
    radial-gradient(circle at 35% 30%, #4b3d25, #1b1712 75%);
  border: 1px solid rgba(212, 175, 106, 0.55);
  box-shadow: inset 0 0 10px rgba(212, 175, 106, 0.25);
  color: var(--dp-brass-bright);
  cursor: not-allowed;
}

.ltg-cell.is-placed {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.22), inset 0 -2px 6px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.ltg-cell.is-ghost-ok {
  background: rgba(52, 211, 153, 0.52) !important;
  border: 2px solid #a7f3d0 !important;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.75) !important;
  transform: scale(1.04);
  z-index: 3;
}

.ltg-cell.is-ghost-bad {
  background: rgba(239, 68, 68, 0.52) !important;
  border: 2px solid #fca5a5 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.65) !important;
  z-index: 3;
}

/* Placement Controls Bar */
.ltg-place-toolbar {
  width: min(100%, 660px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.38);
  background: rgba(12, 20, 24, 0.9);
}

/* Draft Catalog (7 Polyominoes) */
.ltg-catalog {
  width: min(100%, 660px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
}

.ltg-tile-btn {
  border-radius: 14px;
  border: 1px solid var(--dp-border);
  background: linear-gradient(160deg, rgba(20, 28, 34, 0.92), rgba(10, 14, 20, 0.96));
  padding: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.16s var(--dp-ease), border-color 0.16s, box-shadow 0.16s;
}

.ltg-tile-btn:hover:not(:disabled) {
  border-color: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.22);
}

.ltg-tile-btn.is-picked-by-me {
  border-color: var(--dp-brass-bright);
  background: rgba(212, 175, 106, 0.14);
}

.ltg-mini-poly {
  display: grid;
  gap: 2px;
  min-height: 56px;
  align-content: center;
  justify-content: center;
}

.ltg-mini-sq {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: linear-gradient(145deg, #34d399, #059669);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.45);
}

.ltg-mini-sq.is-empty {
  background: transparent;
  box-shadow: none;
}

/* Right Queue & Standings Panel */
.ltg-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ltg-panel {
  border-radius: var(--dp-radius-lg);
  border: 1px solid var(--dp-border-strong);
  background: rgba(14, 17, 26, 0.9);
  padding: 15px 16px;
  box-shadow: var(--dp-shadow-card);
}

.ltg-order-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.ltg-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--dp-border-subtle);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12.5px;
}

.ltg-order-row.is-active {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.22);
}

.ltg-order-row.is-blocked {
  border-color: rgba(220, 53, 69, 0.5);
  background: rgba(220, 53, 69, 0.08);
  opacity: 0.78;
}

.ltg-swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}

@media (max-width: 960px) {
  .ltg-layout {
    grid-template-columns: 1fr;
  }
}
