@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Fraunces:opsz,wght@9..144,600;9..144,800&display=swap");
:root {
  --bg: #0b0d12;
  --paper: #f7f1e5;
  --paper-2: #efe6d4;
  --ink: #23201b;
  --ink-soft: #6b6257;
  --rule: #d9cdb8;
  --ams: #ff7a1a; --bel: #e0b422; --par: #3b7bff; --dis: #ec5aa9; --ver: #9a6cff; --home: #35c98a;
  --accent: var(--ams);
  --script: "Caveat", "Bradley Hand", "Segoe Script", cursive;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: #fff; font-family: var(--sans); line-height: 1.45; }
a { color: inherit; }
[data-city="ams"] { --accent: var(--ams); } [data-city="bel"] { --accent: var(--bel); } [data-city="par"] { --accent: var(--par); }
[data-city="dis"] { --accent: var(--dis); } [data-city="ver"] { --accent: var(--ver); } [data-city="home"] { --accent: var(--home); }

/* ---------- login (postcard on a photo) ---------- */
body.login { min-height: 100dvh; background: #000 url(/img/hero.jpg) center/cover no-repeat; display: grid; place-items: center; padding: 16px; animation: kb 30s ease-in-out infinite alternate; }
@keyframes kb { from { background-size: 100% auto; background-size: cover; } to { background-position: 60% 40%; } }
body.login::before { content: ""; position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(0,0,0,.75), rgba(0,0,0,.35)); }
body.login .card { position: relative; width: 100%; max-width: 420px; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 28px 26px 24px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: rotate(-1.2deg); animation: drop .8s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes drop { from { opacity: 0; transform: translateY(40px) rotate(-6deg) scale(.96); } to { opacity: 1; transform: rotate(-1.2deg); } }
body.login .card::after { content: ""; position: absolute; top: 14px; right: 14px; width: 54px; height: 66px; background: linear-gradient(135deg, var(--ams), var(--par)); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--rule); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 700; color: var(--accent); margin: 0 0 .3rem; }
body.login h1 { font-family: var(--script); font-weight: 700; font-size: 3rem; line-height: .95; margin: .2rem 0 .4rem; }
.countdown { display: flex; justify-content: center; gap: 12px; margin: 12px 0 4px; }
.countdown div { min-width: 66px; background: var(--paper-2); border-radius: 10px; padding: 8px 6px; }
.countdown b { display: block; font-family: var(--display); font-size: 1.8rem; line-height: 1; }
.countdown span { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
label { display: block; font-family: var(--script); font-size: 1.3rem; color: var(--ink-soft); margin: .9rem 0 .3rem; }
input.code { width: 100%; font: inherit; padding: .7rem; border: 0; border-bottom: 2px dashed var(--rule); background: transparent; color: var(--ink); text-align: center; font-family: var(--script); font-size: 2rem; letter-spacing: .35em; text-transform: uppercase; outline: none; }
button.primary { font: inherit; margin-top: 1rem; width: 100%; padding: .85rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 1rem; cursor: pointer; transition: transform .15s; }
button.primary:active { transform: scale(.97); }
.error { color: #c0392b; font-size: .9rem; margin: .6rem 0 0; }

/* ---------- app: full-screen postcards ---------- */
.deck { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.deck::-webkit-scrollbar { display: none; }
.pc { position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); place-items: end center; padding: 0 14px calc(84px + env(safe-area-inset-bottom)); }
.pc .bg { position: absolute; inset: -6%; background: var(--bg) center/cover no-repeat; transform: scale(1); transition: transform 12s linear; will-change: transform; }
.pc.on .bg { transform: scale(1.1); }
.pc::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%); pointer-events: none; }
.pc .title { position: absolute; top: calc(74px + env(safe-area-inset-top)); left: 22px; right: 22px; z-index: 1; opacity: 0; transform: translateY(-14px); transition: all .7s cubic-bezier(.2,.8,.2,1) .1s; }
.pc.on .title { opacity: 1; transform: none; }
.pc .title .k { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.pc .title h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 9vw, 4rem); line-height: .95; margin: .1rem 0 0; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.card { position: relative; z-index: 1; width: 100%; min-width: 0; max-width: 560px; max-height: 62dvh; background: var(--paper); color: var(--ink); border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.55); padding: 16px 16px 14px; opacity: 0; transform: translateY(50px) rotate(1.5deg); transition: all .75s cubic-bezier(.2,.9,.3,1.1) .15s; display: flex; flex-direction: column; }
.pc.on .card { opacity: 1; transform: none; }
.card .head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px dashed var(--rule); padding-bottom: 8px; margin-bottom: 6px; }
.card .greet { font-family: var(--script); font-size: 1.45rem; line-height: 1.1; font-weight: 700; }
.card .greet small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 2px; }
.stamp { flex: 0 0 auto; width: 46px; height: 56px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--rule); background: var(--accent); display: grid; place-items: center; font-size: 1.4rem; transform: rotate(4deg); }
.postmark { position: absolute; top: 8px; right: 66px; width: 58px; height: 58px; border: 2px solid rgba(35,32,27,.35); border-radius: 50%; display: grid; place-items: center; font-size: .55rem; text-align: center; line-height: 1.1; letter-spacing: .05em; text-transform: uppercase; color: rgba(35,32,27,.5); transform: rotate(-12deg); pointer-events: none; }
.acts { overflow-y: auto; flex: 1; min-height: 0; padding-right: 2px; }
.act { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.act:last-child { border-bottom: 0; }
.act .ico { flex: 0 0 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 1rem; background: var(--paper-2); }
.act .txt { flex: 1; font-size: .92rem; }
.act .time { font-weight: 800; color: var(--accent); margin-right: .3rem; font-family: var(--display); }
.act .tick { flex: 0 0 24px; height: 24px; border-radius: 50%; border: 2px solid var(--rule); display: grid; place-items: center; font-size: .75rem; color: transparent; transition: all .2s; }
.act.done .tick { background: var(--home); border-color: var(--home); color: #063; transform: scale(1.1); }
.act.done .txt { text-decoration: line-through; color: var(--ink-soft); }
.meta { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; scrollbar-width: none; }
.meta::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; font-size: .76rem; padding: .35rem .7rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.chip.map { border-color: var(--par); color: var(--par); } .chip.ticket { border-color: var(--accent); color: var(--accent); }

/* ---------- chrome ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 18px 10px; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.topbar .brand { font-family: var(--script); font-size: 1.5rem; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.topbar .brand small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.topbar a { font-size: .75rem; text-decoration: none; border: 1px solid rgba(255,255,255,.35); padding: .25rem .65rem; border-radius: 999px; backdrop-filter: blur(8px); }
.dots { position: fixed; right: 8px; top: 50%; transform: translateY(-50%); z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.dots button { width: 22px; height: 12px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.dots button i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); transition: all .25s; }
.dots button.on i { width: 8px; height: 8px; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.dots button.today i { background: var(--home); }
.arrows { position: fixed; right: 28px; z-index: 5; display: none; flex-direction: column; gap: 8px; bottom: calc(86px + env(safe-area-inset-bottom)); }
.arrows button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4); color: #fff; font-size: 1.1rem; cursor: pointer; backdrop-filter: blur(8px); }
@media (hover: hover) and (min-width: 700px) { .arrows { display: flex; } .card { max-width: 620px; padding: 22px 24px 18px; } .act .txt { font-size: 1rem; } }

nav.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; z-index: 6; background: rgba(10,12,18,.72); backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,.08); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
nav.tabs button { flex: 1; font: inherit; padding: .35rem 0; background: none; border: 0; color: rgba(255,255,255,.55); font-size: .7rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
nav.tabs button span { font-size: 1.3rem; transition: transform .25s cubic-bezier(.2,.9,.3,1.4); }
nav.tabs button.on { color: #fff; } nav.tabs button.on span { transform: translateY(-3px) scale(1.2); }

/* ---------- sheets (bookings, notes) ---------- */
.sheet { position: fixed; inset: 0; z-index: 8; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet .panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; background: var(--paper); color: var(--ink); border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform .45s cubic-bezier(.2,.9,.3,1); display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.sheet.open .panel { transform: none; }
.sheet .grab { width: 44px; height: 5px; border-radius: 999px; background: var(--rule); margin: 10px auto 4px; }
.sheet .ph { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px 10px; border-bottom: 1px solid var(--rule); }
.sheet h2 { font-family: var(--script); font-size: 1.9rem; margin: 0; font-weight: 700; }
.sheet .close { font: inherit; border: 0; background: var(--paper-2); border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; }
.sheet .body { overflow-y: auto; padding: 12px 16px 24px; max-width: 640px; width: 100%; margin: 0 auto; }
.bk { display: flex; gap: 12px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.bk .ico { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--paper-2); }
.bk .main { flex: 1; min-width: 0; }
.bk .type { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.bk h3 { font-size: 1rem; margin: 2px 0 6px; font-weight: 600; font-family: var(--sans); }
.bk .conf { display: inline-flex; align-items: center; gap: .4rem; font-family: ui-monospace, Menlo, monospace; font-size: .88rem; background: var(--paper-2); border: 1px solid var(--rule); padding: .22rem .55rem; border-radius: 8px; cursor: pointer; margin: 2px 6px 4px 0; }
.bk .files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bk .status { font-size: .74rem; color: var(--ink-soft); } .bk .status.paid { color: #1d8f5f; }
textarea, input.plain { width: 100%; font: inherit; padding: .7rem .9rem; border: 1px solid var(--rule); border-radius: 12px; background: #fff; color: var(--ink); }
textarea { min-height: 76px; resize: vertical; margin-top: 8px; font-family: var(--script); font-size: 1.25rem; }
.note { display: flex; gap: 12px; padding: .7rem 0; border-bottom: 1px dashed var(--rule); }
.note:last-child { border-bottom: 0; }
.note .av { flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #111; }
.note .who { font-weight: 700; } .note .at { font-size: .7rem; color: var(--ink-soft); margin-left: .4rem; }
.note .body-t { font-family: var(--script); font-size: 1.25rem; line-height: 1.2; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--paper); color: var(--ink); padding: .5rem .9rem; border-radius: 999px; font-size: .85rem; opacity: 0; transition: all .25s; pointer-events: none; z-index: 20; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .pc .bg, .card, .pc .title { transition: none; } .pc.on .bg { transform: none; } }
