/* MahjongTableFlow — "Living table" layer (2026-11-22).
   Small motion system: one easing, two durations, one lift, one tilt.
   Everything here is progressive: without JS, with reduced motion or on
   touch screens the page is the same static design as before. */
:root{
  --lt-ease:cubic-bezier(.2,.7,.2,1);
  --lt-fast:.28s;
  --lt-slow:.7s;
  --lt-lift:-6px;
  --lt-tilt:5deg;
  --lt-light:rgba(255,240,210,.13);
}

/* The 26s "breathing" zoom on the hero photo ran forever on every device.
   It is replaced by depth that only moves when the visitor moves the pointer. */
html.motion-active .cinema-hero__media img,
html.motion-active .cinema-hero__media video{animation:none!important}

/* ---------- 1. Hero: the table answers the pointer (desktop only) ---------- */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  html.lt-on .cinema-hero__media{
    transform:translate3d(calc(var(--lt-px,0) * -14px),calc(var(--lt-py,0) * -9px),0) scale(1.045);
    will-change:transform}
  html.lt-on .cinema-hero__content{
    transform:translate3d(calc(var(--lt-px,0) * 5px),calc(var(--lt-py,0) * 3px),0)}
  /* soft lamp light that follows the pointer across the felt */
  html.lt-on .cinema-hero__scrim{
    display:block!important;position:absolute;inset:0;z-index:3;pointer-events:none;
    background:radial-gradient(520px circle at var(--lt-mx,70%) var(--lt-my,40%),var(--lt-light),transparent 62%);
    opacity:var(--lt-on,0);transition:opacity var(--lt-slow) var(--lt-ease)}
}

/* ---------- 2. Product showcase: cards with physical depth ---------- */
.lt-badge{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin:2px 0 4px;
  font:700 10.5px/1 var(--at-sans,Inter,system-ui,sans-serif);letter-spacing:.12em;text-transform:uppercase;
  color:var(--at-forest,#123f35);background:rgba(18,63,53,.07);border:1px solid rgba(18,63,53,.14);border-radius:999px;padding:6px 10px}
.lt-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:#2f7d63}
.lt-gets{font-size:13px;line-height:1.5;color:var(--at-ink-soft,#5d6b64);margin-top:2px}
.lt-gets b{color:var(--at-forest,#123f35);font-weight:700}

@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  html.lt-on [data-lt-tilt]{
    transform:perspective(1000px) rotateX(var(--lt-rx,0deg)) rotateY(var(--lt-ry,0deg)) translateY(var(--lt-y,0px));
    transform-style:preserve-3d;transition:transform var(--lt-slow) var(--lt-ease),box-shadow var(--lt-slow) var(--lt-ease)}
  html.lt-on [data-lt-tilt].lt-active{transition:transform var(--lt-fast) linear,box-shadow var(--lt-slow) var(--lt-ease);
    box-shadow:0 34px 70px -28px rgba(7,26,22,.55)}
  html.lt-on .at-featured__card[data-lt-tilt]:hover{transform:perspective(1000px) rotateX(var(--lt-rx,0deg)) rotateY(var(--lt-ry,0deg)) translateY(var(--lt-lift))}
  html.lt-on [data-lt-tilt]{position:relative}
  html.lt-on [data-lt-tilt]:after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:2;
    background:radial-gradient(380px circle at var(--lt-mx,50%) var(--lt-my,0%),rgba(255,255,255,.22),transparent 60%);
    opacity:0;transition:opacity var(--lt-slow) var(--lt-ease)}
  html.lt-on [data-lt-tilt].lt-active:after{opacity:1}
}
@media (prefers-reduced-motion:reduce){
  .at-featured__card,.at-featured__card:hover{transform:none!important}
}
