/* What turns the Pass map (pass.html) into the whole Tilely app (Tommaso, 13/11/2026: «Fai Tilely con la mappa account ecc»):
   the pass card, the invitation and the venue's real menu inside its card, the table request in the island, the account.
   Written on pass.html's own tokens (--p-* for Pass pages, --i-* for the island). The pass card is .pcard (pass.html's
   .card is the venue card). */
.pcard { --c1: #222226; --c2: #0e0e10; --ca: #F2F2F0; position: relative; width: 100%; aspect-ratio: 1.586; border-radius: 6.4cqw; color: #F2F2F0; overflow: hidden; isolation: isolate; container-type: inline-size; font-family: var(--p-display);
  background: radial-gradient(120% 140% at 0% 0%, var(--c1), var(--c2) 72%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .22), 0 18px 40px rgba(0, 0, 0, .55); transition: background .6s; }
.pcard[data-tint="arena"] { --c1: #4a4130; --c2: #1f1a12; --ca: #EBD9B4; } .pcard[data-tint="atlantico"] { --c1: #1d4466; --c2: #091724; --ca: #A7D2F5; } .pcard[data-tint="atardecer"] { --c1: #6a2c1c; --c2: #24100b; --ca: #FFB893; }
.pcard .c-top { position: absolute; left: 6.4%; top: 10%; display: flex; align-items: center; gap: .5em; font-size: 4.4cqw; font-weight: 800; letter-spacing: -.02em; } .pcard .c-top svg { width: 1.5em; height: 1.5em; }
.pcard .c-isle { position: absolute; right: 4.6%; top: 9%; width: 50%; height: auto; overflow: visible; } .pcard .c-isle rect { fill: var(--ca); transition: fill .6s; } .pcard .c-isle .here { fill: #fff; }
.pcard .c-ten { position: absolute; right: 6.4%; bottom: 31%; font-size: 2.5cqw; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; opacity: .7; }
.pcard .c-role { position: absolute; left: 6.4%; bottom: 21.5%; font-size: 9.6cqw; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--ca); transition: color .6s; }
.pcard .c-grp { position: absolute; left: 6.6%; bottom: 10.5%; font-size: 2.9cqw; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; opacity: .82; }
.pcard .c-yr { position: absolute; right: 6.4%; bottom: 10.5%; font-size: 2.9cqw; font-weight: 700; letter-spacing: .18em; opacity: .6; }
.pcard .c-sheen { position: absolute; inset: -40% -60%; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .18) 50%, rgba(255, 255, 255, 0) 58%); transform: translateX(-60%); pointer-events: none; mix-blend-mode: screen; animation: ppsheen 3.2s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes ppsheen { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }

/* ---- in the venue's card: the invitation, then the menu itself ---- */
.inv { display: grid; grid-template-columns: 104px 1fr; gap: 13px; align-items: center; width: 100%; padding: 12px; border-radius: 18px; background: var(--p-row); text-align: left; }
.inv b { display: block; font: 700 16px/1.15 var(--p-display); } .inv small { display: block; margin-top: 3px; font: 400 13px/1.35 var(--p-body); color: var(--p-mute); }
.inv .eg, .eg { display: inline-block; margin-bottom: 5px; padding: 2px 7px; border-radius: 99px; border: 1px dashed var(--p-soft); color: var(--p-soft); font: 600 9.5px/1.4 var(--p-body); letter-spacing: .08em; text-transform: uppercase; }
.inv .get { margin-top: 8px; display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 99px; background: var(--p-fg); color: #0C0C0D; font: 700 12.5px/1 var(--p-body); }
.mfind { position: relative; display: block; } .mfind input { width: 100%; height: 46px; padding: 0 14px 0 40px; border-radius: 16px; border: 1px solid var(--p-line); background: var(--p-row); color: var(--p-fg); font: 600 16px/1 var(--p-body); outline: 0; } .mfind input:focus { border-color: var(--p-fg); }
.mfind svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--p-soft); }
.mchips { position: sticky; top: 26px; z-index: 1; display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 9px 16px; background: var(--p-card); scrollbar-width: none; } .mchips::-webkit-scrollbar { display: none; }
.mchips button { flex: none; height: 44px; padding: 0 16px; border-radius: 22px; background: var(--p-row); color: var(--p-mute); font: 600 13px/1 var(--p-body); white-space: nowrap; } .mchips button.on { background: var(--p-fg); color: #0C0C0D; }
.msec h4 { margin: 18px 0 2px; font: 800 19px/1.15 var(--p-display); letter-spacing: -.02em; scroll-margin-top: 96px; }
.mdish { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--p-line); align-items: start; }
.mdish b { font: 600 15px/1.3 var(--p-body); } .mdish span { font: 700 15px/1.3 var(--p-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mdish p { grid-column: 1; margin: 0; font: 400 13px/1.35 var(--p-body); color: var(--p-mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mdish img { grid-column: 2; grid-row: 2; width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: var(--p-row); }
.mnone { padding: 18px 14px; border-radius: 18px; border: 1px dashed var(--p-line); color: var(--p-mute); text-align: center; font: 400 13.5px/1.35 var(--p-body); }

/* ---- in the island: the table ---- */
.ch.hs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 2px; scrollbar-width: none; } .ch.hs::-webkit-scrollbar { display: none; } .ch.hs button { flex: none; }
.ch button small { display: block; margin-bottom: 2px; font: 600 .6rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; opacity: .7; } .ch.days button { height: 50px; min-width: 52px; }
.ch button[disabled] { background: transparent; box-shadow: inset 0 0 0 1px var(--i-line); color: var(--i-mute); opacity: .55; }
.ppl { display: flex; align-items: center; gap: 16px; } .ppl button { width: 46px; height: 46px; border-radius: 50%; background: var(--i-tile); font: 600 1.4rem/1 var(--body); } .ppl button[disabled] { opacity: .35; } .ppl output { min-width: 2ch; text-align: center; font: 800 1.6rem/1 var(--body); font-variant-numeric: tabular-nums; }
.bkst { margin-top: 12px; padding: 14px; border-radius: var(--i-tr); background: var(--i-tile); }
.bkst .t { display: flex; align-items: center; gap: 10px; font: 800 1.05rem/1.2 var(--body); } .bkst .t i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--i-line); font-style: normal; flex: none; }
.bkst.ok .t i { background: #5fd38a; color: #0C0C0D; } .bkst.no .t i { background: #ff8a80; color: #0C0C0D; } .bkst.alt .t i { background: var(--i-pri); color: var(--i-pri-fg); }
.bkst .t i svg { width: 18px; height: 18px; } .bkst .t i.bkw { display: flex; align-items: center; justify-content: center; } .bkst .bkw u { display: inline-block; width: 5px; height: 5px; margin: 0 1.5px; border-radius: 50%; background: currentColor; animation: ppblink 1.2s infinite; } .bkst .bkw u:nth-child(2) { animation-delay: .2s; } .bkst .bkw u:nth-child(3) { animation-delay: .4s; } @keyframes ppblink { 50% { opacity: .2; } }
.bkst dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font: 500 .86rem/1.3 var(--body); } .bkst dt { color: var(--i-mute); } .bkst dd { margin: 0; font-weight: 700; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .go.ghost { background: transparent; color: var(--i-fg); box-shadow: inset 0 0 0 1.5px var(--i-line); }
.pwrap { margin: 10px auto 0; width: min(100%, 300px); }

/* ---- the account: a page of its own, from the top of the screen (a keyboard never covers what you type) ---- */
#acc { position: fixed; inset: 0; z-index: 20; background: var(--p-bg); color: var(--p-fg); overflow-y: auto; -webkit-overflow-scrolling: touch; transform: translateY(102%); transition: transform .5s var(--spring); visibility: hidden; font: 400 16px/1.4 var(--p-body); }
body.acc #acc { transform: none; visibility: visible; } body.acc .isl { opacity: 0; pointer-events: none; }
.ac { max-width: 30rem; margin: 0 auto; padding: calc(12px + var(--sat)) 20px calc(40px + var(--sab)); display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.ac-top { display: flex; align-items: center; justify-content: space-between; min-height: 46px; font: 800 20px/1 var(--p-display); letter-spacing: -.03em; } .ac-top span { display: inline-flex; align-items: center; gap: 8px; } .ac-top svg { width: 24px; height: 24px; }
.ac-x { width: 46px; height: 46px; margin-right: -8px; border-radius: 50%; background: var(--p-row); display: grid; place-items: center; } .ac-x svg { width: 20px; height: 20px; }
.ac h2 { margin: 6px 0 0; font: 800 28px/1.08 var(--p-display); letter-spacing: -.035em; text-wrap: balance; } .ac h3 { margin: 14px 0 0; font: 600 11px/1 var(--p-body); letter-spacing: .08em; text-transform: uppercase; color: var(--p-mute); }
.ac p { margin: 0; color: var(--p-mute); font-size: 15px; }
.ac input[type="email"], .ac input[type="text"] { width: 100%; height: 56px; padding: 0 16px; border-radius: 18px; border: 1.5px solid #3c3c42; background: var(--p-row); color: var(--p-fg); font: 600 17px/1.2 var(--p-body); outline: 0; } .ac input:focus { border-color: var(--p-fg); } .ac input.bad { border-color: #FF5A4E; }
.ac .err { min-height: 1.3em; color: #FF8A80; font-size: 14px; }
.ac-btn { width: 100%; min-height: 56px; padding: 10px 16px; border-radius: 18px; background: var(--p-fg); color: #0C0C0D; font: 700 17px/1.2 var(--p-body); text-align: center; } .ac-btn.ghost { background: transparent; color: var(--p-fg); box-shadow: inset 0 0 0 1.5px #3c3c42; } .ac-btn[disabled] { opacity: .4; }
.ac .boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; } .ac .boxes.four { grid-template-columns: repeat(4, 1fr); max-width: 260px; }
.ac .boxes i { display: grid; place-items: center; aspect-ratio: .82; border-radius: 14px; border: 1.5px solid #3c3c42; background: var(--p-row); font: 800 26px/1 var(--p-display); font-style: normal; font-variant-numeric: tabular-nums; transition: border-color .2s, transform .3s var(--spring); } .ac .boxes i.in { border-color: var(--p-fg); transform: scale(1.05); }
.ac .pin { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sws { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .sw { display: grid; justify-items: center; gap: 7px; min-height: 84px; color: var(--p-mute); font: 600 12.5px/1 var(--p-body); }
.sw i { width: 54px; height: 54px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: transform .4s var(--spring), box-shadow .25s; } .sw.on { color: var(--p-fg); } .sw.on i { transform: scale(1.1); box-shadow: 0 0 0 3px var(--p-bg), 0 0 0 5.5px var(--p-fg); }
.ac-me { display: flex; align-items: center; gap: 14px; } .ac-me i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--p-fg); color: #0C0C0D; font: 800 24px/1 var(--p-display); font-style: normal; flex: none; } .ac-me b { display: block; font: 800 20px/1.15 var(--p-display); letter-spacing: -.02em; } .ac-me small { color: var(--p-mute); font-size: 14px; }
.ac-cards { display: grid; gap: 12px; } .ac-card { display: block; width: 100%; text-align: left; } .ac-card small { display: block; margin: 7px 2px 0; color: var(--p-mute); font-size: 13px; }
.ac-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border-radius: 18px; background: var(--p-card); text-align: left; } .ac-row span { flex: 1; min-width: 0; } .ac-row b { display: block; font: 700 15px/1.2 var(--p-body); } .ac-row small { display: block; color: var(--p-mute); font-size: 13px; }
.ac-row em { flex: none; padding: 4px 9px; border-radius: 99px; background: var(--p-row); font: 700 11.5px/1.3 var(--p-body); font-style: normal; white-space: nowrap; } .ac-row em.ok { background: #5fd38a; color: #0C0C0D; } .ac-row em.no { background: #ff8a80; color: #0C0C0D; }
.ac-empty { padding: 18px 14px; border-radius: 18px; border: 1px dashed #3c3c42; color: var(--p-mute); text-align: center; font-size: 14px; }
.ac .grow { flex: 1; }
.av.out svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { #acc { transition: none; } .pcard .c-sheen, .bkst .bkw u { animation: none; } }
.go[disabled] { opacity: .45; }
