/* Copyright (c) 2026 WBPC-GLOBAL. All Rights Reserved. Proprietary.
   회원 프로그램 설정 — 폰앱식 타일 배치 */
:root {
  --mps-ink: #0c1222;
  --mps-paper: #eef1f6;
  --mps-tile: #ffffff;
  --mps-lock: #8a909c;
  --mps-accent: #1a5c57;
  --mps-warn: #b85c38;
}

.mps-shell { background: var(--mps-paper); min-height: 100vh; }

.mps-hero {
  padding: 28px 0 12px;
  background: linear-gradient(165deg, #0c1222 0%, #1a5c57 120%);
  color: #f7f3ea;
}
.mps-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}
.mps-lead {
  margin: 0 0 14px;
  max-width: 36rem;
  opacity: 0.88;
  line-height: 1.5;
  font-size: 0.98rem;
}
.mps-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.mps-toolbar .btn {
  border-radius: 999px;
  font-size: 13px;
  padding: 8px 14px;
}
.mps-done { background: var(--mps-accent) !important; color: #fff !important; border-color: var(--mps-accent) !important; }
.mps-hint { font-size: 11px; opacity: 0.7; margin-left: 4px; }

.mps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 0 8px;
}
@media (max-width: 720px) {
  .mps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 420px) {
  .mps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mps-tile {
  position: relative;
  aspect-ratio: 1;
  border: none;
  border-radius: 18px;
  background: var(--mps-tile);
  box-shadow: 0 1px 0 rgba(12, 18, 34, 0.06), 0 8px 20px rgba(12, 18, 34, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  color: var(--mps-ink);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.mps-tile:active { transform: scale(0.96); }
.mps-tile.is-locked {
  opacity: 0.55;
  filter: grayscale(0.35);
}
.mps-tile.is-dragging {
  opacity: 0.45;
  transform: scale(1.04);
  z-index: 2;
}
.mps-shell.is-editing .mps-tile {
  animation: mps-jiggle 0.35s ease-in-out infinite alternate;
}
.mps-shell.is-editing .mps-tile.is-dragging { animation: none; }

@keyframes mps-jiggle {
  from { transform: rotate(-1.2deg); }
  to { transform: rotate(1.2deg); }
}

.mps-ico {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--mps-accent);
}
.mps-tile[data-part="B"] .mps-ico { background: var(--mps-warn); }
.mps-name {
  font-size: 11px;
  font-weight: 650;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mps-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.08);
}
.mps-tile.is-active {
  outline: 2px solid var(--mps-accent);
  outline-offset: 2px;
}
.mps-badge.on { background: rgba(26, 92, 87, 0.18); color: var(--mps-accent); font-weight: 700; }
.mps-badge.free { background: rgba(26, 92, 87, 0.15); color: var(--mps-accent); }
.mps-badge.lock { background: rgba(184, 92, 56, 0.15); color: var(--mps-warn); }

.mps-note {
  font-size: 12px;
  opacity: 0.65;
  line-height: 1.45;
  padding-bottom: 28px;
}
