/* 메인 런처 — 태블릿 터치용: 큰 타일, 한 화면, 호버에 의존하지 않음 */

:root {
  --l-bg: #eef1ec;
  --l-ink: #1c211d;
  --l-muted: #5d6860;
  --l-card: #ffffff;
  --l-line: #dfe4dc;
  --l-press: #e6ebe3;
  --l-seat: #f6f8f4;
  --l-busy: #fdf3e2;
  --l-busy-ink: #9a5b00;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.launcher {
  margin: 0;
  background: var(--l-bg);
  color: var(--l-ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

.l-wrap {
  min-height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 상단: 매장 로고(없으면 이름) + 시계 */
.l-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.l-brand { display: flex; align-items: center; min-width: 0; }
.l-brand-text {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.l-brand-logo { height: 56px; max-width: 240px; object-fit: contain; }
.l-top-right { display: flex; align-items: center; gap: 12px; }
.l-install {
  appearance: none;
  border: 1px solid var(--l-line);
  background: var(--l-card);
  color: inherit;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 14px;
  min-height: 48px;
  padding: 0 16px;
  cursor: pointer;
  touch-action: manipulation;
}
.l-install:active { background: var(--l-press); }
.l-install[hidden] { display: none; }
.l-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  color: var(--l-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.l-date { font-size: clamp(0.85rem, 1.8vw, 1.05rem); font-weight: 700; }
.l-time { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 800; color: var(--l-ink); }

/* 본문: 이미지 배너와 소개 */
.l-main {
  flex: 1;
  display: block;
  min-height: 0;
}

/* 왼쪽 영역: 이미지 카드와 공지 글 카드를 따로, 사이에 작은 간격 */
.l-notice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  /* 화면 높이에 맞춰 늘어나지 않고 내용 높이만큼만 */
  align-self: start;
}
.l-card {
  background: var(--l-card);
  border: 1px solid var(--l-line);
  border-radius: 20px;
  overflow: hidden;
}
/* 메인 배너: 가로:세로 4:1 (권장 이미지 1600×400px). 다른 비율은 칸에 맞게 잘림 */
.l-banner-img {
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  object-position: center 46%;
  display: block;
  background: #eef2ea;
}
.l-notice-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
  background: var(--l-card);
}
.l-notice-text { padding: 14px 20px 16px; }
/* 공지 카드 모서리의 원형 아이콘 */
.l-notice-text.has-badge { position: relative; padding-left: 66px; }
.l-notice-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  background: #5a04b6;
  box-shadow: 0 2px 6px rgba(90, 4, 182, 0.35);
}
.l-notice-title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.l-notice-body {
  margin: 0;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  line-height: 1.65;
  color: #3a443d;
  white-space: pre-line;
  -webkit-user-select: text;
  user-select: text;
}
/* 로그인 전 보드카페 솔루션 광고 */
.l-solution {
  background:
    radial-gradient(420px 180px at 90% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(135deg, #3b0278 0%, #5a04b6 58%, #7a2ad4 100%);
  color: #fff;
  padding: 28px 28px 24px;
}
.l-solution-kicker {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #e6d4ff;
}
.l-solution-title {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.l-solution-lead {
  margin: 8px 0 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #f3e8ff;
}
.l-solution-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
}
@media (min-width: 640px) {
  .l-solution-points { grid-template-columns: repeat(3, 1fr); }
}
.l-solution-link {
  appearance: none;
  display: block;
  width: 100%;
  background: #fff;
  color: #3b0278;
  border: none;
  border-radius: 16px;
  padding: 16px 14px 14px;
  min-height: 118px;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.l-solution-link:hover { background: #f7f2fc; }
.l-solution-link:active { transform: scale(0.98); }
.l-solution-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.l-solution-points span { display: block; font-size: 1.5rem; line-height: 1; }
.l-solution-points b { display: block; margin-top: 10px; font-size: 1.05rem; }
.l-solution-points small { display: block; margin-top: 4px; font-size: 0.86rem; font-weight: 650; color: #5c4a78; line-height: 1.4; }

.l-welcome-img { background: #eef2ea; }
.l-welcome-text { text-align: left; }
.l-welcome-name { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; }
.l-welcome-sub { margin-top: 4px; font-size: clamp(0.95rem, 1.8vw, 1.1rem); color: var(--l-muted); }

/* 오른쪽 버튼 목록 */
.l-menu { display: flex; flex-direction: column; gap: 12px; }

.l-btn {
  appearance: none;
  border: 1px solid var(--l-line);
  background: var(--l-card);
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  border-radius: 18px;
  padding: 16px 18px;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(28, 33, 29, 0.05);
  transition: transform 0.08s ease, background-color 0.08s ease;
  touch-action: manipulation;
}
.l-btn:active { transform: scale(0.98); background: var(--l-press); }
.l-btn:focus-visible { outline: 3px solid #4b7a5a; outline-offset: 3px; }
.l-btn-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--l-seat);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}
.l-btn-text { min-width: 0; flex: 1; }
.l-btn-name { display: block; font-size: 1.25rem; font-weight: 800; }
.l-btn-desc { display: block; font-size: 0.92rem; color: var(--l-muted); margin-top: 2px; }
.l-btn-go { color: var(--l-muted); font-size: 1.3rem; }

/* 좌석 선택 화면 */
.l-seats { display: none; flex: 1; flex-direction: column; gap: 14px; }
body.l-picking .l-main { display: none; }
body.l-picking .l-seats { display: flex; }

.l-seats-head { display: flex; align-items: center; gap: 12px; }
.l-back {
  appearance: none;
  border: 1px solid var(--l-line);
  background: var(--l-card);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: inherit;
  border-radius: 16px;
  min-height: 56px;
  padding: 0 20px;
  cursor: pointer;
  touch-action: manipulation;
}
.l-back:active { background: var(--l-press); }
.l-seats-title { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; margin: 0; }

.l-seat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.l-seat {
  border: 1px solid var(--l-line);
  background: var(--l-seat);
  color: inherit;
  text-decoration: none;
  border-radius: 18px;
  min-height: 96px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  touch-action: manipulation;
}
.l-seat:active { transform: scale(0.98); background: var(--l-press); }
.l-seat-name { font-size: 1.25rem; font-weight: 800; }
.l-seat-state { font-size: 0.95rem; color: var(--l-muted); }
.l-seat-card { display: flex; flex-direction: column; gap: 6px; }
.l-seat-card .l-seat { flex: 1; }
/* PC 바로가기 버튼: 마우스를 쓰는 PC 에서만 표시 (터치 태블릿에서는 숨김) */
.l-seat-shortcut {
  display: none;
  appearance: none;
  border: 1px dashed var(--l-line);
  background: transparent;
  color: var(--l-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 6px 8px;
  cursor: pointer;
}
.l-seat-shortcut:hover { background: var(--l-card); color: var(--l-ink); }
@media (hover: hover) and (pointer: fine) {
  .l-seat-shortcut { display: block; }
}
.l-seat.busy { background: var(--l-busy); }
.l-seat.busy .l-seat-state { color: var(--l-busy-ink); font-weight: 700; }

.l-msg { padding: 32px 8px; text-align: center; color: var(--l-muted); font-size: 1.1rem; }

/* 로그인 안내 */
.l-prompt {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 33, 29, 0.45);
}
.l-prompt[hidden] { display: none; }
.l-prompt-card {
  width: min(440px, 100%);
  background: var(--l-card);
  border-radius: 20px;
  padding: 28px 24px 22px;
  box-shadow: 0 16px 40px rgba(28, 33, 29, 0.2);
}
.l-prompt-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.l-prompt-body {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--l-muted);
}
.l-prompt-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.l-prompt-login,
.l-prompt-close {
  appearance: none;
  border: 1px solid var(--l-line);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 14px;
  min-height: 52px;
  padding: 0 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.l-prompt-login {
  flex: 1;
  background: #5a04b6;
  border-color: #5a04b6;
  color: #fff;
}
.l-prompt-login:active { filter: brightness(0.92); }
.l-prompt-close { background: var(--l-card); color: inherit; }
.l-prompt-close:active { background: var(--l-press); }
