/* Rack It UES: styled after the "Pop In and Play" flyer.
   White ground with pink wavy stripes, royal blue type, a scalloped frame, cream mahjong tiles. */
:root {
  color-scheme: light;
  --white: #fffdfb;
  --pink: #f7d5dd;
  --pink-deep: #e9a9b9;
  --blue: #1d12b3;
  --blue-deep: #110a78;
  --blue-soft: #ecebfb;
  --ink: #16142c;
  --muted: #5d5a7a;
  --line: #e4e0f1;
  --cream: #fbf2df;
  --cream-shade: #efe2c4;
  --tile-gold: #e1a03a;
  --tile-red: #d43a2b;
  --tile-blue: #2341b8;
  --good: #11795a;
  --warn: #b4232a;
  --venmo: #008cff;
  --display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --stripes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cpath d='M25 0C25 60 55 100 55 160S25 260 25 320H78C78 260 108 220 108 160S78 60 78 0Z' fill='%23f7d5dd'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--white); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 500 18px/1.45 var(--sans);
  background: var(--white) var(--stripes) repeat;
}
main { max-width: 900px; margin: 0 auto; padding-block: 0 80px;
       padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: var(--blue); }
button { font-family: inherit; }

/* ---------- Hero: scalloped frame like the flyer ---------- */
.hero-wrap { position: relative; margin: 18px auto 0; max-width: 520px; padding: 58px 40px 64px; text-align: center; isolation: isolate; }
.hero-wrap svg.frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.brand { font: 800 13px/1 var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.levels-welcome { font: 700 18px/1.2 var(--sans); margin: 0 0 14px; }
.pop { font: 800 clamp(64px, 19vw, 104px)/.86 var(--display); color: var(--blue); text-transform: uppercase; margin: 16px 0 14px;
       letter-spacing: .5px; text-shadow: 0 0 0 transparent; text-wrap: balance; }
.join-us { font: 700 21px/1.2 var(--sans); margin: 0 0 8px; }
.next-date { font: 800 30px/1.1 var(--sans); color: var(--blue); margin: 0 0 14px; }
.times { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 0 0 14px; }
.times span { font: 700 16px/1 var(--sans); padding: 10px 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.times b { font: 800 30px/1 var(--sans); }
.venue-lines { font: 700 15px/1.45 var(--sans); text-transform: uppercase; letter-spacing: .5px; margin: 0; }
.venue-lines a { font-size: 13px; letter-spacing: 1px; }
.venue-note { font-size: 14px; color: var(--muted); margin: 10px auto 0; max-width: 220px; }
.dropin-bar { margin: 18px -16px 26px; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px));
              background: var(--blue); color: #fff; text-align: center; font: 700 19px/1.3 var(--sans); }

/* ---------- Mahjong tiles (cream faces, colored edges, like the flyer) ---------- */
.tile {
  --w: 30px; --edge: var(--tile-gold);
  position: relative; width: var(--w); height: calc(var(--w) * 1.3); border-radius: calc(var(--w) * .2);
  display: inline-grid; place-items: center; flex: none; overflow: hidden;
  background: linear-gradient(155deg, #fffaf0, var(--cream) 50%, var(--cream-shade));
  box-shadow: 0 calc(var(--w) * .12) 0 var(--edge), 0 calc(var(--w) * .12 + 3px) 6px rgba(20, 18, 60, .22), inset 0 0 0 1px rgba(0,0,0,.05);
  font: 900 calc(var(--w) * .62)/1 "Noto Serif SC", serif; color: var(--tile-red);
}
.tile.md { --w: 46px; } .tile.lg { --w: 64px; } .tile.xl { --w: 80px; }
.tile.e-red { --edge: var(--tile-red); } .tile.e-blue { --edge: var(--tile-blue); } .tile.e-gold { --edge: var(--tile-gold); }
.tile .dot { width: 44%; height: 44%; border-radius: 50%; background: var(--tile-blue); box-shadow: inset 0 0 0 calc(var(--w) * .05) #fff, 0 0 0 calc(var(--w) * .04) var(--tile-blue); }
.tile .ring { width: 58%; height: 58%; border-radius: 50%; background: radial-gradient(circle, var(--tile-red) 0 26%, #fff 27% 46%, var(--tile-blue) 47% 100%); }
.tile .dots { display: flex; gap: 6%; width: 80%; justify-content: center; }
.tile .dots i { width: 28%; aspect-ratio: 1; border-radius: 50%; background: var(--tile-blue); }
.tile .dots i:nth-child(2) { background: var(--tile-red); } .tile .dots i:nth-child(3) { background: var(--tile-gold); }
.tile .bam { width: 16%; height: 70%; border-radius: 3px; background:
  linear-gradient(var(--tile-blue) 0 30%, #fff 30% 34%, var(--tile-blue) 34% 64%, #fff 64% 68%, var(--tile-blue) 68%); }
.tile.empty { background: rgba(255,255,255,.6); box-shadow: none; border: 2px dashed var(--pink-deep); }
.tile.taken { background: var(--blue); box-shadow: 0 calc(var(--w) * .12) 0 var(--blue-deep); }
.tile.taken::after { content: ""; width: 42%; height: 42%; border-radius: 50%; background: var(--pink); }
.signed-up { margin: 0 0 8px; font-weight: 700; color: var(--blue); }
.tile.mine { box-shadow: 0 calc(var(--w) * .12) 0 var(--tile-red), 0 0 0 3px var(--blue), 0 0 14px rgba(29,18,179,.45); }
.tile.flip { animation: flipIn .8s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes flipIn { 0% { transform: rotateY(90deg) scale(.6); } 60% { transform: rotateY(-12deg) scale(1.1); } 100% { transform: none; } }

.cluster { position: relative; width: 170px; height: 150px; margin: 0 auto; }
.cluster .tile { position: absolute; animation: bob 4s ease-in-out infinite; }
.cluster .tile:nth-child(1) { left: 12px; top: 18px; transform: rotate(-12deg); }
.cluster .tile:nth-child(2) { left: 74px; top: 0; transform: rotate(10deg); animation-delay: -1s; }
.cluster .tile:nth-child(3) { left: 4px; top: 82px; transform: rotate(-4deg); animation-delay: -2s; }
.cluster .tile:nth-child(4) { left: 82px; top: 70px; transform: rotate(14deg); animation-delay: -3s; }
@keyframes bob { 50% { translate: 0 -5px; } }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 26px; text-align: center; }
.how div { display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 700; font-size: 15px;
           background: var(--white); border-radius: 14px; padding: 12px 6px; }
.how .num { font: 800 34px/1 var(--display); color: var(--blue); }

h2.section { font: 800 34px/1 var(--display); text-transform: uppercase; color: var(--blue); margin: 0 0 14px;
             display: flex; align-items: center; gap: 12px; }
h2.section::after { content: ""; flex: 1; height: 3px; border-radius: 2px; background: var(--blue); }

/* ---------- Three-fold session card ---------- */
.trifold {
  display: grid; grid-template-columns: 1fr; margin: 0 2px 26px; perspective: 1400px;
  border-radius: 20px; background: var(--white); border: 3px solid var(--blue);
  box-shadow: 0 10px 0 -4px var(--pink-deep), 0 16px 30px rgba(29, 18, 179, .14);
}
.panel { padding: 18px; background: var(--white); min-width: 0; }
.panel.p1 { border-radius: 17px 17px 0 0; color: #fff; display: flex; align-items: center; gap: 16px; background: var(--blue); }
.panel.p2, .panel.p3 { transform-origin: top center; animation: unfoldV .8s cubic-bezier(.2,.85,.25,1) both;
                       box-shadow: inset 0 12px 14px -12px rgba(29,18,179,.28); border-top: 2px dashed var(--line); }
.panel.p2 { animation-delay: calc(var(--i, 0) * .12s + .15s); }
.panel.p3 { animation-delay: calc(var(--i, 0) * .12s + .45s); border-radius: 0 0 17px 17px; }
.panel.p2:last-child { border-radius: 0 0 17px 17px; }
@keyframes unfoldV { from { transform: rotateX(-100deg); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes unfoldH { from { transform: rotateY(100deg); opacity: .2; } to { transform: none; opacity: 1; } }

.date-num { font: 800 58px/.85 var(--display); }
.date-txt { font: 700 14px/1 var(--sans); text-transform: uppercase; letter-spacing: 2px; opacity: .85; }
.date-day { font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; }
.time { font: 800 30px/1.05 var(--display); text-transform: uppercase; color: var(--blue); }
.place { color: var(--muted); margin: 4px 0 14px; font-size: 16px; }
.place a { font-weight: 700; }
.table-row { display: flex; flex-wrap: wrap; gap: 12px; }
.table-group { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 12px; border-radius: 12px; background: var(--blue-soft); }
.table-group small { font: 700 12px/1.25 var(--sans); text-transform: uppercase; letter-spacing: 1px; color: var(--blue); }
.table-group.private { background: #fdeef2; } .table-group.private small { color: var(--warn); }
.table-group .seats { display: flex; gap: 5px; }
.level-left { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 15px; font-weight: 700; }
.level-left .full { color: var(--warn); }

.date-where { font: 600 13px/1.3 var(--sans); opacity: .85; margin-left: auto; text-align: right; }
.slot { display: grid; gap: 14px; padding: 4px 0 18px; }
.slot + .slot { border-top: 2px dashed var(--line); padding-top: 18px; }
.slot-info, .slot-action { min-width: 0; }
.seat-line { margin: -4px 0 12px; font-weight: 600; }

/* ---------- Calendar ---------- */
.calendars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.month { background: var(--white); border: 3px solid var(--blue); border-radius: 18px; padding: 14px 12px 12px; }
.month-name { font: 800 26px/1 var(--display); text-transform: uppercase; color: var(--blue); text-align: center; margin-bottom: 10px; }
.dow, .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dow span { font: 700 12px/1 var(--sans); color: var(--muted); padding-bottom: 6px; }
.day { display: grid; place-items: center; aspect-ratio: 1; font: 600 15px/1 var(--sans); color: #b3afc8; border-radius: 50%; }
button.day { border: 0; cursor: pointer; font-weight: 800; font-size: 17px; color: #fff; background: var(--blue);
             box-shadow: 0 3px 0 var(--blue-deep); -webkit-tap-highlight-color: transparent; }
button.day.selected { background: var(--pink); color: var(--blue-deep); box-shadow: 0 0 0 3px var(--blue), 0 3px 0 3px var(--blue-deep); }
button.day.mine { position: relative; }
button.day.mine::after { content: ""; position: absolute; bottom: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--tile-gold); }
button.day:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 2px; }
.cal-key { text-align: center; margin: 10px 0 22px; line-height: 1.6;
           font-size: 14px; color: var(--muted); background: var(--white); border-radius: 12px; padding: 8px; }
.key-dot, .key-mine { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); }
.key-mine { width: 8px; height: 8px; background: var(--tile-gold); vertical-align: middle; }

@media (min-width: 720px) {
  .trifold { grid-template-columns: .8fr 3fr; }
  .slot { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .date-where { margin: 8px 0 0; text-align: center; }
  .panel.p1 { flex-direction: column; justify-content: center; text-align: center; gap: 6px; border-radius: 17px 0 0 17px; }
  .panel.p2, .panel.p3 { transform-origin: left center; animation-name: unfoldH; border-top: 0;
                         border-left: 2px dashed var(--line); box-shadow: inset 12px 0 14px -12px rgba(29,18,179,.28); }
  .panel.p3 { border-radius: 0 17px 17px 0; display: flex; flex-direction: column; justify-content: center; }
  .panel.p2:last-child { border-radius: 0 17px 17px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 60px; padding: 14px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 19px/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent;
}
.btn + .btn { margin-top: 12px; }
.btn:active { transform: translateY(3px) scale(.99); }
.btn:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 3px; }
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 5px 0 var(--blue-deep), 0 10px 18px rgba(29,18,179,.25); }
.btn-primary:active { box-shadow: 0 2px 0 var(--blue-deep); }
.btn-primary::after { /* shine sweep */
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -70%; } 100% { left: 130%; } }
.btn-outline { color: var(--blue); background: var(--white); border: 2.5px solid var(--blue); }
.btn-pink { color: var(--blue-deep); background: var(--pink); border: 2.5px solid var(--pink-deep); }
.btn-venmo { color: #fff; background: var(--venmo); box-shadow: 0 5px 0 #0064b7; }
.btn-ghost { color: var(--ink); background: transparent; border: 2px solid var(--line); font-weight: 600; }
.btn-danger { color: var(--warn); background: #fff; border: 2px solid var(--warn); }
.btn .badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.22); font-weight: 900; }
.link { background: none; border: 0; padding: 12px 4px; margin-top: 6px; color: var(--muted); font: 600 16px/1.3 var(--sans);
        text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.note { color: var(--muted); font-size: 15px; margin: 10px 0 0; text-align: center; }
.deadline { font-size: 15px; color: var(--warn); font-weight: 700; margin: -2px 0 12px; }
.status { display: flex; align-items: center; gap: 10px; font: 800 19px/1.25 var(--sans); margin-bottom: 12px; }
.status.in { color: var(--good); } .status.wait { color: var(--blue); } .status.full { color: var(--warn); }
.status .tile { --w: 26px; }

/* ---------- Banners ---------- */
.hello { text-align: center; margin: 0 0 20px; padding: 10px; border-radius: 14px; background: var(--white); color: var(--muted); font-size: 16px; }
.hello b { color: var(--ink); }
.promo { margin: 0 2px 22px; padding: 18px; border-radius: 18px; background: var(--white); border: 3px solid var(--blue);
         animation: pop .5s cubic-bezier(.2,.9,.3,1.3) both; }
.promo b { font-size: 20px; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Bottom sheet ---------- */
dialog.sheet {
  width: 100%; max-width: 560px; margin: auto auto 0; padding: 12px 20px calc(26px + env(safe-area-inset-bottom, 0px));
  border: 0; border-radius: 26px 26px 0 0; background: var(--white); color: var(--ink); max-height: 92vh; overflow: auto;
  box-shadow: 0 -10px 40px rgba(17,10,120,.25); border-top: 5px solid var(--blue);
}
dialog.sheet[open] { animation: sheetUp .38s cubic-bezier(.2,.9,.3,1); }
dialog.sheet::backdrop { background: rgba(17, 10, 120, .45); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@media (min-width: 720px) { dialog.sheet { margin: auto; border-radius: 26px; border: 4px solid var(--blue); } }
.grabber { width: 48px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0;
               background: var(--blue-soft); font-size: 22px; cursor: pointer; color: var(--blue); }
.sheet-body { text-align: center; }
.sheet-body h2 { font: 800 38px/1 var(--display); text-transform: uppercase; color: var(--blue); margin: 14px 0 8px; }
.sheet-body h3 { font: 800 28px/1 var(--display); text-transform: uppercase; color: var(--blue); margin: 22px 0 12px; }
.sheet-body p.big { font-size: 19px; margin: 0 0 6px; }
.hero { display: flex; justify-content: center; gap: 10px; margin: 18px 0 6px; perspective: 600px; }
.divider { border: 0; height: 3px; margin: 22px 0 0; background: repeating-linear-gradient(90deg, var(--pink-deep) 0 10px, transparent 10px 16px); }
.sheet input:not([type=checkbox]):not([type=radio]) { width: 100%; font: 600 21px/1.2 var(--sans); padding: 16px; margin: 10px 0 14px; border-radius: 14px;
  border: 2.5px solid var(--line); background: #fff; color: var(--ink); text-align: center; }
.sheet input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,18,179,.15); }
.check { display: flex; gap: 12px; align-items: flex-start; text-align: left; font-size: 16px; margin: 0 0 16px; cursor: pointer; }
.check input { width: 26px; height: 26px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.err { color: var(--warn); font-weight: 700; margin: 0 0 12px; min-height: 1em; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 18px; }
.levels label { cursor: pointer; }
.levels input { position: absolute; opacity: 0; pointer-events: none; }
.levels span { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 8px 4px; border-radius: 14px;
               border: 2.5px solid var(--line); background: #fff; font-weight: 700; font-size: 15px; transition: all .15s; }
.levels input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-deep); }
.levels input:focus-visible + span { outline: 3px solid var(--pink-deep); outline-offset: 2px; }
.guests { display: grid; gap: 0; }
.copybox { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 14px; background: #fff;
           border: 2px dashed var(--blue); font-size: 17px; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.copybox button { margin-left: auto; flex: none; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0;
                  background: var(--blue); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }

/* tile-hop loader */
.loader { display: flex; justify-content: center; gap: 10px; margin: 30px 0 14px; }
.loader .tile { animation: hop 1s ease-in-out infinite; }
.loader .tile:nth-child(2) { animation-delay: .15s; } .loader .tile:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-18px) rotate(-6deg); } }

/* falling tiles celebration */
.shower { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.shower .tile { position: absolute; top: -70px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(115vh) rotate(var(--spin)); } }
.toast { position: fixed; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 10000;
         padding: 14px 22px; border-radius: 30px; background: var(--blue-deep); color: #fff; font-weight: 700; animation: pop .3s both; }
.loading-page { text-align: center; padding: 60px 0; font-weight: 600; }

/* ---------- Lobby intro: a blank three-fold card opens like an envelope, then fades (about 2 seconds) ---------- */
.intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; cursor: pointer;
         background: var(--white) var(--stripes) repeat; animation: introOut .5s ease-in 1.4s forwards; }
@keyframes introOut { to { opacity: 0; transform: scale(1.06); visibility: hidden; } }
.tri { display: flex; width: min(80vw, 420px); aspect-ratio: 3 / 2.15; perspective: 1600px;
       filter: drop-shadow(0 18px 22px rgba(17, 10, 120, .22)); }
.leaf { position: relative; flex: 1; transform-style: preserve-3d; }
.leaf .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--white); }
.leaf .back { transform: rotateY(180deg); background: var(--blue); }
.leaf.c .face { background: var(--pink); }
.leaf.l .face { border-radius: 8px 0 0 8px; box-shadow: inset -1px 0 0 rgba(17, 10, 120, .15); }
.leaf.r .face { border-radius: 0 8px 8px 0; box-shadow: inset 1px 0 0 rgba(17, 10, 120, .15); }
.leaf.l .back, .leaf.r .back { box-shadow: none; }
.leaf.l { transform-origin: right center; animation: openL .6s cubic-bezier(.3,.7,.2,1) .45s both; z-index: 1; }
.leaf.r { transform-origin: left center; animation: openR .6s cubic-bezier(.3,.7,.2,1) .15s both; z-index: 2; }
@keyframes openL { from { transform: rotateY(179.9deg); } to { transform: rotateY(0); } }
@keyframes openR { from { transform: rotateY(-179.9deg); } to { transform: rotateY(0); } }

/* ---------- Organizer ---------- */
.card { background: var(--white); border: 2.5px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.card.alert { border-color: var(--pink-deep); background: #fff6f8; }
.roster { list-style: none; padding: 0; margin: 10px 0 0; }
.roster li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 16px; }
.roster li > span { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.roster button, .roster select, .table-head select, .table-head button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 10px; font: 600 14px/1.2 var(--sans); cursor: pointer; color: var(--ink); }
.roster a { color: var(--muted); font-size: 14px; }
.table-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 10px; border-radius: 12px; background: var(--blue-soft); }
.table-head b { color: var(--blue); }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; font-style: normal; }
.pill.paid { background: #e3f4ee; color: var(--good); } .pill.unpaid { background: #fdeaec; color: var(--warn); }
.pill.lvl { background: var(--blue-soft); color: var(--blue); }
.texts { font-size: 14px; color: var(--muted); }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.stat-row div { flex: 1 1 120px; background: var(--white); border: 2.5px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; font-size: 14px; }
.stat-row b { display: block; font: 800 34px/1 var(--display); color: var(--blue); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.card label { font-size: 14px; color: var(--muted); }
.card input, .card select.wide { width: 100%; padding: 12px; margin: 4px 0 12px; border-radius: 12px; border: 2px solid var(--line); font: inherit; background: #fff; }
#qr { display: inline-block; padding: 12px; background: #fff; border-radius: 14px; border: 3px solid var(--blue); }
.admin-head { margin: 18px 0 20px; padding: 22px 16px; border-radius: 20px; background: var(--blue); color: #fff; text-align: center; }
.admin-head h1 { font: 800 44px/1 var(--display); text-transform: uppercase; margin: 0; }
.admin-head p { margin: 6px 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro { display: none; }
}

/* The date picked on the calendar gets a pink outline when the page jumps to it. */
.trifold { scroll-margin-top: 16px; }
.trifold.picked { box-shadow: 0 0 0 5px var(--pink), 0 10px 0 -4px var(--pink-deep), 0 16px 30px rgba(29, 18, 179, .14); }

/* Price on the top card, the indoor/outdoor tag on each date, and the contact footer */
.price-tag { display: inline-block; margin: 0 0 14px; padding: 8px 18px; border-radius: 999px; background: var(--blue); color: #fff;
             font: 800 22px/1 var(--sans); box-shadow: 0 4px 0 var(--blue-deep); }
.where-tag { display: inline-block; margin-top: 8px; padding: 5px 10px; border-radius: 999px; background: var(--pink); color: var(--blue-deep);
             font: 700 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .8px; }
.date-where .where-tag { display: block; width: fit-content; margin: 8px 0 0 auto; }
@media (min-width: 720px) { .date-where .where-tag { margin: 8px auto 0; } }
.contact { margin: 22px 0; padding: 16px 14px; border-radius: 20px; background: var(--white); border: 3px solid var(--blue); }
footer.contact { margin-top: 22px; }
.lessons-jump { display: block; margin: 10px auto 0; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 999px;
  background: #fff; color: var(--blue); font: 800 16px/1.2 var(--sans); cursor: pointer; }
.lessons-jump:active { background: var(--pink); }
.lessons { scroll-margin-top: 16px; }
.lessons, .teacher { margin: 34px 0 0; padding: 18px 16px; border-radius: 20px; background: var(--white); border: 3px solid var(--blue); text-align: center; }
.teacher { margin-top: 22px; text-align: left; } .teacher .contact-title { text-align: center; } .teacher p { margin: 0; line-height: 1.55; }
.lessons p { margin: 0 0 6px; }
.lessons-kind { font-weight: 800; font-size: 1.2rem; color: var(--blue); }
.lessons-when, .lessons-dates { font-weight: 700; }
.lessons-price { display: inline-block; margin: 8px 0 !important; padding: 6px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 800; }
.lessons-limited { color: var(--warn); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.lessons-pay { margin-top: 10px; }
.lesson-seats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; max-width: 300px; margin: 12px auto 4px; justify-items: center; }
.lessons-left { font-weight: 800; color: var(--blue); }
.lessons-how { margin-top: 10px !important; color: var(--muted); font-weight: 600; }
.contact-title { margin: 0 0 4px; text-align: center; font-family: var(--display); font-size: 1.9rem; text-transform: uppercase; color: var(--blue); letter-spacing: .02em; }
.contact-ask { margin: 0 0 10px; font-weight: 700; text-align: center; color: var(--blue); }
.contact-lessons { margin: 0 0 10px; text-align: center; font-weight: 600; }
.add-player { margin: 14px 0 6px; }
.add-player summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 8px 0; }
.add-player label { display: block; margin: 10px 0 4px; }
.add-player .check { display: flex; }
.contact-line { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px; margin-top: 8px;
  border-radius: 14px; background: var(--blue-soft); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.contact-line > span:first-child { font-size: 1.5rem; }
.contact-line small { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.contact-line:active { background: var(--pink); }
