/* ==========================================================================
   SHIBUI SPACE (渋い空間) — AUTHENTIC ASSET HARMONY
   Matched strictly to brand asset #EBE5D9 & Roasted Wood Brown
   ========================================================================== */

:root {
  /* Exact Color Derived from Asset shibui4.jpeg */
  --ground: #EBE5D9;            /* Exact canvas of Shibui Space emblem */
  --surface-plate: #F5F1E8;     /* Clean tone step */
  --surface-raised: #FFFFFF;    /* Crisp card surface */
  --surface-inset: #E3DCCF;     /* Subtle recessed field */

  /* Deep Ink & Typography (Contrast > 8.5:1 on #EBE5D9) */
  --ink-primary: #332111;       /* Deep roasted tea / sumi brown from logo letters */
  --ink-secondary: #543E2C;     /* Warm secondary reading text */
  --ink-subtle: #634C3A;        /* Muted labels & captions (Contrast > 5.5:1) */

  /* Restrained Accents */
  --accent-cyan: #0284C7;       /* Joy-Con Cyan */
  --accent-pink: #BE123C;       /* Joy-Con Coral/Red */
  --accent-gold: #9A3412;       /* Google Review Gold/Amber */
  --accent-green: #065F46;      /* Active state */

  /* Hairline Borders */
  --border-quiet: 1px solid rgba(51, 33, 17, 0.12);
  --border-focus: 1px solid rgba(51, 33, 17, 0.26);

  /* Typography */
  --font-display: 'Shippori Mincho', serif;
  --font-text: 'Sora', sans-serif;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--ground);
  color: var(--ink-primary);
  font-family: var(--font-text);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  line-height: 1.55;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

/* Page Frame */
.lounge-container {
  width: 100%;
  max-width: 440px;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
   Masthead
   ========================================================================== */
.lounge-masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 4px;
}


/* Horizontal Logo Masthead */
.logo-horizontal-wrap {
  width: 100%;
  max-width: 250px;
  margin: 4px auto 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-horizontal {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lounge-tagline {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   Portal Flows
   ========================================================================== */
.portal-flows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   1. Promo Slider Card
   ========================================================================== */
.promo-slider-card {
  background: var(--surface-raised);
  border: var(--border-quiet);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.promo-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.promo-section-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.promo-counter {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-subtle);
  background: var(--surface-plate);
  padding: 2px 8px;
  border-radius: 4px;
}

.promo-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ground);
}

.promo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.promo-track::-webkit-scrollbar {
  display: none;
}

.promo-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--ground);
}

.promo-poster {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.2s ease;
}

.promo-slide:active .promo-poster {
  transform: scale(0.985);
}

.promo-slider-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 0;
}

.promo-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.promo-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(51, 33, 17, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.22s ease;
}

.promo-dots .dot.active {
  width: 18px;
  border-radius: 999px;
  background: var(--ink-primary);
}

.promo-tap-hint {
  font-size: 0.78rem;
  color: var(--ink-subtle);
}

/* ==========================================================================
   2. Hero Plates (Menu Digital & Tarif Rental)
   ========================================================================== */
.menu-hero-plate {
  background: var(--surface-raised);
  border: var(--border-quiet);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.plate-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plate-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.plate-caption {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.btn-primary-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink-primary);
  color: var(--ground);
  border: none;
  padding: 13px 20px;
  border-radius: 8px;
  font-family: var(--font-text);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease, transform 0.12s ease;
}

.btn-primary-action:hover {
  opacity: 0.92;
}

.btn-primary-action:active {
  transform: translateY(1px);
}

.nav-arrow {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   3. Wi-Fi Token Strip
   ========================================================================== */
.wifi-token-strip {
  background: var(--surface-raised);
  border: var(--border-quiet);
  border-radius: 10px;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wifi-details {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.wifi-pair {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wifi-key {
  font-size: 0.75rem;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wifi-val {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.wifi-divider {
  color: var(--ink-subtle);
  opacity: 0.4;
}

.btn-token-copy {
  flex-shrink: 0;
  background: var(--surface-plate);
  border: var(--border-quiet);
  color: var(--ink-primary);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-token-copy:hover {
  border-color: var(--border-focus);
}

.btn-token-copy.copied {
  background: #D1FAE5;
  color: #065F46;
  border-color: #34D399;
}

/* ==========================================================================
   4. Google Review Bar
   ========================================================================== */
.review-action-banner {
  background: var(--surface-raised);
  border: var(--border-quiet);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-stars-static {
  color: #D97706;
  font-size: 0.92rem;
  letter-spacing: 2px;
}

.review-heading {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.review-sub {
  font-size: 0.76rem;
  color: var(--ink-secondary);
}

.btn-review-direct {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-plate);
  border: var(--border-quiet);
  color: var(--ink-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-review-direct:hover {
  background: var(--ground);
  border-color: var(--border-focus);
}

.ext-arrow {
  color: var(--ink-subtle);
}

/* ==========================================================================
   5. Navigation Links
   ========================================================================== */
.lounge-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
  font-size: 0.8rem;
}

.nav-sublink {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-sublink strong {
  color: var(--ink-primary);
}

.nav-sublink:hover {
  color: var(--ink-primary);
  text-decoration: underline;
}

.nav-sep {
  color: var(--ink-subtle);
  opacity: 0.5;
}

/* ==========================================================================
   Footer Colophon
   ========================================================================== */
.lounge-colophon {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.colophon-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
}

.colophon-meta {
  font-size: 0.74rem;
  color: var(--ink-subtle);
}

/* ==========================================================================
   Modal Sheets & Drawers
   ========================================================================== */
.sheet-scrim {
  position: fixed;
  inset: 0;
  background: rgba(51, 33, 17, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.sheet-scrim.active {
  opacity: 1;
  pointer-events: auto;
}

.sheet-frame {
  background: var(--surface-raised);
  border: var(--border-quiet);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  height: 84vh;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(12px);
  transition: transform 0.24s ease;
}

.sheet-scrim.active .sheet-frame {
  transform: translateY(0);
}

.sheet-frame.drawer-style {
  height: auto;
  max-height: 78vh;
  align-self: flex-end;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  transform: translateY(100%);
}

.sheet-scrim.active .sheet-frame.drawer-style {
  transform: translateY(0);
}

.sheet-header {
  padding: 16px 20px;
  border-bottom: var(--border-quiet);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-plate);
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--surface-raised);
  border: var(--border-quiet);
  color: var(--ink-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.sheet-close:hover {
  color: var(--ink-primary);
}

.sheet-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--ground);
}

.sheet-body iframe {
  width: 100%;
  flex: 1;
  border: none;
}

.sheet-footer-link {
  padding: 12px 18px;
  background: var(--surface-plate);
  border-top: var(--border-quiet);
  text-align: center;
}

.btn-inline-link {
  color: var(--ink-primary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: underline;
}

/* Rates list inside drawer */
.sheet-rates-container {
  padding: 18px 20px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ground);
}

.rate-item {
  background: var(--surface-raised);
  border: var(--border-quiet);
  border-radius: 8px;
  padding: 14px 16px;
}

.rate-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.rate-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.rate-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: #0284C7;
  background: var(--surface-plate);
  padding: 2px 7px;
  border-radius: 4px;
}

.rate-price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.rate-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.rate-unit {
  font-size: 0.78rem;
  color: var(--ink-subtle);
}

.rate-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: var(--border-quiet);
  padding-top: 8px;
}

.rate-features li {
  font-size: 0.8rem;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rate-features li::before {
  content: "•";
  color: var(--ink-subtle);
}

/* ==========================================================================
   Lightbox for Promo Posters
   ========================================================================== */
.lightbox-scrim {
  padding: 12px;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--ink-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Haptic Toast
   ========================================================================== */
.lounge-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: var(--ink-primary);
  color: var(--ground);
  padding: 11px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  z-index: 200;
  opacity: 0;
  transition: all 0.22s ease;
  pointer-events: none;
}

.lounge-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}
