/* Layout: phone-first single column on the T-shirt's warm grey ground; line-art cards in the shirt's green, dark olive icon tiles, signage caps for headings. */
:root {
  --bg: #e7e2df;
  --paper: #f4f1ee;
  --paper-2: #ece7e3;
  --leaf: #567e40;
  --leaf-d: #3f6230;
  --leaf-2: #8dae74;
  --leaf-3: #d8e1ce;
  --ink: #222313;
  --ink-2: #4a4c3d;
  --ink-3: #6d6f62;
  --line: rgba(86, 126, 64, 0.32);
  --line-2: rgba(34, 35, 19, 0.12);
  --sun: #c98a2e;
  --ok: #3f6230;
  --bad: #a23b31;
  --display: 'Gotham SSm A', 'Gotham SSm B', 'Montserrat', 'Prompt', system-ui, sans-serif;
  --body: 'Gotham SSm A', 'Gotham SSm B', 'IBM Plex Sans', 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
button,
.tile,
.opt,
.seg {
  -webkit-user-select: none;
  user-select: none;
}
#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
}
.bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 10px;
  padding-left: var(--gut-l);
  padding-right: var(--gut-r);
  border-bottom: 1.5px solid var(--line);
  background: rgba(231, 226, 223, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 60px;
  animation: barIn 0.4s var(--ease) both;
}
@keyframes barIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.spacer {
  flex: 1;
  min-width: 0;
}
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
}
.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-block: 24px 48px;
  padding-left: var(--gut-l);
  padding-right: var(--gut-r);
}
.screen.bleed {
  padding: 0;
}

/* Type */
.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 6.2vw, 56px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(23px, 4.4vw, 36px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
}
.eyebrow {
  font: 600 12px/1.2 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 10px;
}
.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-2);
  max-width: 34em;
  margin: 12px 0 0;
}
.muted {
  color: var(--ink-3);
}
.small {
  font-size: 14px;
}
.num {
  font-variant-numeric: tabular-nums;
}
#app[data-lang='th'] .display,
#app[data-lang='th'] .h2,
#app[data-lang='th'] .h3 {
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 600;
}
#app[data-lang='th'] .eyebrow {
  letter-spacing: 0.04em;
}
p {
  margin: 0;
}

/* Brand */
.logo {
  display: inline-flex;
  align-items: center;
  height: 30px;
}
.logo img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.logo-ph {
  display: inline-flex;
  align-items: center;
  height: 100%;
  border: 1.5px dashed var(--line);
  border-radius: 0;
  padding: 0 10px;
  font: 700 12px/1 var(--display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.logo.lg {
  height: 40px;
}
@media (max-width: 440px) {
  .logo.lg {
    height: 32px;
  }
}
@media (max-width: 380px) {
  .logo.lg {
    height: 26px;
  }
}
@media (max-width: 480px) {
  .bar .logo {
    height: 26px;
  }
}
.logo.lg .logo-ph {
  font-size: 14px;
  padding: 0 14px;
}
.pill {
  font: 600 12px/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
}
.home-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
}

/* Controls */
.btn {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: var(--leaf);
  color: var(--paper);
  font: 700 14.5px/1.1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 24px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  text-align: center;
}
#app[data-lang='th'] .btn {
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: 15.5px;
}
.btn:hover {
  background: var(--leaf-d);
}
.btn:active {
  transform: scale(0.97);
}
.btn:focus-visible,
.tile:focus-visible,
.opt:focus-visible,
.link:focus-visible,
.seg button:focus-visible,
.tab:focus-visible,
.ibtn:focus-visible,
.home-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.btn.ink {
  background: var(--ink);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn.ghost:hover {
  background: rgba(34, 35, 19, 0.06);
}
.btn.ghost[aria-current='page'] {
  background: var(--ink);
  color: var(--paper);
}
.btn.sm {
  min-height: 40px;
  font-size: 12.5px;
  padding: 0 14px;
}
.btn.xl {
  min-height: 60px;
  font-size: 17px;
  padding: 0 40px;
}
.btn.wide {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
}
.btn.danger {
  background: var(--bad);
}
.ibtn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color 0.2s ease;
}
.ibtn:hover {
  background: rgba(86, 126, 64, 0.1);
}
.ibtn svg {
  width: 20px;
  height: 20px;
}
.rw-btn .lbl {
  display: inline;
}
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 0;
  background: var(--leaf);
  color: var(--paper);
  font: 700 12px/1 var(--body);
  font-variant-numeric: tabular-nums;
  animation: popIn 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.btn.ghost[aria-current='page'] .badge {
  background: var(--paper);
  color: var(--ink);
}
.link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--leaf-d);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.seg {
  display: inline-flex;
  background: rgba(86, 126, 64, 0.12);
  border-radius: 0;
  padding: 3px;
  flex: none;
}
.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  font: 600 13px/1 var(--body);
  color: var(--ink-2);
  padding: 8px 11px;
  border-radius: 0;
  cursor: pointer;
  min-height: 34px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.seg button[aria-pressed='true'] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(34, 35, 19, 0.14);
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.row.center {
  justify-content: center;
}
.stack {
  display: grid;
  gap: 16px;
}

/* Panels and forms */
.panel {
  background: var(--paper);
  border-radius: 0;
  padding: 24px;
  border: 1.5px solid var(--line);
}
.field {
  display: grid;
  gap: 6px;
}
.field > label {
  font-weight: 600;
  font-size: 15px;
}
.input {
  width: 100%;
  min-height: 52px;
  border-radius: 0;
  border: 1.5px solid var(--line-2);
  background: #fbfaf8;
  padding: 0 14px;
  font: 500 17px var(--body);
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.input:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(86, 126, 64, 0.18);
}
.input.sm {
  min-height: 42px;
  font-size: 15px;
  border-radius: 0;
  padding: 0 10px;
}
select.input {
  appearance: auto;
}
.hint {
  font-size: 14px;
  color: var(--ink-3);
}
.check {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
}
.check input {
  width: 24px;
  height: 24px;
  accent-color: var(--leaf);
  margin: 0;
}
.check.req span {
  font-weight: 600;
  color: var(--ink);
}
.check.optional span {
  font-style: italic;
}
.err {
  color: var(--bad);
  font-size: 14px;
  font-weight: 600;
  animation: shake 0.4s ease both;
}
.err:empty {
  display: none;
}
@keyframes shake {
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(2px);
  }
}

/* Landing: the T-shirt artwork, assembled from layers; one centred column */
.land {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 16px max(24px, 3vh);
  padding-left: var(--gut-l);
  padding-right: var(--gut-r);
}
.land-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  animation: barIn 0.5s var(--ease) both;
}
.land-head .seg {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.land-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.land-copy {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  width: 100%;
  min-width: 0;
  margin-block: auto;
}
.land-copy .lede {
  margin: 0 auto;
  max-width: 30em;
}
.land-copy > * {
  animation: rise 0.6s var(--ease) both;
}
.land-copy > :nth-child(1) {
  animation-delay: 0.9s;
}
.land-copy > :nth-child(2) {
  animation-delay: 1.05s;
}
.land-copy > :nth-child(3) {
  animation-delay: 1.2s;
}
.land-cta {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin-top: 6px;
}
.land-cta .btn {
  width: 100%;
  min-width: 0;
}
.land-cta .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.land-cta .pair .btn {
  min-height: 46px;
  padding: 0 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .land-cta .pair .btn {
    font-size: 11.5px;
    letter-spacing: 0.03em;
  }
}
.scene {
  position: relative;
  width: min(100%, 44vh, 480px);
  aspect-ratio: 1150/1175;
  flex: none;
}
.art {
  position: absolute;
  inset: 0;
  animation: drawup 1.4s cubic-bezier(0.6, 0, 0.3, 1) 0.1s both;
}
.ly {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
  pointer-events: none;
}
.ly-crown {
  transform-origin: 50% 100%;
  animation: sway 5.8s ease-in-out infinite;
}
.ly-grass {
  transform-origin: 50% 100%;
  animation: sway 4.2s ease-in-out -1.3s infinite;
}
.ly-sign {
  animation: drop 0.9s cubic-bezier(0.3, 0.7, 0.4, 1) 1.15s both;
}
.lan {
  transform-origin: 50% 0;
  animation: swing 3s ease-in-out infinite;
}
.sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.sun-ring {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 5;
  stroke-dasharray: 492;
  stroke-dashoffset: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation:
    drawsun 1.5s ease-out 0.5s both,
    bob 7s ease-in-out 2s infinite;
}
.sun-halo {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 4.8s ease-out 2.1s infinite;
}
.bird {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flock {
  opacity: 0;
  animation: fly 26s linear 1.8s infinite;
}
.flock.f2 {
  animation-duration: 34s;
  animation-delay: 9s;
}
.wing {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flap 0.7s ease-in-out infinite;
}
@keyframes drawup {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes sway {
  0%,
  100% {
    transform: skewX(-1.6deg);
  }
  50% {
    transform: skewX(1.9deg);
  }
}
@keyframes swing {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}
@keyframes drop {
  0% {
    opacity: 0;
    transform: translateY(-70%);
  }
  55% {
    opacity: 1;
    transform: translateY(7%);
  }
  78% {
    transform: translateY(-2%);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes drawsun {
  from {
    stroke-dashoffset: 492;
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes halo {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}
@keyframes fly {
  0% {
    opacity: 0;
    transform: translate(-120px, 300px);
  }
  6% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(1240px, 150px);
  }
}
@keyframes flap {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(-0.35);
  }
}

/* Sign-up and sign-in: centred column */
.su-wrap {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100%;
  display: grid;
  align-content: center;
  gap: 22px;
}
.su-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}
.su-copy .lede {
  margin: 4px auto 0;
  max-width: 30em;
}
.su-copy .muted {
  margin-top: 6px;
}

/* Coupon callout: copies the code and opens the shop */
.callout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font: 700 13px/1.25 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  transition:
    background-color 0.2s ease,
    transform 0.12s ease;
  position: relative;
  overflow: hidden;
}
#app[data-lang='th'] .callout {
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: 14px;
}
.callout svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.callout span {
  flex: 1;
  min-width: 0;
}
.callout i {
  font-style: normal;
  font-size: 18px;
  transition: transform 0.25s var(--ease);
}
.callout:hover {
  background: var(--leaf-d);
}
.callout:hover i {
  transform: translateX(4px);
}
.callout:active {
  transform: scale(0.98);
}
.callout:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
}
.callout::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(244, 241, 238, 0.22), transparent);
  transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out 1s infinite;
}
@keyframes shine {
  0%,
  70% {
    left: -40%;
  }
  100% {
    left: 130%;
  }
}

/* Line-art decoration behind every screen except the landing page */
.decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  animation: fadeIn 0.8s ease both;
}
.stage[data-screen='landing'] .decor {
  display: none;
}
.screen {
  z-index: 1;
}
/* Inner-screen decor: same sun ring and birds as the home artwork, at the same drawing scale (--u = one artwork unit) */
.decor {
  --u: calc(min(100vw - 40px, 44vh, 480px)/1150);
}
.d-sun {
  position: absolute;
  top: clamp(10px, 3vh, 26px);
  right: max(14px, env(safe-area-inset-right, 0px));
  width: calc(170 * var(--u));
  aspect-ratio: 1;
  overflow: visible;
  opacity: 0.6;
}
.d-sun .sun-ring {
  animation:
    drawsun 1.5s ease-out 0.2s both,
    bob 7s ease-in-out 1.7s infinite;
}
.d-palm {
  position: absolute;
  left: -1%;
  bottom: 0;
  height: min(38vh, 420px);
  width: auto;
  opacity: 0.2;
  transform-origin: 30% 100%;
  animation: sway 7s ease-in-out infinite;
}
.d-grass {
  position: absolute;
  bottom: 0;
  width: clamp(92px, 12vw, 170px);
}
.d-grass img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.42;
  transform-origin: 50% 100%;
  animation: sway 4.4s ease-in-out infinite;
}
.d-grass.g1 {
  right: 4%;
}
.d-grass.g2 {
  right: 30%;
  transform: scaleX(-1) scale(0.75);
  transform-origin: 50% 100%;
}
.d-grass.g2 img {
  animation-delay: -1.8s;
}
.d-birds {
  position: absolute;
  top: calc(3vh + 30 * var(--u));
  left: 0;
  width: calc(100 * var(--u));
  overflow: visible;
  opacity: 0;
  animation: cross 30s linear 3s infinite;
}
.d-birds.f2 {
  top: calc(6vh + 90 * var(--u));
  width: calc(50 * var(--u));
  animation-duration: 38s;
  animation-delay: 14s;
}
@keyframes cross {
  0% {
    opacity: 0;
    transform: translate(-120px, 40px);
  }
  5% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(100vw + 120px), -30px);
  }
}
@media (max-width: 700px) {
  .d-sun {
    top: 8px;
    width: calc(150 * var(--u));
  }
}
/* Hub */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
}
.head {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
}
.tile {
  appearance: none;
  text-align: left;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 196px;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  min-width: 0;
}
.tile:hover {
  border-color: var(--leaf);
  box-shadow: 0 14px 28px -22px rgba(34, 35, 19, 0.5);
  transform: translateY(-2px);
}
.tile:active {
  transform: scale(0.98);
}
.tile .ic {
  width: 54px;
  height: 54px;
  border-radius: 0;
  overflow: hidden;
  background: var(--ink);
  display: block;
  flex: none;
  transition: transform 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.tile .ic img {
  width: 100%;
  height: 100%;
  display: block;
}
.tile:hover .ic {
  transform: rotate(-6deg) scale(1.06);
}
.tile p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.4;
  flex: 1;
}
.tile.alt {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.tile.alt p {
  color: rgba(244, 241, 238, 0.78);
}
.tile.alt .chip {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(244, 241, 238, 0.45);
}
.chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 30px;
  font: 600 12.5px/1.2 var(--body);
  padding: 5px 12px;
  border-radius: 0;
  background: transparent;
  color: var(--leaf-d);
  box-shadow: inset 0 0 0 1.5px var(--line);
  max-width: 100%;
}
.chip.go {
  background: var(--leaf-3);
  box-shadow: none;
}
.chip.done {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}

/* Screen entrances */
.screen.enter > * {
  animation: rise 0.5s var(--ease) both;
}
.enter .tiles > *,
.enter .opts > *,
.enter .quests > *,
.enter .rewards > *,
.enter .menu-secs > *,
.enter .msec > .mitem,
.enter .stats > * {
  animation: rise 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms + 80ms);
}
.anim-in {
  animation: rise 0.45s var(--ease) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

/* Game layout */
.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100%;
}
.game-copy {
  display: grid;
  gap: 16px;
  align-content: center;
  min-width: 0;
}
.game-copy .lede {
  margin: 0;
}
.game-stage {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 20px;
  width: 100%;
}

/* Wheel */
.wheel-wrap {
  position: relative;
  width: min(100%, 60vh, 540px);
  aspect-ratio: 1;
  max-width: 100%;
  animation: spinIn 0.9s var(--ease) both;
}
@keyframes spinIn {
  from {
    opacity: 0;
    transform: rotate(-40deg) scale(0.85);
  }
}
.wheel-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 28px solid var(--ink);
  z-index: 2;
}

/* Matcha master */
.mm-stage {
  width: 100%;
  max-width: 560px;
  display: grid;
  gap: 14px;
}
.mm-hud {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 14px 18px;
  display: grid;
  gap: 12px;
}
.mm-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.mm-foam {
  display: grid;
  gap: 10px;
  border-top: 1.5px solid var(--line);
  padding-top: 12px;
}
.mm-lbl {
  font: 600 12px/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
#app[data-lang='th'] .mm-lbl {
  letter-spacing: 0.03em;
}
.mm-time,
.mm-score {
  font: 600 22px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transition: color 0.3s ease;
}
.mm-time.low {
  color: var(--bad);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}
.mm-score small {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
}
.meter {
  height: 12px;
  border-radius: 0;
  background: rgba(86, 126, 64, 0.16);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--leaf-d), var(--leaf-2));
  border-radius: inherit;
  transition: width 0.25s ease-out;
}
.bowl-wrap {
  position: relative;
  width: min(100%, 50vh);
  justify-self: center;
  aspect-ratio: 1/1.28;
  touch-action: none;
}
.bowl-wrap canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.bowl-wrap.locked canvas {
  opacity: 0.55;
  transition: opacity 0.4s ease;
}
.mm-cue {
  position: absolute;
  left: 0;
  right: 0;
  top: 5%;
  z-index: 0;
  margin: 0;
  text-align: center;
  font: 600 17px/1.35 var(--body);
  color: var(--leaf-d);
  padding-inline: 12px;
}
.mm-result {
  position: absolute;
  z-index: 2;
  left: 7%;
  right: 7%;
  top: 36%;
  background: rgba(244, 241, 238, 0.97);
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 22px 18px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  box-shadow: 0 30px 60px -28px rgba(34, 35, 19, 0.55);
}
.mm-result .big {
  font: 700 clamp(50px, 12vw, 72px)/1 var(--display);
  color: var(--leaf-d);
}
.hud-l {
  display: block;
  font: 600 12px/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
#app[data-lang='th'] .hud-l {
  letter-spacing: 0.03em;
}
.cue {
  font: 600 17px/1.35 var(--body);
  color: var(--leaf-d);
  min-height: 1.3em;
}
.lb {
  display: grid;
  gap: 16px;
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 20px;
}
.lb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.lb li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  animation: rise 0.4s var(--ease) both;
}
.lb li:nth-child(2) {
  animation-delay: 0.05s;
}
.lb li:nth-child(3) {
  animation-delay: 0.1s;
}
.lb li:nth-child(4) {
  animation-delay: 0.15s;
}
.lb li:nth-child(5) {
  animation-delay: 0.2s;
}
.lb li:nth-child(6) {
  animation-delay: 0.25s;
}
.lb li:last-child {
  border-bottom: 0;
}
.lb li .rk {
  font: 700 18px/1 var(--display);
  color: var(--ink-3);
}
.lb li.top .rk {
  color: var(--leaf);
}
.lb li.me {
  background: var(--leaf-3);
  border-radius: 0;
  padding-inline: 8px;
  border-bottom-color: transparent;
}
.lb li.sep {
  margin-top: 6px;
}
.lb li.empty {
  color: var(--ink-3);
}
.lb li.empty .rk {
  opacity: 0.45;
}
.lb li b {
  font-variant-numeric: tabular-nums;
}
.plist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.plist li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
  border: 0;
  padding: 0;
  animation: none;
}
.plist li b {
  font: 700 12px/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
}

/* Quiz */
.opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.opt {
  appearance: none;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0;
  text-align: left;
  padding: 16px;
  min-height: 80px;
  font: 500 17px/1.35 var(--body);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  transition:
    transform 0.15s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.opt:hover {
  border-color: var(--leaf);
  background: #f8f6f3;
}
.opt .k {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font: 700 14px/1 var(--display);
}
.opt:active {
  transform: scale(0.98);
}
.steps {
  display: flex;
  gap: 6px;
}
.steps i {
  flex: 1;
  height: 5px;
  border-radius: 0;
  background: rgba(86, 126, 64, 0.18);
  transition: background-color 0.4s ease;
}
.steps i.on {
  background: var(--leaf);
}
.tea {
  display: grid;
  gap: 12px;
}
.tea .swatch {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  box-shadow:
    inset 0 -8px 16px rgba(0, 0, 0, 0.18),
    0 0 0 6px var(--paper),
    0 0 0 7.5px var(--line);
  animation: popIn 0.6s cubic-bezier(0.2, 1.5, 0.4, 1) 0.15s both;
}

/* Side quests */
.quests {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: q;
}
.quests li {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 16px 18px 16px 60px;
  position: relative;
  font-size: 17px;
  line-height: 1.4;
  counter-increment: q;
}
.quests li::before {
  content: counter(q);
  position: absolute;
  left: 18px;
  top: 15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font: 700 13px/1 var(--display);
}
.tagline {
  font: 600 17px var(--mono);
  color: var(--leaf-d);
  word-break: break-word;
}

/* Stamp card */
.card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 24px;
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 560px;
}
.stamps {
  display: grid;
  gap: 12px;
  align-items: center;
}
.stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(86, 126, 64, 0.45);
  display: grid;
  place-items: center;
  text-align: center;
  font: 700 clamp(20px, 5vw, 28px)/1 var(--display);
  color: var(--ink-3);
  overflow: hidden;
}
.stamp.on {
  border: 0;
  background: #000;
  transform: rotate(-8deg);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}
.enter .stamp.on,
.stamp.on.new {
  animation: stampIn 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) both;
  animation-delay: calc(var(--i, 0) * 120ms + 250ms);
}
@keyframes stampIn {
  0% {
    opacity: 0;
    transform: rotate(-22deg) scale(1.7);
  }
  60% {
    opacity: 1;
    transform: rotate(-5deg) scale(0.94);
  }
  100% {
    transform: rotate(-8deg) scale(1);
  }
}
.stamp.on img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stamp.free {
  border: 2px solid var(--leaf);
  background: var(--leaf-3);
  color: var(--leaf-d);
  font: 700 clamp(11px, 2.8vw, 13px)/1.1 var(--display);
  letter-spacing: 0.12em;
}
.card-foot {
  display: grid;
  gap: 4px;
  font-size: 15px;
  color: var(--ink-2);
}
.mcode {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding-top: 18px;
  border-top: 1.5px dashed var(--line);
}
.mcode .code {
  font: 600 clamp(30px, 8vw, 40px)/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--ink);
}

/* Menu */
.menu {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}
.menu-secs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  align-items: start;
}
.msec {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 20px 20px 8px;
  display: grid;
  min-width: 0;
}
.msec > .eyebrow {
  margin-bottom: 4px;
}
.mitem {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.msec > .eyebrow + .mitem {
  border-top: 0;
}
.mthumb {
  width: 72px;
  height: 72px;
  border-radius: 0;
  overflow: hidden;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  color: var(--leaf);
}
.mthumb.ph {
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.mthumb.ph svg {
  width: 28px;
  height: 28px;
  opacity: 0.8;
}
.mthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mtext {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  min-width: 0;
}
.mtext b {
  font: 700 15.5px/1.3 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
#app[data-lang='th'] .mtext b {
  line-height: 1.45;
}
.mtext .pr {
  font: 600 16px/1.4 var(--mono);
  color: var(--leaf-d);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mtext p {
  grid-column: 1/-1;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}

/* Rewards */
.rewards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.reward {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.reward.used {
  opacity: 0.6;
}
.ticket {
  border: 2px dashed var(--leaf);
  border-radius: 0;
  padding: 14px 16px;
  font: 600 clamp(24px, 7vw, 34px)/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--ink);
  text-align: center;
  background: #fbfaf8;
}
.reward .ticket {
  font-size: 24px;
  padding: 10px;
}
.modal .ticket {
  animation: popIn 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) 0.2s both;
}

/* Modal, toast */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(34, 35, 19, 0.5);
  display: grid;
  place-items: center;
  padding-block: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-bottom, 0px));
  padding-left: var(--gut-l);
  padding-right: var(--gut-r);
  animation: fadeIn 0.25s ease both;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
.modal {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0;
  width: 100%;
  max-width: 480px;
  max-height: 100%;
  overflow: auto;
  padding: 28px 22px;
  text-align: center;
  display: grid;
  gap: 14px;
  animation: pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes pop {
  from {
    transform: scale(0.88) translateY(12px);
    opacity: 0;
  }
}
.modal .eyebrow {
  margin: 0;
}
.pad {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 10px;
  justify-content: center;
}
.pad button {
  appearance: none;
  border: 1.5px solid var(--line);
  height: 64px;
  border-radius: 0;
  background: var(--paper);
  font: 600 24px var(--body);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.pad button:active {
  background: var(--leaf-3);
}
.dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 16px;
}
.dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(34, 35, 19, 0.15);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}
.dots i.on {
  background: var(--ink);
  transform: scale(1.1);
}
.toast {
  pointer-events: none;
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 20px;
  border-radius: 0;
  font-weight: 600;
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 32px);
  text-align: center;
  animation: toastIn 0.35s var(--ease) both;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

/* Staff */
.lockwrap {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.staff {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tab {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  font: 600 15px/1 var(--body);
  padding: 11px 15px;
  border-radius: 0;
  cursor: pointer;
}
.tab[aria-selected='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.stat {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 16px 18px;
}
.stat b {
  display: block;
  font: 700 34px/1.1 var(--display);
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 14px;
  color: var(--ink-2);
}
.tbl {
  overflow-x: auto;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 6px 14px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
th {
  font: 600 11.5px/1.2 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
tr:last-child td {
  border-bottom: 0;
}
td.n,
th.n {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ok {
  color: var(--ok);
  font-weight: 600;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.sec-h {
  display: grid;
  gap: 4px;
}
.sec-h .step {
  font: 600 12px/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
}
.sec-h p {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 60em;
}
.qday {
  display: grid;
  gap: 10px;
}
.qrow {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.mrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 96px auto;
  gap: 8px;
  align-items: center;
}
.mrow2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.mimg {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mitem-ed {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.logo-prev {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-prev img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: #fff;
  border-radius: 0;
  padding: 6px;
}
.sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
.sync i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-3);
  flex: none;
}
.sync.on i {
  background: var(--ok);
}
.sync.off i {
  background: var(--sun);
}
.sync.bad i {
  background: var(--bad);
}
.stepper {
  display: flex;
  align-items: center;
  gap: 18px;
}
.stepper b {
  font: 700 50px/1 var(--display);
  min-width: 70px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.stepper .btn {
  width: 56px;
  height: 56px;
  padding: 0;
  font-size: 26px;
}
.mini {
  display: flex;
  gap: 8px;
}
.mini i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px dashed rgba(86, 126, 64, 0.45);
}
.mini i.on {
  border: 0;
  background: var(--leaf);
}
.note {
  background: var(--leaf-3);
  border-radius: 0;
  padding: 14px 16px;
  font-size: 15px;
  animation: rise 0.4s var(--ease) both;
}

@media (max-width: 1020px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .game {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    min-height: 0;
  }
  .grid2,
  .grid3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .two {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .mrow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .mrow2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  /* Hub on phones: compact cards so all six sit above the fold */
  .screen[data-screen='hub'] {
    padding-top: 16px;
  }
  .screen[data-screen='hub'] .head {
    margin-bottom: 14px;
    gap: 2px;
  }
  .screen[data-screen='hub'] .eyebrow {
    margin-bottom: 4px;
  }
  .screen[data-screen='hub'] .display {
    font-size: clamp(22px, 6.4vw, 28px);
  }
  .screen[data-screen='hub'] .lede {
    font-size: 14.5px;
    margin-top: 6px;
  }
  .tiles {
    gap: 8px;
  }
  .tile {
    min-height: 0;
    padding: 12px;
    border-radius: 0;
    gap: 6px;
  }
  .tile .ic {
    width: 36px;
    height: 36px;
    border-radius: 0;
  }
  .tile .h3 {
    font-size: 13.5px;
  }
  .tile p {
    font-size: 12.5px;
    line-height: 1.35;
  }
  .tile .chip {
    min-height: 24px;
    font-size: 11.5px;
    padding: 3px 9px;
  }
  .opts {
    grid-template-columns: minmax(0, 1fr);
  }
  .stamps {
    gap: 8px;
  }
  .panel,
  .card {
    padding: 20px;
  }
  .bar .pill,
  .rw-btn .lbl {
    display: none;
  }
  .rw-btn {
    padding: 0 12px;
  }
  .qrow {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .qrow .input:last-child {
    grid-column: 2;
  }
}
@media (max-width: 480px) {
  .bar .ibtn[data-act='back'] + .home-link {
    display: none;
  }
}
/* Narrow phones: a little tighter still */
@media (max-width: 400px) {
  .tile {
    padding: 10px;
  }
  .tile p {
    font-size: 12px;
  }
  .screen[data-screen='hub'] .display {
    font-size: 22px;
  }
}
/* Short phones (iPhone SE and similar): icon beside the title to save a line per card */
@media (max-width: 600px) and (max-height: 800px) {
  .tile {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 8px;
    row-gap: 6px;
    align-content: stretch;
  }
  .tile .ic {
    width: 30px;
    height: 30px;
  }
  .tile .h3 {
    align-self: center;
  }
  .tile p,
  .tile .chip {
    grid-column: 1/-1;
  }
  .tile .chip {
    justify-self: start;
  }
}
@media (max-width: 600px) and (max-height: 700px) {
  .screen[data-screen='hub'] {
    padding-top: 10px;
  }
  .screen[data-screen='hub'] .head {
    margin-bottom: 10px;
  }
  .screen[data-screen='hub'] .lede {
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .flock,
  .d-birds {
    display: none;
  }
}
/* Guest auto sign-out countdown */
.idle {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(34, 35, 19, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn 0.25s ease both;
}
.idle[hidden] {
  display: none;
}
.idle-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 26px 24px 22px;
  width: min(100%, 360px);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  animation: pop 0.3s var(--ease) both;
}
.idle-card .eyebrow {
  margin: 0;
}
.idle-ring {
  position: relative;
  width: 104px;
  height: 104px;
}
.idle-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.idle-ring circle {
  fill: none;
  stroke-width: 5;
}
.idle-track {
  stroke: var(--leaf-3);
}
.idle-bar {
  stroke: var(--leaf);
  stroke-dasharray: 276.5;
  stroke-dashoffset: 0;
  animation: idleDrain 5s linear both;
}
.idle-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 40px/1 var(--display);
  color: var(--ink);
}
.idle-p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}
@keyframes idleDrain {
  to {
    stroke-dashoffset: 276.5;
  }
}
