:root {
  --bg: #fffdf0;
  --card: #fff;
  --ink: #1b2a1f;
  --mute: #5b6b5f;
  --lemon: #f6d743;
  --leaf: #1f4d2b;
  --mint: #e4f0d6;
  --line: #e6e2bd;
  --on-leaf: #fff;
  --cat: var(--ink); /* menu and order category headings */
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a14;
    --card: #1b261e;
    --ink: #f3f1da;
    --mute: #a9b8ab;
    --mint: #26382a;
    --line: #2f4033;
    --leaf: #8fd17a;
    --on-leaf: #0f1a11;
    --cat: #ffd23f;
  }
}
:root[data-theme="dark"] {
  --cat: #ffd23f;
  --bg: #121a14;
  --card: #1b261e;
  --ink: #f3f1da;
  --mute: #a9b8ab;
  --mint: #26382a;
  --line: #2f4033;
  --leaf: #8fd17a;
  --on-leaf: #0f1a11;
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
button,
a,
.gcard,
.mc,
canvas {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.55 Nunito,
    system-ui,
    sans-serif;
}
h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", Georgia, sans-serif;
  line-height: 1.1;
  margin: 0;
}
button {
  font: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 2px;
}
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 18px;
}
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: var(--bg);
  border-bottom: 2px solid var(--lemon);
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    800 1.25rem "Bricolage Grotesque",
    sans-serif;
}
.logo img,
.logo svg {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.pts {
  background: var(--lemon);
  color: #1b2a1f;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  white-space: nowrap;
}
nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 8px;
}
nav button {
  background: none;
  border: 2px solid transparent;
  border-radius: 99px;
  padding: 5px 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--mute);
  white-space: nowrap;
}
nav button[aria-selected="true"] {
  background: var(--leaf);
  color: var(--on-leaf);
}
.tab {
  display: none;
  padding: 22px 0 40px;
}
.tab.on {
  display: block;
}
.hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  max-width: 13ch;
  margin-bottom: 10px;
}
.hero p,
.sub {
  color: var(--mute);
  margin: 0 0 16px;
  max-width: 50ch;
}
.panel {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.join,
.form {
  display: grid;
  gap: 10px;
  max-width: 440px;
}
.jtabs {
  display: flex;
  gap: 6px;
  background: var(--mint);
  border-radius: 12px;
  padding: 4px;
}
.jtabs button {
  flex: 1;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  padding: 9px 8px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--leaf);
}
.jtabs button.on {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.chk {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.92rem;
  cursor: pointer;
}
.chk input {
  width: auto;
  margin-top: 3px;
  flex: none;
}
#jNote a {
  color: var(--leaf);
  font-weight: 700;
}
.chk span {
  font-weight: 500;
}
#jMsg.err {
  color: #b3261e;
  font-weight: 600;
}
.row .used {
  opacity: 0.55;
  text-decoration: line-through;
}
.lo {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 8px;
  color: var(--leaf);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}
label {
  font-weight: 700;
  font-size: 0.92rem;
  display: grid;
  gap: 4px;
}
input,
select,
textarea {
  font: inherit;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}
.btn {
  background: var(--leaf);
  color: var(--on-leaf);
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn.alt {
  background: var(--lemon);
  color: #1b2a1f;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
h2.s {
  font-size: 1.7rem;
  margin: 26px 0 6px;
}
.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.task {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
}
.tag {
  display: inline-block;
  background: var(--mint);
  color: var(--leaf);
  font-weight: 700;
  border-radius: 8px;
  padding: 2px 9px;
  font-size: 0.9rem;
}
.done {
  opacity: 0.6;
}
.games {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.mem {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
  max-width: 340px;
}
.card {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--lemon);
  padding: 6px;
  display: grid;
  place-items: center;
}
.card svg {
  width: 100%;
  height: 100%;
}
.card .f {
  display: none;
}
.card.up,
.card.ok {
  background: var(--card);
}
.card.up .f,
.card.ok .f {
  display: block;
}
.card.up .b,
.card.ok .b {
  display: none;
}
.card.ok {
  border-color: var(--leaf);
}
.holes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
  max-width: 300px;
}
.hole {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid var(--line);
  padding: 8px;
}
.hole svg {
  width: 100%;
  height: 100%;
}
.wheel {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--lemon);
  border: 4px solid var(--leaf);
  display: grid;
  place-items: center;
  font:
    800 2rem "Bricolage Grotesque",
    sans-serif;
  color: #1b2a1f;
  margin: 12px 0;
}
.ban {
  background: var(--lemon);
  color: #1b2a1f;
  border-radius: 18px;
  padding: 16px;
  margin: 14px 0;
  display: grid;
  gap: 8px;
  max-width: 440px;
}
.ban input {
  background: #fff;
  color: #1b2a1f;
}
.cd {
  font-weight: 700;
  color: var(--leaf);
}
[hidden] {
  display: none !important;
}
.sendbox {
  display: grid;
  gap: 10px;
  border-top: 2px dashed var(--line);
  padding-top: 12px;
  margin-top: 6px;
}
.sendbox textarea {
  font-size: 0.9rem;
}
.stat {
  color: var(--mute);
  font-weight: 600;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.row small {
  display: block;
  color: var(--mute);
}
.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.qty button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--leaf);
  background: none;
  color: var(--leaf);
  font-weight: 800;
}
.code {
  font:
    800 1.2rem "Bricolage Grotesque",
    monospace;
  background: var(--mint);
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 0.06em;
}
.log {
  max-height: 180px;
  overflow: auto;
  font-size: 0.95rem;
}
.total {
  font:
    800 1.4rem "Bricolage Grotesque",
    sans-serif;
  margin: 12px 0;
}
.acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--leaf);
  color: var(--on-leaf);
  padding: 10px 18px;
  border-radius: 99px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 9;
  max-width: 90%;
}
#toast.on {
  opacity: 1;
}
.locked {
  filter: grayscale(0.8);
  pointer-events: none;
  opacity: 0.5;
}
footer {
  padding: 24px 0 50px;
  color: var(--mute);
  font-size: 0.9rem;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

body {
  overflow-x: clip;
}
#mascot {
  position: fixed;
  z-index: 60;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.35s cubic-bezier(0.2, 1.5, 0.4, 1);
  will-change: transform;
}
#mascot::before {
  content: "";
  position: absolute;
  inset: -16px;
}
#mascot.hide {
  transition: transform 0.28s ease-in;
}
#mascot .rot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 130px;
  transform: translate(-50%, -50%);
}
#mascot img {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 90%;
  animation: idle 1.7s ease-in-out infinite;
  pointer-events: none;
  -webkit-user-drag: none;
}
#mascot.gold img {
  filter: drop-shadow(0 0 12px #ffd34d) drop-shadow(0 0 32px #f6b800);
  animation:
    idle 1.2s ease-in-out infinite,
    glow 1s ease-in-out infinite alternate;
}
@keyframes idle {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg) scale(1, 1);
  }
  50% {
    transform: translateY(-4px) rotate(4deg) scale(1.03, 0.97);
  }
}
@keyframes glow {
  from {
    filter: drop-shadow(0 0 8px #ffd34d) drop-shadow(0 0 20px #f6b800);
  }
  to {
    filter: drop-shadow(0 0 18px #fff2a8) drop-shadow(0 0 44px #ffb400);
  }
}
#mOv {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: radial-gradient(circle at 50% 22%, rgba(120, 80, 0, 0.6), rgba(0, 0, 0, 0.88) 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
#mOv.on {
  opacity: 1;
}
.spk {
  position: fixed;
  left: 50%;
  top: 22%;
  width: 16px;
  height: 16px;
  background: #ffd34d;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  z-index: 70;
  pointer-events: none;
}
#mCard {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(3vh + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(94vw, 460px);
  text-align: center;
  border: 5px solid #fff;
  border-radius: 28px;
  padding: 22px 18px;
  background: linear-gradient(160deg, #fffbd0, #ffe45e 50%, #ffb703);
  box-shadow:
    0 0 0 4px #f6b800,
    0 0 50px 8px rgba(255, 200, 40, 0.85),
    0 20px 50px rgba(0, 0, 0, 0.5);
  animation: mup 0.6s cubic-bezier(0.3, 1.4, 0.5, 1);
  color: #3b2a00;
}
#mCard .cong {
  font:
    800 clamp(1.3rem, 7.4vw, 2.4rem)/1.1 "Bricolage Grotesque",
    sans-serif;
  white-space: nowrap;
  background: linear-gradient(90deg, #e8590c, #d6336c, #7048e8, #1c7ed6, #2f9e44, #e8590c);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: rainbow 3s linear infinite;
  filter: drop-shadow(0 2px 0 #fff);
}
@keyframes rainbow {
  to {
    background-position: 300% 0;
  }
}
#mCard h3 {
  font-size: 1.35rem;
  margin: 8px 0 4px;
  color: #2b1d00;
}
#mCard .gift {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: #4a3500;
}
#mCard .meal {
  display: inline-block;
  margin: 2px 0 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2fa84f, #1f7a3a);
  color: #fff;
  font:
    800 1.5rem "Bricolage Grotesque",
    sans-serif;
  box-shadow:
    0 4px 0 #14562a,
    0 0 22px rgba(47, 168, 79, 0.7);
  animation: pulse 1.1s ease-in-out infinite alternate;
}
@keyframes pulse {
  to {
    transform: scale(1.07);
  }
}
#mCard .code {
  display: block;
  margin: 4px auto;
  padding: 10px 14px;
  background: #fff;
  border: 3px dashed #d6336c;
  border-radius: 14px;
  font:
    800 1.7rem/1.1 "Bricolage Grotesque",
    monospace;
  letter-spacing: 0.12em;
  color: #1b1b1b;
}
#mCard .btn {
  font-size: 1.15rem;
  padding: 12px 30px;
  background: #d6336c;
  color: #fff;
  box-shadow: 0 4px 0 #9c1f4c;
}
#mFx {
  position: fixed;
  inset: 0;
  z-index: 85;
  pointer-events: none;
  overflow: hidden;
}
#mFx[hidden] {
  display: none;
}
#mOv {
  overflow: hidden;
}
#mOv::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  width: 170vmax;
  height: 170vmax;
  margin: -85vmax 0 0 -85vmax;
  background: repeating-conic-gradient(rgba(255, 228, 94, 0.3) 0 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 60%);
  mask: radial-gradient(circle, #000 8%, transparent 60%);
  animation: rays 24s linear infinite;
}
@keyframes rays {
  to {
    transform: rotate(360deg);
  }
}
/* Reward unlock celebration */
#uOv {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(24, 110, 55, 0.94), rgba(3, 16, 9, 0.97) 74%);
  opacity: 0;
  animation: uIn 0.35s forwards;
}
#uOv.out {
  animation: uOut 0.3s forwards;
}
@keyframes uIn {
  to {
    opacity: 1;
  }
}
@keyframes uOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
#uOv .ur {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 170vmax;
  height: 170vmax;
  margin: -85vmax 0 0 -85vmax;
  background: repeating-conic-gradient(rgba(255, 228, 94, 0.3) 0 8deg, transparent 8deg 16deg);
  -webkit-mask: radial-gradient(circle, #000 6%, transparent 58%);
  mask: radial-gradient(circle, #000 6%, transparent 58%);
  opacity: 0;
  animation:
    rays 28s linear infinite,
    uFade 1s 1.5s forwards;
  pointer-events: none;
}
@keyframes uFade {
  to {
    opacity: 1;
  }
}
#uOv .ub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  max-width: 360px;
}
#uOv .us {
  position: relative;
  width: 240px;
  height: 220px;
  display: grid;
  place-items: center;
}
#uOv .lk {
  overflow: visible;
  position: absolute;
  width: 128px;
  height: 154px;
  animation:
    uShake 0.9s 0.3s both,
    uBreak 0.4s 1.5s forwards;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}
#uOv .shk {
  transform-origin: 72px 52px;
  animation: uOpen 0.35s 1.1s cubic-bezier(0.3, 1.6, 0.5, 1) forwards;
}
@keyframes uShake {
  0% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(-6deg);
  }
  20% {
    transform: rotate(6deg);
  }
  30% {
    transform: rotate(-9deg);
  }
  42% {
    transform: rotate(9deg);
  }
  55% {
    transform: rotate(-12deg) scale(1.06);
  }
  68% {
    transform: rotate(12deg) scale(1.08);
  }
  82% {
    transform: rotate(-5deg) scale(1.1);
  }
  100% {
    transform: rotate(0) scale(1.1);
  }
}
@keyframes uOpen {
  to {
    transform: translateY(-16px) rotate(32deg);
  }
}
@keyframes uBreak {
  0% {
    transform: scale(1.1);
    opacity: 1;
  }
  30% {
    transform: scale(1.35);
    opacity: 1;
    filter: brightness(2.2);
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}
#uOv .fl {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  animation: uFlash 0.6s 1.5s ease-out forwards;
}
@keyframes uFlash {
  0% {
    opacity: 0.95;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(9);
  }
}
#uOv .lm {
  position: absolute;
  width: 150px;
  height: 150px;
  opacity: 0;
  transform: scale(0);
  animation:
    uPop 0.75s 1.5s cubic-bezier(0.2, 1.7, 0.4, 1) forwards,
    uBob 2.6s 2.3s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(255, 228, 94, 0.85));
}
@keyframes uPop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-60deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes uBob {
  50% {
    transform: translateY(-9px) scale(1.04);
  }
}
#uOv .rg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  margin: -45px;
  border-radius: 50%;
  border: 4px solid #ffe45e;
  opacity: 0;
  animation: uRing 1.1s ease-out forwards;
}
@keyframes uRing {
  0% {
    opacity: 0.9;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(3.4);
  }
}
#uOv .sp {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  opacity: 0;
  animation: uSpark 1.2s ease-out forwards;
}
@keyframes uSpark {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.1);
  }
}
#uOv .fall {
  position: absolute;
  top: -70px;
  width: 34px;
  height: 34px;
  opacity: 0;
  animation: uFall linear forwards;
  pointer-events: none;
}
@keyframes uFall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
  100% {
    opacity: 1;
    transform: translateY(112vh) rotate(var(--r));
  }
}
#uOv h2 {
  margin: 6px 0 4px;
  font:
    800 clamp(1.8rem, 9vw, 2.6rem)/1.05 "Bricolage Grotesque",
    sans-serif;
  background: linear-gradient(90deg, #ffe45e, #fff, #ffe45e, #fff, #ffe45e);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation:
    uRise 0.6s 1.9s forwards,
    uShine 2.4s 2.2s linear infinite;
}
@keyframes uShine {
  to {
    background-position: 300% 0;
  }
}
@keyframes uRise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#uOv p {
  margin: 0 0 16px;
  opacity: 0;
  font-weight: 600;
  font-size: 1.02rem;
  animation: uRise 0.6s 2.15s forwards;
}
#uOv .chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 10px;
  border-radius: 99px;
  background: #ffe45e;
  color: #1b2a1f;
  font-weight: 800;
}
#uOv .btn {
  opacity: 0;
  background: #ffe45e;
  color: #1b2a1f;
  font-size: 1.1rem;
  padding: 13px 30px;
  box-shadow:
    0 5px 0 #b8940a,
    0 0 26px rgba(255, 228, 94, 0.55);
  animation:
    uRise 0.6s 2.4s forwards,
    pulse 1.1s 3s ease-in-out infinite alternate;
}
@keyframes rpop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}
.btn.rpop {
  animation: rpop 0.6s both;
}
#rNote .panel.glow {
  animation: uGlow 1s ease-in-out 3;
  border-color: #f6c21b;
}
@keyframes uGlow {
  50% {
    box-shadow:
      0 0 0 6px rgba(246, 194, 27, 0.35),
      0 0 28px rgba(246, 194, 27, 0.6);
  }
}
#uOv .ucode {
  opacity: 0;
  margin: 0 0 16px;
  padding: 10px 22px;
  background: #fff;
  color: #1b1b1b;
  border: 3px dashed #d6336c;
  border-radius: 14px;
  font:
    800 1.7rem/1.1 "Bricolage Grotesque",
    monospace;
  letter-spacing: 0.12em;
  animation: uRise 0.6s 1.05s forwards;
  user-select: all;
}
#uOv.rd .ur {
  animation-delay: 0s, 0.1s;
}
#uOv.rd .fl {
  animation-delay: 0.1s;
}
#uOv.rd .lm {
  animation-delay: 0.1s, 0.9s;
}
#uOv.rd h2 {
  animation-delay: 0.5s, 0.8s;
}
#uOv.rd p {
  animation-delay: 0.75s;
}
#uOv.rd .btn {
  animation-delay: 1.35s, 1.95s;
}
@media (prefers-reduced-motion: reduce) {
  #uOv * {
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
  }
}

@keyframes mup {
  from {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.heroimg {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 16px;
  height: 62vh;
  min-height: 360px;
  max-height: 540px;
  background: #1f4d2b;
}
.heroimg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.hs {
  position: absolute;
  inset: 0;
}
.hs img,
.hs video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 1.4s ease,
    transform 7s ease-out;
}
.hs .on {
  opacity: 1;
  transform: scale(1);
}
.hs .vw {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  overflow: hidden;
  background: #0d1f12;
}
.hs .vw.on {
  opacity: 1;
}
.hs .vw video {
  opacity: 1;
  transform: none;
  transition: none;
}
.hs .vb {
  display: none;
  opacity: 1;
  transform: scale(1.25);
  filter: blur(26px) brightness(0.7);
  transition: none;
}
.hs .land .vb {
  display: block;
}
.hs .land video {
  object-fit: contain;
}
.hdots {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 16px;
  display: flex;
  gap: 6px;
}
.hdots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}
.hdots button.on {
  background: #fff;
  width: 22px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .hs img,
  .hs video {
    transition: opacity 1.4s ease;
    transform: none !important;
  }
}
.heroimg .ov {
  z-index: 2;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(10, 25, 14, 0.9) 0%,
    rgba(10, 25, 14, 0.55) 48%,
    rgba(10, 25, 14, 0.12) 100%
  );
}
.heroimg h1 {
  font-size: clamp(2.3rem, 8vw, 4.2rem);
  max-width: 12ch;
  color: #fff;
  margin: 0;
}
.heroimg p {
  margin: 0;
  max-width: 44ch;
  font-size: 1.05rem;
}
.about p {
  max-width: 62ch;
  margin: 0 0 12px;
}
.about h3 {
  margin: 0 0 8px;
}
.steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 10px;
}
.steps div {
  background: var(--mint);
  border-radius: 12px;
  padding: 12px;
}

#gm {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(6, 16, 9, 0.86);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: gfade 0.3s ease-out;
}
@keyframes gfade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.gbox {
  position: relative;
  width: min(96vw, 540px);
  max-height: 96vh;
  overflow: hidden;
  background: var(--card);
  border: 3px solid var(--lemon);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  animation: gpop 0.45s cubic-bezier(0.2, 1.3, 0.4, 1);
}
@keyframes gpop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.ghead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ghead h3 {
  flex: 1;
  font-size: 1.4rem;
}
.gstat {
  font-weight: 800;
  color: var(--leaf);
}
.gx {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  border: 0;
  font-size: 1rem;
}
.gcard .gart {
  width: 70px;
  height: 70px;
  margin-bottom: 6px;
}
.gcard .gart svg,
.gcard .gart img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.tbar {
  height: 10px;
  border-radius: 99px;
  background: var(--mint);
  overflow: hidden;
  margin-bottom: 12px;
}
.tbar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f6d743, #e08a00);
}
.th {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}
.hl {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 50% 50% 18px 18px;
  background: radial-gradient(circle at 50% 30%, #3a2a1a, #1d140b);
  padding: 0;
}
.hl .mound {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(#6b4a2a, #4a321b);
  border-radius: 50% 50% 0 0/40% 40% 0 0;
  z-index: 2;
}
.hl .lm {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 16%;
  top: 6%;
  animation: lup 0.22s ease-out;
  z-index: 1;
  pointer-events: none;
}
.hl .lm svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.4));
}
.hl .lm img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
}
.hl .lm.gold img {
  filter: drop-shadow(0 0 10px #ffd34d) drop-shadow(0 0 22px #f6b800);
}
.pen {
  position: absolute;
  left: 50%;
  top: 28%;
  z-index: 5;
  transform: translateX(-50%);
  color: #ff5a5f;
  font:
    800 1.5rem "Bricolage Grotesque",
    sans-serif;
  text-shadow:
    0 2px 0 #fff,
    0 0 8px #fff;
  pointer-events: none;
  white-space: nowrap;
}
.th.shake {
  animation: shk 0.25s;
}
@keyframes shk {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
.hl .lm.gold svg {
  filter: drop-shadow(0 0 10px #ffd34d) hue-rotate(-12deg) saturate(2) brightness(1.1);
}
@keyframes lup {
  from {
    transform: translateY(80%) scale(0.7);
  }
  to {
    transform: none;
  }
}
.jd {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f6d743;
  z-index: 3;
  pointer-events: none;
}
.mcw {
  position: relative;
  margin: 6px 0 18px;
}
.mcar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  outline-offset: 2px;
  scroll-behavior: smooth;
}
.mcar::-webkit-scrollbar {
  display: none;
}
.mcar figure {
  flex: 0 0 min(74%, 300px);
  margin: 0;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  background: var(--mint);
}
.mcar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mcar figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 38px 14px 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  background: linear-gradient(transparent, rgba(10, 25, 14, 0.86));
}
.mcb {
  position: absolute;
  top: calc(50% - 6px);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #1f4d2b;
  font-size: 1.7rem;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: none;
  padding: 0 0 3px;
}
.mcb.prev {
  left: 8px;
}
.mcb.next {
  right: 8px;
}
.mcb:disabled {
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) and (min-width: 700px) {
  .mcb {
    display: block;
  }
  .mcar figure {
    flex-basis: 300px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mcar {
    scroll-behavior: auto;
  }
}
.maps {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 0 8px;
  flex-wrap: nowrap;
}
@media (max-width: 600px) {
  .gbox {
    padding: 10px;
  }
  .ghead {
    margin-bottom: 6px;
  }
  .ghead h3 {
    font-size: 1.1rem;
    line-height: 1.15;
  }
  .vrow {
    margin: 0 0 6px;
  }
  .maps {
    margin-bottom: 6px;
  }
  .maps button {
    padding: 4px 12px;
    font-size: 0.85rem;
  }
  #gStage .fh {
    display: none;
  }
}
@media (max-width: 600px) and (max-height: 700px) {
  .vrow {
    display: none !important;
  }
}
#gm.fs {
  padding: 0;
  place-items: stretch;
}
#gm.fs .gbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: none;
}
#gm.fs .ghead {
  margin-bottom: 4px;
}
#gm.fs .ghead h3 {
  font-size: 1.05rem;
  line-height: 1.1;
}
#gm.fs .vrow {
  display: none;
}
#gm.fs #gStage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#gm.fs .maps {
  margin: 0 0 6px;
}
#gm.fs .maps button {
  padding: 4px 12px;
  font-size: 0.85rem;
}
#gm.fs .fh {
  display: none;
}
.maps button {
  font-weight: 700;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--card, #fffdf2);
  color: var(--ink, #1d3a24);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.maps button[aria-pressed="true"] {
  background: #ffd21f;
  color: #2b2300;
  border-color: #c79a00;
}
#fc {
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: min(400px, calc((100vh - 230px) * 0.6667));
  height: auto;
  border-radius: 16px;
  border: 3px solid var(--line);
  touch-action: none;
  cursor: pointer;
  background: #7ed3f7;
}
.gwin {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 35%, rgba(130, 86, 0, 0.94), rgba(8, 16, 10, 0.95));
  overflow: hidden;
  animation: gfade 0.35s;
}
.gwin[hidden] {
  display: none;
}
.gwin h2 {
  font-size: 2.8rem;
  color: #ffe45e;
  text-shadow: 0 3px 0 #8a5a00;
  letter-spacing: 0.04em;
  margin: 0;
}
.gwin p {
  color: #fff;
  margin: 0 0 10px;
}
.gwin .btn {
  background: #ffe45e;
  color: #1b2a1f;
  padding: 12px 34px;
  font-size: 1.1rem;
}
.gwin .big {
  font:
    800 2rem "Bricolage Grotesque",
    sans-serif;
  color: #fff;
}
.crown {
  width: 150px;
  height: 120px;
  animation:
    crown 0.9s cubic-bezier(0.2, 1.2, 0.4, 1) both,
    shine 1.6s ease-in-out 0.9s infinite alternate;
}
.crown.lem {
  animation: none;
  filter: none;
  width: 110px;
  height: 110px;
}
@keyframes crown {
  0% {
    transform: translateY(-170px) rotate(-25deg) scale(0.5);
    opacity: 0;
  }
  65% {
    transform: translateY(10px) rotate(6deg) scale(1.12);
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes shine {
  from {
    filter: drop-shadow(0 6px 14px rgba(255, 200, 40, 0.5));
  }
  to {
    filter: drop-shadow(0 6px 30px rgba(255, 235, 120, 1));
  }
}
.cf {
  position: absolute;
  top: 0;
  border-radius: 2px;
  pointer-events: none;
}
.form .full {
  grid-column: 1/-1;
  justify-self: start;
}
.form label.full,
.form div.full {
  justify-self: stretch;
}
@media (min-width: 900px) {
  body {
    font-size: 17px;
  }
  .wrap {
    max-width: 1140px;
    padding: 0 32px;
  }
  header .wrap {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  header .top {
    display: contents;
  }
  .logo {
    order: 1;
  }
  .hr {
    order: 3;
  }
  nav {
    order: 2;
    flex: 1;
    justify-content: center;
    padding: 6px 0;
  }
  nav button {
    font-size: 1rem;
    padding: 6px 16px;
  }
  .tab {
    padding: 32px 0 70px;
  }
  .heroimg {
    height: 540px;
    max-height: none;
    border-radius: 26px;
  }
  .heroimg .ov {
    padding: 44px 56px;
  }
  .heroimg h1 {
    font-size: 4.6rem;
    max-width: 14ch;
  }
  .heroimg p {
    font-size: 1.2rem;
    max-width: 48ch;
  }
  .hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
    align-items: start;
  }
  .games {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  #menuList {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
    align-items: start;
  }
  #t-order.on {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 0 28px;
    align-items: start;
  }
  #t-order > h2,
  #t-order > p {
    grid-column: 1/-1;
  }
  .onotes {
    grid-column: 1/-1;
    grid-row: 3;
  }
  #orderItems {
    grid-column: 1;
    grid-row: 4 / span 2;
  }
  #orderTotal {
    grid-column: 2;
    grid-row: 4;
    margin-top: 0;
  }
  #orderForm {
    grid-column: 2;
    grid-row: 5;
    max-width: none;
  }
  #t-reserve .form {
    max-width: 760px;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  #t-about.on {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }
  #t-about > h2,
  #t-about > p {
    grid-column: 1/-1;
  }
  #t-about .panel {
    margin-top: 0 !important;
  }
  .gbox {
    width: min(92vw, 620px);
  }
}
.cgrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cgrid .panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.cgrid h3 {
  margin: 0;
}
.cgrid p {
  margin: 0;
}
.sbanner {
  background: var(--lemon);
  color: #1b2a1f;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 12px;
  text-align: center;
}
.row.soldout {
  opacity: 0.5;
}
.row.soldout .qty button {
  pointer-events: none;
}
.sold {
  background: #c0392b;
  color: #fff;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 0.78rem;
  margin-left: 8px;
  font-weight: 700;
}
.hr {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mbtn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
}
.mbtn svg,
.gx svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 480px) {
  .logo {
    font-size: 1.08rem;
    gap: 6px;
  }
  .pts {
    padding: 3px 9px;
    font-size: 0.76rem;
    line-height: 1.35;
    white-space: nowrap;
  }
  .mbtn {
    width: 32px;
    height: 32px;
  }
  .mbtn svg {
    width: 17px;
    height: 17px;
  }
  .hr {
    gap: 6px;
  }
}
.total .tot {
  display: flex;
  justify-content: space-between;
  font:
    700 1.05rem "Nunito",
    sans-serif;
  padding: 2px 0;
}
.total .grand {
  font:
    800 1.6rem "Bricolage Grotesque",
    sans-serif;
  border-top: 2px solid var(--ink);
  margin-top: 6px;
  padding-top: 6px;
}
#risk {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 14px;
  background: radial-gradient(circle at 50% 45%, rgba(150, 0, 0, 0.6), rgba(0, 0, 0, 0.93));
  animation: rbg 0.9s ease-in-out infinite alternate;
}
@keyframes rbg {
  from {
    background-color: rgba(60, 0, 0, 0.2);
  }
  to {
    background-color: rgba(160, 0, 0, 0.45);
  }
}
.rbox {
  width: min(94vw, 420px);
  text-align: center;
  color: #fff;
  padding: 26px 20px 22px;
  border-radius: 22px;
  background: linear-gradient(#2a0707, #4a0b0b);
  border: 3px solid #ff3b30;
  box-shadow:
    0 0 0 6px rgba(255, 59, 48, 0.25),
    0 0 60px #ff3b30;
  animation:
    rpop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1),
    rshake 0.5s 0.45s,
    rglow 1s 1s ease-in-out infinite alternate;
}
.rbox::before {
  content: "";
  display: block;
  height: 10px;
  margin: -26px -20px 18px;
  border-radius: 19px 19px 0 0;
  background: repeating-linear-gradient(-45deg, #ffd60a 0 14px, #111 14px 28px);
}
.rbox h2 {
  font-size: 2.4rem;
  color: #ff4d42;
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(255, 59, 48, 0.9);
  margin: 6px 0;
}
.rbox p {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.rbal {
  opacity: 0.85;
}
.rico {
  width: 84px;
  height: 84px;
  animation: rflash 0.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 14px #ff3b30);
}
.btn.rbad {
  background: #e63946;
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 59, 48, 0.8);
  font-size: 1.05rem;
  padding: 12px 20px;
}
.rbox .acts {
  justify-content: center;
}
@keyframes rpop {
  from {
    transform: scale(0.3) rotate(-6deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes rshake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-10px);
  }
  40% {
    transform: translateX(9px);
  }
  60% {
    transform: translateX(-7px);
  }
  80% {
    transform: translateX(5px);
  }
}
@keyframes rflash {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(1.14);
    opacity: 0.75;
  }
}
@keyframes rglow {
  from {
    box-shadow:
      0 0 0 6px rgba(255, 59, 48, 0.25),
      0 0 40px #ff3b30;
  }
  to {
    box-shadow:
      0 0 0 10px rgba(255, 59, 48, 0.4),
      0 0 90px #ff3b30;
  }
}
.stakefx {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 120;
  font:
    800 3.2rem "Bricolage Grotesque",
    sans-serif;
  color: #ff3b30;
  text-shadow:
    0 0 18px rgba(255, 59, 48, 0.9),
    0 3px 0 #5a0000;
  pointer-events: none;
  white-space: nowrap;
}
.vrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 10px;
  font-weight: 700;
  color: var(--mute);
  font-size: 0.9rem;
}
.vrow input {
  flex: 1;
  accent-color: var(--leaf);
  min-width: 0;
}
#oTrack,
#rTrack,
#oOff,
#rOff {
  margin-bottom: 12px;
}
#nBan {
  position: fixed;
  z-index: 130;
  left: 50%;
  top: calc(12px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  width: min(94vw, 420px);
  background: #fff;
  color: #1b2a1f;
  border-radius: 20px;
  padding: 14px 14px 14px 16px;
  box-shadow:
    0 18px 50px rgba(20, 30, 20, 0.28),
    0 2px 8px rgba(20, 30, 20, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2px 12px;
  align-items: center;
  overflow: hidden;
  animation: nin 0.45s cubic-bezier(0.2, 1.3, 0.4, 1);
}
#nBan::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(#34c759, #1f9d46);
}
#nBan[data-k="cancelled"]::before {
  background: linear-gradient(#ff6b6b, #e03131);
}
#nBan .ni {
  grid-row: 1/3;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: linear-gradient(145deg, #eafbef, #d3f5de);
}
#nBan[data-k="cancelled"] .ni {
  background: linear-gradient(145deg, #fff0f0, #ffdada);
}
#nBan #nT {
  font:
    700 1.05rem/1.25 "Bricolage Grotesque",
    system-ui,
    sans-serif;
  color: #111;
}
#nBan #nB {
  grid-column: 2;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #5a645c;
}
#nBan .btn {
  grid-column: 3;
  grid-row: 1/3;
  padding: 9px 18px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: none;
  margin: 0;
}
#nBan[hidden] {
  display: none;
}
#nBan button {
  justify-self: end;
  margin-top: 4px;
}
@keyframes nin {
  from {
    transform: translate(-50%, -120%);
  }
  to {
    transform: translate(-50%, 0);
  }
}
a[href^="tel"]:not(.btn),
a[x-apple-data-detectors]:not(.btn) {
  color: inherit;
  text-decoration: none;
}
.phone {
  display: inline-block;
  background: #1f4d2b;
  color: #fff;
  border: 2px solid #3f9e57;
  font:
    800 1.2rem/1 "Bricolage Grotesque",
    sans-serif;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-radius: 12px;
  -webkit-text-fill-color: #fff;
}
.lb {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.lb li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
}
.lb li b.r {
  width: 2em;
  text-align: center;
}
.lb li span.n {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb li.me {
  background: #fff3b0;
  font-weight: 700;
}
.lb li:nth-child(-n + 3) b.r {
  font-size: 1.15em;
}
#lbm {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.7);
}
#lbm[hidden] {
  display: none;
}
#lbm .panel {
  max-width: 380px;
  width: 100%;
  display: grid;
  gap: 10px;
}
.gwin .lbw {
  width: 100%;
  max-width: 340px;
  max-height: 34vh;
  overflow: auto;
  text-align: left;
  margin: 4px 0 8px;
}
.gwin .lb li {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.gwin .lb li.me {
  background: #ffe45e;
  color: #1b2a1f;
}
.gwin .lbh {
  color: #ffe45e;
  font-weight: 800;
  margin: 0 0 4px;
}
.gwin {
  overflow: auto;
}
.gwin.lbmode {
  justify-content: flex-start;
  padding-top: 14px;
}
.gwin.lbmode .crown {
  width: 54px;
  height: 54px;
}
.gwin.lbmode h2 {
  font-size: 1.9rem;
}
.gwin.lbmode .big {
  font-size: 1.4rem;
}
.gwin.lbmode .lbw {
  max-height: none;
  overflow: visible;
}
.gwin.lbmode .lb li {
  padding: 4px 10px;
}
.gwin.lbmode .crown {
  flex: none;
}
.gwin.lbmode p {
  margin: 0 0 4px;
}
#unm {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.7);
}
#unm[hidden] {
  display: none;
}
#unm .panel {
  max-width: 380px;
  width: 100%;
  display: grid;
  gap: 10px;
}
#unm input {
  width: 100%;
}
#unErr {
  color: #b3261e;
  min-height: 1.2em;
  margin: 0;
}
.tsel {
  display: flex;
  gap: 6px;
}
.tsel select {
  flex: 1;
  min-width: 0;
}
/* ===== game makeovers: Match, Spin, Trivia ===== */
.qzBadge {
  font-size: 3.2rem;
  line-height: 1;
  display: inline-block;
  filter: drop-shadow(0 6px 10px rgba(20, 30, 20, 0.25));
  animation: qzBounce 1.8s ease-in-out infinite;
}
@keyframes qzBounce {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg) scale(1);
  }
  50% {
    transform: translateY(-12px) rotate(8deg) scale(1.08);
  }
}
.mg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0, rgba(246, 215, 67, 0.25), transparent 70%), var(--mint);
}
.mc {
  aspect-ratio: 1;
  perspective: 700px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  animation: deal 0.55s cubic-bezier(0.2, 1.3, 0.4, 1) backwards;
  -webkit-tap-highlight-color: transparent;
}
.mc .in {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.3, 1.25, 0.5, 1);
  transform-style: preserve-3d;
}
.mc:active .in {
  transform: scale(0.95);
}
.mc.up .in,
.mc.ok .in {
  transform: rotateY(180deg) scale(1.04);
}
.mc .fr,
.mc .bk {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.28),
    inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}
.mc .bk {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 9px, transparent 9px 18px),
    linear-gradient(145deg, #37a352, #1b5a2d);
  border: 3px solid #f6d743;
}
.mc .bk img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.4));
}
.mc .fr {
  transform: rotateY(180deg);
  border: 3px solid #fff;
}
.mc .fr b {
  font-size: clamp(2rem, 10vw, 3.4rem);
  line-height: 1;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.25));
}
.mc.ok .fr {
  border-color: #f6d743;
  box-shadow:
    0 0 0 3px #2fa84f,
    0 0 18px 3px rgba(246, 215, 67, 0.9);
  animation: mpop 0.6s ease;
}
.mc.ok .bk {
  box-shadow: none;
}
.mc.no .in {
  animation: mshake 0.45s;
}
.mc .jd {
  top: 50%;
}
@keyframes deal {
  from {
    opacity: 0;
    transform: translateY(-34px) scale(0.6) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes mpop {
  40% {
    transform: rotateY(180deg) scale(1.18);
  }
}
@keyframes mshake {
  20% {
    transform: rotateY(180deg) translateX(-7px);
  }
  40% {
    transform: rotateY(180deg) translateX(7px);
  }
  60% {
    transform: rotateY(180deg) translateX(-5px);
  }
  80% {
    transform: rotateY(180deg) translateX(4px);
  }
}
@keyframes wave {
  40% {
    transform: translateY(-16px) scale(1.1);
  }
}
.mprog {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
}
.mprog i {
  width: 26px;
  height: 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.12);
  transition: all 0.4s;
}
.mprog i.on {
  background: linear-gradient(90deg, #f6d743, #e08a00);
  box-shadow: 0 0 10px rgba(246, 200, 40, 0.9);
  transform: scaleY(1.2);
}
.wheelwrap {
  position: relative;
  width: min(84vw, 360px);
  margin: 6px auto 12px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.4));
}
.wheelwrap svg#wh {
  width: 100%;
  display: block;
  overflow: visible;
}
#wh .bu {
  animation: bl 1s steps(1) infinite;
}
#wh .bu.b {
  animation-delay: 0.5s;
}
@keyframes bl {
  50% {
    fill: #7a5a14;
    opacity: 0.55;
  }
}
#wh.spinning .bu {
  animation-duration: 0.18s;
}
#wh.spinning .bu.b {
  animation-delay: 0.09s;
}
#wh.landed .bu {
  animation-duration: 0.3s;
}
#wwin {
  opacity: 0;
}
#wwin.flash {
  animation: wflash 0.35s ease-in-out 5 alternate;
}
@keyframes wflash {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
    filter: drop-shadow(0 0 8px #fff);
  }
}
#spinGo {
  display: block;
  margin: 0 auto;
  font-size: 1.3rem;
  padding: 13px 52px;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, #ff7a7a, #d6336c);
  color: #fff;
  border-radius: 999px;
  box-shadow:
    0 5px 0 #9c1f4c,
    0 10px 24px rgba(214, 51, 108, 0.45);
}
#joinBox .lnk {
  background: none;
  border: 0;
  color: var(--lime, #2d6a4f);
  text-decoration: underline;
  padding: 2px 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  width: auto;
  justify-self: start;
  box-shadow: none;
}
#spinGo:disabled {
  filter: grayscale(0.5);
  opacity: 0.7;
}
.qz {
  display: grid;
  gap: 10px;
}
.qtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.qcat {
  font-weight: 800;
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 99px;
  color: #fff;
  background: #1f4d2b;
}
.qcat.cM {
  background: linear-gradient(135deg, #f08c00, #e8590c);
}
.qcat.cJ {
  background: linear-gradient(135deg, #2f9e44, #1b6b30);
}
.qcat.cW {
  background: linear-gradient(135deg, #4c6ef5, #7048e8);
}
.qdots {
  display: flex;
  gap: 6px;
}
.qdots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.14);
}
.qdots i.c {
  background: #f6b800;
  box-shadow: 0 0 0 3px rgba(246, 184, 0, 0.35);
}
.qdots i.y {
  background: #2fa84f;
}
.qdots i.n {
  background: #e03131;
}
.qtime {
  height: 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.qtime i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #e03131, #f6b800 40%, #2fa84f);
}
.qq {
  font:
    800 1.3rem/1.28 "Bricolage Grotesque",
    sans-serif;
  margin: 4px 0 2px;
  min-height: 3.2em;
  display: flex;
  align-items: center;
}
.opts {
  display: grid;
  gap: 9px;
  margin: 2px 0;
}
.opts button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 11px 12px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 3px 0 var(--line);
  transition:
    transform 0.12s,
    background 0.2s,
    border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.opts button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--line);
}
.opts .ol {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--leaf);
  font-weight: 800;
}
.opts .good {
  border-color: #2fa84f;
  background: #e3f8e8;
  box-shadow: 0 3px 0 #2fa84f;
  animation: qpop 0.45s;
}
.opts .good .ol {
  background: #2fa84f;
  color: #fff;
}
.opts .bad {
  border-color: #e03131;
  background: #ffe9e9;
  box-shadow: 0 3px 0 #e03131;
  animation: mshake2 0.4s;
}
.opts .bad .ol {
  background: #e03131;
  color: #fff;
}
.opts .dim {
  opacity: 0.5;
}
@keyframes qpop {
  40% {
    transform: scale(1.04);
  }
}
@keyframes mshake2 {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
.qfact {
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff8d6;
  border: 2px dashed #f0c000;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #3a2a00;
  animation: qpop 0.4s;
}
.qfact b.ok {
  color: #1b7a34;
}
.qfact b.no {
  color: #c92a2a;
}
.qnext {
  width: 100%;
  background: linear-gradient(180deg, #37a352, #1f7a3a);
  color: #fff;
  box-shadow: 0 4px 0 #14562a;
}
.qstreak {
  text-align: center;
  font-weight: 800;
  color: #e8590c;
}
/* Category headings on the Menu and Order tabs (yellow in dark mode) */
#menuList .mcat > h3,
#orderItems h3 {
  color: var(--cat);
}
/* Order tab: recent orders folded into a dropdown */
#oTrack.trk {
  padding: 0;
}
#oTrackD > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  border-radius: 16px;
}
#oTrackD > summary::-webkit-details-marker {
  display: none;
}
#oTrackD > summary .tk {
  flex: 1;
  min-width: 0;
}
#oTrackD > summary .tk small {
  display: block;
  color: var(--mute);
  font-size: 0.88rem;
}
#oTrackD > summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0 4px 4px 2px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
#oTrackD[open] > summary::after {
  transform: rotate(-135deg);
  margin-bottom: -4px;
}
#oTrackD[open] > summary {
  border-bottom: 1px dashed var(--line);
  border-radius: 16px 16px 0 0;
}
#oTrackD[open] {
  padding-bottom: 14px;
}
#oTrackD > :not(summary) {
  margin-left: 18px;
  margin-right: 18px;
}
#oTrackD > p.mute {
  margin: 10px 18px 0 !important;
}
/* Maintenance mode screen */
body.maint {
  overflow: hidden;
}
#maint {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px))
    max(24px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--lemon) 45%, transparent), transparent 55%),
    var(--bg);
  color: var(--ink);
  text-align: center;
}
#maint .mtbox {
  max-width: 460px;
  display: grid;
  justify-items: center;
  gap: 12px;
}
#maint .mtart {
  width: 150px;
  height: 200px;
  margin-bottom: 4px;
}
#maint .mtart img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 90%;
  animation: idle 2.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 14px rgba(20, 40, 20, 0.25));
}
#maint h1 {
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  line-height: 1.12;
  text-wrap: balance;
}
#maint p {
  margin: 0;
  max-width: 40ch;
  color: var(--mute);
}
#maint .mtmsg {
  color: var(--ink);
  font-weight: 700;
  background: var(--card);
  border: 2px solid var(--lemon);
  border-radius: 14px;
  padding: 10px 16px;
}
#maint .mtc b {
  color: var(--ink);
  white-space: nowrap;
}
#maint .acts {
  justify-content: center;
  margin-top: 4px;
}
#maint .mtpv {
  background: var(--leaf);
  color: var(--on-leaf);
  font-weight: 700;
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 0.85rem;
}
@media (prefers-reduced-motion: reduce) {
  #maint .mtart img {
    animation: none;
  }
}
/* Rewards tab: "My vouchers" and "My orders" as dropdowns */
details.dd > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin: 26px 0 6px;
  padding: 4px 0;
  border-radius: 10px;
}
details.dd > summary::-webkit-details-marker {
  display: none;
}
details.dd > summary h2.s {
  margin: 0;
}
details.dd > summary .ddc {
  color: var(--mute);
  font-weight: 700;
  font-size: 0.92rem;
}
details.dd > summary .ddc.hot {
  background: var(--lemon);
  color: #1b2a1f;
  border-radius: 99px;
  padding: 2px 10px;
}
details.dd > summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
details.dd[open] > summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
/* ===== Lemon counter (top right): revamped look + change animation ===== */
.srv {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.pts {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lemon);
  color: #1b2a1f;
  border: 2px solid #1f4d2b;
  border-radius: 99px;
  padding: 2px 12px 2px 2px;
  box-shadow: 0 3px 0 #1f4d2b;
  font: 800 1rem/1 "Bricolage Grotesque", sans-serif;
  white-space: nowrap;
  transform-origin: 70% 50%;
}
.pts .pl {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fffbe3;
  border: 2px solid #1f4d2b;
  display: grid;
  place-items: center;
}
.pts .pl svg {
  width: 22px;
  height: 22px;
}
.pts #ptsN {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.pts .pu {
  font: 700 0.78rem/1 Nunito, sans-serif;
  opacity: 0.75;
}
/* gain: pop + lemon spins + sparkles; loss: little shake */
.pts.gain {
  animation: ptsPop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.pts.gain .pl svg {
  animation: ptsSpin 0.75s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.pts.loss {
  animation: ptsShake 0.45s ease;
  border-color: #c0392b;
  box-shadow: 0 3px 0 #c0392b;
}
@keyframes ptsPop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.18) rotate(-3deg);
  }
  65% {
    transform: scale(0.96) rotate(1deg);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes ptsSpin {
  from {
    transform: rotate(-30deg) scale(0.7);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}
@keyframes ptsShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
}
/* the +N / −N bubble drops out underneath the pill */
.ptsfx {
  position: absolute;
  right: 6px;
  top: calc(100% + 4px);
  z-index: 6;
  padding: 3px 10px;
  border-radius: 99px;
  border: 2px solid currentColor;
  background: #fff;
  font: 800 0.9rem/1.1 "Bricolage Grotesque", sans-serif;
  pointer-events: none;
  animation: ptsDrop 1.4s ease forwards;
}
.ptsfx.up {
  color: #1f7a3a;
}
.ptsfx.dn {
  color: #c0392b;
}
@keyframes ptsDrop {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.6);
  }
  18% {
    opacity: 1;
    transform: translateY(2px) scale(1.08);
  }
  30% {
    transform: translateY(0) scale(1);
  }
  75% {
    opacity: 1;
    transform: translateY(6px);
  }
  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}
/* sparkles burst out of the lemon badge */
.pts .psk {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  background: #ffcc00;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  pointer-events: none;
  animation: ptsSpark 0.8s ease-out forwards;
}
@keyframes ptsSpark {
  0% {
    opacity: 1;
    transform: rotate(var(--a)) translateY(0) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) scale(1.4);
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pts .psk {
    background: #fff3a0;
  }
}
:root[data-theme="dark"] .pts .psk {
  background: #fff3a0;
}
@media (max-width: 480px) {
  .pts {
    font-size: 0.86rem;
    padding: 2px 10px 2px 2px;
    gap: 5px;
    line-height: 1;
  }
  .pts .pl {
    width: 25px;
    height: 25px;
  }
  .pts .pl svg {
    width: 18px;
    height: 18px;
  }
  .pts .pu {
    display: none; /* the lemon badge says it on small phones */
  }
}
@media (prefers-reduced-motion: reduce) {
  .pts.gain,
  .pts.loss,
  .pts.gain .pl svg {
    animation: none;
  }
  .ptsfx {
    animation: ptsFade 1.4s ease forwards;
  }
  @keyframes ptsFade {
    0%,
    75% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
}
