/* ============================================================
   MAHJONG MASTER 88 — store site
   dark forest green + gold + cream · engraved, luxurious, minimal
   drifting tiles · scroll reveals · tap-first reservations
   ============================================================ */

:root {
  --green-abyss:  #071a12;  /* page background, deepest */
  --green-deep:   #0d2b1d;  /* section background */
  --green:        #14432c;  /* cards / panels */
  --green-soft:   #1d5c3c;  /* hover, borders */
  --gold:         #d4af37;  /* primary accent, headings */
  --gold-bright:  #f0d582;  /* highlights, gradients */
  --gold-dim:     #8a6f24;  /* muted rules, dividers */
  --cream:        #f5edda;  /* tile faces, body text on green */
  --cream-soft:   #cdc3ab;  /* secondary text */
  --red-seal:     #a3272a;  /* the red dot in the logo; sparing use only */

  --tile-face: var(--cream);
  --tile-back: var(--green);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --tile-radius: 10px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gold-grad: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-dim));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--green-abyss);
  color: var(--cream);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============ drifting background tiles ============ */
.drift-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.drift-tile {
  position: absolute;
  top: 0;
  font-size: 42px;
  color: var(--gold-bright);
  opacity: 0.07;
  animation: drift linear infinite;
  will-change: transform;
  user-select: none;
}

@keyframes drift {
  from { transform: translateY(110vh) rotate(-12deg); }
  to   { transform: translateY(-20vh) rotate(14deg); }
}

.nav__control {
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  background: var(--green-abyss);
  color: var(--cream);
  font: inherit;
  font-size: 0.75rem;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}
.nav__control:hover, .nav__control:focus-visible { border-color: var(--gold-bright); color: var(--gold-bright); }
.nav__language {
  position: absolute;
  right: 2rem;
  top: 50%;
  min-width: 3rem;
  transform: translateY(-50%);
}
.reservation-confirmation {
  margin: 1.5rem auto 0;
  max-width: 760px;
  padding: 1.5rem;
  background: var(--green-deep);
  border: 1px solid var(--gold);
  border-radius: 12px;
}
.reservation-confirmation h3 { color: var(--gold-bright); }
.reservation-confirmation dl { display: grid; grid-template-columns: minmax(100px, 1fr) 2fr; gap: 0.6rem 1rem; margin-top: 1rem; }
.reservation-confirmation dt { color: var(--cream-soft); }
.reservation-confirmation dd { overflow-wrap: anywhere; }
.summary__pricebox[hidden], .reservation-confirmation[hidden] { display: none; }
@media (max-width: 640px) {
  .nav { padding: 0.65rem 0.8rem; }
  .nav .nav__links { gap: 0.9rem; flex-wrap: nowrap; justify-content: center; }
  .nav .nav__links a { font-size: 0.7rem; letter-spacing: 0.06em; }
  .nav__control { font-size: 0.7rem; padding: 0.35rem 0.45rem; }
  .nav__language { right: 0.75rem; }
}

/* ============ nav ============ */
/* No left-hand mark any more, so the links sit centred rather than stranded
   against one edge with a wide empty gap. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.1rem 2rem;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(7,26,18,0.85), rgba(7,26,18,0));
}

.nav__mark {
  font-size: 1.3rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav__mark-88 {
  color: var(--gold-bright);
  margin-left: 0.1em;
}

.nav__mark-en {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--cream-soft);
  font-weight: 600;
}

@media (max-width: 640px) {
  .nav__mark-en { display: none; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav__links a {
  color: var(--cream-soft);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--gold); }

.nav__cta {
  color: var(--gold) !important;
  font-weight: 700;
}

/* ============ hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 2rem;
  text-align: center;
}

/* The supplied artwork is a square JPEG with a flat dark-green backdrop
   (~rgb(26,38,26)) that reads as a visible box against the page. JPEG can't
   carry transparency, so we feather the edges to nothing with a radial mask —
   `closest-side` puts the fade exactly at the image's edges, and the artwork
   only occupies the middle ~80%, so nothing meaningful gets clipped.
   Swap in a transparent PNG and this mask becomes a no-op. */
.hero__logo {
  /* square artwork — the vh term keeps it inside the fold on short screens */
  width: min(440px, 84vw, 54vh);
  height: auto;
  margin-bottom: 0.5rem;
  animation: fadeUp 1s both;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 74%, transparent 100%);
          mask-image: radial-gradient(circle closest-side, #000 74%, transparent 100%);
}

/* Screen-reader-only text (the visible wordmark lives inside the logo art). */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero__tile-wrap {
  perspective: 900px;
  margin-bottom: 2.2rem;
}

/* --- the 3D hero tile --- */
.tile3d {
  position: relative;
  width: 110px;
  height: 150px;
  transform-style: preserve-3d;
  animation: heroSpin 9s ease-in-out infinite;
}

@keyframes heroSpin {
  0%   { transform: rotateY(0deg)   rotateX(0deg); }
  25%  { transform: rotateY(180deg) rotateX(6deg); }
  50%  { transform: rotateY(360deg) rotateX(0deg); }
  62%  { transform: rotateY(360deg) rotateX(-14deg) translateY(-14px); }
  74%  { transform: rotateY(360deg) rotateX(0deg)  translateY(0); }
  100% { transform: rotateY(360deg) rotateX(0deg); }
}

.tile3d__face {
  position: absolute;
  inset: 0;
  border-radius: var(--tile-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
}

.tile3d__front {
  background: var(--tile-face);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(138,111,36,0.3);
  font-size: 78px;
  color: var(--green-deep);
  transform: translateZ(9px);
}

.tile3d__back {
  background: var(--tile-back);
  background-image:
    radial-gradient(circle at 30% 25%, rgba(212,175,55,0.22), transparent 55%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(212,175,55,0.25);
  transform: rotateY(180deg) translateZ(9px);
}

.tile3d__edge {
  position: absolute;
  background: var(--gold-dim);
}
.tile3d__edge--top    { top: 0;    left: 0; width: 100%; height: 18px; transform: rotateX( 90deg) translateZ(9px);  transform-origin: top; }
.tile3d__edge--bottom { bottom: 0; left: 0; width: 100%; height: 18px; transform: rotateX(-90deg) translateZ(9px);  transform-origin: bottom; }
.tile3d__edge--left   { top: 0;    left: 0; width: 18px; height: 100%; transform: rotateY(-90deg) translateZ(9px);  transform-origin: left; }
.tile3d__edge--right  { top: 0;   right: 0; width: 18px; height: 100%; transform: rotateY( 90deg) translateZ(9px);  transform-origin: right; }

.hero__title {
  font-size: clamp(3rem, 10vw, 6.4rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 0.98;
  display: flex;
  flex-direction: column;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0,0,0,0.35), 0 0 40px rgba(212,175,55,0.18);
}

.hero__line {
  overflow: hidden;
  display: block;
  animation: riseIn 1s var(--ease-spring) both;
}
.hero__line:nth-child(2) {
  animation-delay: 0.15s;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes riseIn {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.hero__sub {
  margin-top: 1.4rem;
  color: var(--cream-soft);
  font-size: 1.05rem;
  animation: fadeUp 1s 0.5s both;
}

.hero__actions {
  margin-top: 2.6rem;
  display: flex;
  gap: 1.6rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 1s 0.8s both;
}

.hero__cta {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.25s, letter-spacing 0.4s;
}
.hero__cta:hover { color: var(--gold); letter-spacing: 0.32em; }

.hero__cta--solid {
  background: var(--gold-grad);
  color: var(--green-abyss);
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  font-weight: 700;
  letter-spacing: 0.16em;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, letter-spacing 0.4s;
}
.hero__cta--solid:hover {
  color: var(--green-abyss);
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.5);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ sections ============ */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0,0,0,0.3);
}

.section-sub {
  text-align: center;
  color: var(--cream-soft);
  margin-top: 0.4rem;
  margin-bottom: 3rem;
}

/* ============ scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-spring);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============ soft opening promo + countdown ============ */
.promo-banner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 700px;
  padding: 0 1.2rem;
  margin-top: -1.4rem;
}

.promo-banner__inner {
  position: relative;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  padding: 1.8rem 1.6rem 1.6rem;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.15), 0 14px 40px rgba(0,0,0,0.5);
  animation: promoGlow 3.2s ease-in-out infinite;
}

@keyframes promoGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(212,175,55,0.15), 0 14px 40px rgba(0,0,0,0.5); }
  50%      { box-shadow: 0 0 0 1px rgba(212,175,55,0.4), 0 14px 46px rgba(212,175,55,0.22); }
}

.promo-banner__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-abyss);
  background: var(--gold-grad);
  padding: 5px 16px;
  border-radius: 999px;
}

.promo-banner__dates {
  margin-top: 0.9rem;
  color: var(--cream-soft);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.promo-banner__deal {
  margin-top: 0.3rem;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.03em;
  text-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
.promo-banner__deal span {
  display: block;
  font-size: 0.42em;
  font-weight: 600;
  color: var(--cream-soft);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.countdown { margin-top: 1.3rem; }

.countdown__label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.countdown__digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--green-deep);
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  padding: 8px 4px;
  min-width: 56px;
}

.countdown__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown__unit small {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.countdown__colon {
  color: var(--gold-dim);
  font-weight: 800;
  font-size: 1.2rem;
  transform: translateY(-8px);
}

/* ============ price list ============ */
.prices {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.price-card {
  position: relative;
  background: var(--green);
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  padding: 1.8rem 1.8rem 1.6rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.price-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--gold-dim);
}

.price-card__head h3 {
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.price-card__tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.price-row + .price-row {
  border-top: 1px dashed rgba(212,175,55,0.25);
}

.price-row__time {
  color: var(--cream);
  font-size: 0.95rem;
}

.price-row__rate {
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-row__rate small {
  font-weight: 600;
  font-size: 0.62em;
  letter-spacing: 0.06em;
  color: var(--cream-soft);
  margin-left: 3px;
}

.prices__note {
  text-align: center;
  color: var(--cream-soft);
  font-size: 0.85rem;
  margin-top: 1.6rem;
  letter-spacing: 0.02em;
}

/* ============ reservation ============ */
.reserve {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.resform {
  background: var(--green);
  border: 1px solid var(--gold-dim);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.resform__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.1rem;
}

.resform__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.resform__field span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.resform__field input,
.resform__field select {
  background: var(--green-deep);
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.resform__field input::placeholder { color: var(--cream-soft); opacity: 0.65; }

.resform__field input:focus,
.resform__field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
  transform: translateY(-1px);
}

.resform__field input.invalid {
  border-color: var(--red-seal);
  animation: shakeField 0.35s;
}
@keyframes shakeField {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.resform__submit {
  margin-top: 0.4rem;
  background: var(--gold-grad);
  color: var(--green-abyss);
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(212,175,55,0.35);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.resform__submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(212,175,55,0.5);
}
.resform__submit:active { transform: translateY(0) scale(0.98); }
.resform__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.resform__submit-tile {
  display: inline-block;
  font-size: 1.3rem;
  transition: transform 0.5s var(--ease-spring);
}
.resform__submit:hover .resform__submit-tile {
  transform: rotate(360deg);
}

.resform__msg {
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}
.resform__msg.error { color: var(--red-seal); }

/* --- saved reservations table (used by admin.html) --- */
.reslist {
  margin-top: 2.4rem;
  background: var(--green);
  border: 1px solid var(--gold-dim);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
  text-align: left;
}

.reslist__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.reslist__head h3 {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.reslist__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.btn-ghost {
  background: none;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--cream);
  padding: 5px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost--danger:hover { border-color: var(--red-seal); color: var(--red-seal); }

.reslist__scroll { overflow-x: auto; }

.reslist__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.reslist__table th {
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-soft);
  padding: 8px 10px;
  border-bottom: 1px solid var(--gold-dim);
}

.reslist__table td {
  padding: 10px;
  border-bottom: 1px solid rgba(138,111,36,0.35);
  white-space: nowrap;
  color: var(--cream);
}

.reslist__table tr:last-child td { border-bottom: none; }

.reslist__table tbody tr {
  animation: fadeUp 0.5s both;
}

/* ============ contact ============ */
.contact {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem 7rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Exactly three across — auto-fit would reflow to 2+1 at some widths, and a
   lone stranded card under two others reads as something failing to load. */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.contact__location {
  margin-bottom: 1.4rem;
}

.contact__map {
  margin: 1.4rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  /* A fixed pixel height would letterbox the map on a phone and swallow the
     page on a desktop; an aspect ratio keeps it proportionate at both. */
  aspect-ratio: 21 / 8;
  min-height: 220px;
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact__card {
  background: var(--green);
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  padding: 2rem 1.6rem;
  box-shadow: 0 3px 14px rgba(0,0,0,0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s,
              opacity 0.7s ease;
}
.contact__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.4);
  border-color: var(--gold);
}

.contact__card h3 {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.contact__big {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--cream);
}

.contact__card p { color: var(--cream-soft); font-size: 0.92rem; }

/* ============ booking steps & chips ============ */
.step {
  border-top: 1px solid var(--gold-dim);
  padding-top: 1.4rem;
}
.step:first-child { border-top: none; padding-top: 0; }

.step__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: var(--cream);
}

.step__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--green-abyss);
  font-size: 0.8rem;
  font-weight: 700;
  flex: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  background: var(--green-deep);
  border: 1.5px solid var(--gold-dim);
  border-radius: 14px;
  padding: 12px 16px;
  min-height: 52px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.25;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s,
              background 0.2s, box-shadow 0.2s;
}

.chip:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.chip small {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-soft);
  white-space: nowrap;
}

.chip strong { white-space: nowrap; }

.chip.selected {
  background: var(--gold-grad);
  border-color: var(--gold);
  color: var(--green-abyss);
  box-shadow: 0 8px 18px rgba(212,175,55,0.3);
  transform: translateY(-2px);
}
.chip.selected small { color: rgba(7,26,18,0.7); }

.chip:disabled,
.chip.chip--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.chip:disabled:hover,
.chip.chip--disabled:hover {
  transform: none;
  border-color: var(--gold-dim);
}

/* Fully booked, as opposed to "outside opening hours" — kept visually distinct
   and a little more legible than a plain disabled chip, because this is the one
   a customer needs to understand ("why can't I pick 7pm?"). */
.chip.chip--full {
  opacity: 0.6;
  filter: none;
  border-color: var(--red-seal);
  background: rgba(163, 39, 42, 0.16);
  position: relative;
}
.chip.chip--full strong { text-decoration: line-through; opacity: 0.75; }

.chip__badge {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff9d8c;
  margin-top: 1px;
  white-space: nowrap;
}

.chips--time .chip,
.chips--players .chip,
.chips--duration .chip {
  min-width: 74px;
  font-variant-numeric: tabular-nums;
}

.chips__more {
  margin-top: 0.8rem;
  background: none;
  border: none;
  padding: 6px 0;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--cream-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}
.chips__more:hover { color: var(--gold); }

/* the native date input stays reachable but out of the way */
.visually-hidden-date {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.visually-hidden-date.shown {
  position: static;
  opacity: 1;
  width: 100%;
  height: auto;
  pointer-events: auto;
  margin-top: 0.8rem;
  background: var(--green-deep);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--cream);
  color-scheme: dark;
}

/* also let the visible number input for "custom tables" share this look */
.numfield {
  margin-top: 0.8rem;
  background: var(--green-deep);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--cream);
  width: 140px;
  display: none;
}
.numfield.shown { display: inline-block; }

/* ---- live summary / price estimate ---- */
.summary {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--green-deep);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  border: 1px dashed var(--gold-dim);
}

.summary__body {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1 1 240px;
  min-width: 0;
}

.summary__glyph {
  font-size: 1.6rem;
  color: var(--gold);
  flex: none;
}

.summary p {
  font-size: 0.95rem;
  color: var(--cream-soft);
  margin: 0;
}

.summary.ready {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(212,175,55,0.08);
}
.summary.ready p { color: var(--cream); font-weight: 600; }

/* The total gets its own panel, right-aligned and visually separated —
   inline next to the booking details it read as one run-on sentence. */
.summary__pricebox {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  padding-left: 1rem;
  border-left: 1px solid var(--gold-dim);
}

.summary__pricebox > small {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.summary__price {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.summary__hint {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--cream-soft);
  opacity: 0.85;
}

/* ============ mobile sticky action bar ============ */
.mobilebar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--green-abyss) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gold-dim);
}

.mobilebar a {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.mobilebar__wa {
  flex: 0 0 38%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.mobilebar__book {
  background: var(--gold-grad);
  color: var(--green-abyss);
  box-shadow: 0 6px 18px rgba(212,175,55,0.35);
}

/* confetti tiles on win */
.confetti {
  position: fixed;
  top: -60px;
  font-size: 34px;
  z-index: 100;
  pointer-events: none;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(115vh) rotate(720deg); }
}

/* ============ footer ============ */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  color: var(--gold-dim);
  letter-spacing: 0.5em;
  border-top: 1px solid var(--gold-dim);
}
.footer__quiet {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--cream-soft);
}

.footer__owner {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--cream-soft);
  opacity: 0.45;
  text-decoration: none;
  transition: opacity 0.25s;
}
.footer__owner:hover { opacity: 0.9; }

/* ============ phone layout ============ */
@media (max-width: 720px) {
  /* nav becomes a compact single row, scrollable if needed */
  .nav {
    padding: 0.9rem 1rem;
    gap: 0.6rem;
  }
  /* All three links fit now that the nav carries no logo mark — showing only
     "Reserve" here just duplicated the sticky bottom bar. */
  .nav__links {
    gap: 1.5rem;
    font-size: 0.72rem;
  }

  /* hero: tighter, no oversized type */
  .hero { padding: 6.5rem 1.2rem 3rem; min-height: auto; }
  .hero__logo { width: min(86vw, 48vh); margin-bottom: 0.4rem; }
  .hero__title { font-size: clamp(2.2rem, 13vw, 3.6rem); }
  .hero__sub { font-size: 0.95rem; padding: 0 0.5rem; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__cta { width: 100%; text-align: center; }

  /* soft-opening banner + features strip */
  .promo-banner { margin-top: -1rem; }
  .promo-banner__inner { padding: 1.4rem 1.1rem 1.3rem; border-radius: 16px; }
  .countdown__digits { gap: 0.35rem; }
  .countdown__unit { min-width: 46px; padding: 6px 3px; }
  .countdown__num { font-size: 1.2rem; }
  .countdown__colon { font-size: 1rem; transform: translateY(-6px); }

  /* sections breathe less on a small screen */
  .reserve, .prices, .contact {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .reserve { padding-top: 3rem; padding-bottom: 3rem; }
  .prices { padding-top: 3rem; padding-bottom: 3rem; }
  .contact { padding-top: 3rem; padding-bottom: 4rem; }

  .section-title { font-size: 1.7rem; }

  /* form fills the width, inputs are thumb-sized */
  .resform { padding: 1.3rem 1.1rem; border-radius: 16px; gap: 1.4rem; }
  .resform__row { grid-template-columns: 1fr; gap: 1rem; }
  .resform__field input,
  .resform__field select {
    padding: 14px;
    font-size: 16px; /* keeps iOS from zooming on focus */
  }
  .resform__submit { padding: 16px 24px; width: 100%; }

  /* chips: comfortable tap targets, horizontal scroll for days/times */
  .chips {
    gap: 0.5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .chips::-webkit-scrollbar { height: 0; }
  .chip {
    flex: none;
    scroll-snap-align: start;
    min-height: 56px;
    padding: 10px 14px;
  }
  .chips--players, .chips--duration { flex-wrap: wrap; overflow: visible; }
  .chips--players .chip,
  .chips--duration .chip { flex: 1 1 calc(25% - 0.5rem); min-width: 0; padding: 10px 6px; }

  /* single-column card grids */
  .price-grid, .contact__grid { grid-template-columns: 1fr; }
  .contact__map { aspect-ratio: 4 / 3; }

  /* sticky action bar appears only on phones */
  .mobilebar { display: flex; }
  .footer { padding-bottom: 7rem; } /* clear the sticky bar */

  /* calm the background animation down on small screens */
  .drift-tile { opacity: 0.05; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 1.9rem; }
  .chip { font-size: 0.9rem; padding: 10px 12px; }
  .mobilebar a { font-size: 0.85rem; padding: 13px 8px; }
}

/* Keep controls calm while the decorative mahjong background runs continuously. */
@media (prefers-reduced-motion: reduce) {
  .tile3d { animation: none; }
  .chip, .price-card, .contact__card { transition-duration: 0.15s; }
  html { scroll-behavior: auto; }
}
