/* Ys (built on „Рампа“) · the card table. Light ground, deep blue-green type, holographic foil (pink, violet, cyan, mint; never yellow or orange). */
:root {
  --bg: #f4f5f3; --paper: #fff; --ink: #0b1f22; --ink2: #3a5155; --ink3: #55696c; --teal: #0a4a50; --deep: #06343a; --line: #d7dddb; --soft: #e9edeb;
  --pink: #ff9bd7; --violet: #b3a1ff; --cyan: #7cdcf6; --mint: #8cefc6; --err: #a01560;
  --foil: linear-gradient(118deg, var(--pink) 0%, var(--violet) 20%, var(--cyan) 42%, var(--mint) 60%, var(--cyan) 76%, var(--violet) 90%, var(--pink) 100%);
  --r: 20px; --bar-h: 0px; --pad-b: 0px;
  --sh: 0 1px 2px rgba(11, 31, 34, .06), 0 10px 28px -12px rgba(11, 31, 34, .28);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.45 'Sofia Sans', system-ui, sans-serif; padding-bottom: var(--pad-b); overflow-x: clip;
  background-image: radial-gradient(90% 60% at 80% -10%, rgba(179, 161, 255, .16), transparent 60%), radial-gradient(70% 50% at 0% 0%, rgba(124, 220, 246, .16), transparent 60%); background-repeat: no-repeat; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
.num { font-variant-numeric: tabular-nums lining-nums; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.ph { background: repeating-linear-gradient(135deg, #efe9ff 0 6px, #e3f6fb 6px 12px); color: #3b2a7a; border: 1px dashed #7d6bd0; border-radius: 5px; padding: 0 5px; font: 600 .86em ui-monospace, Menlo, monospace; white-space: nowrap; }
.blank { color: var(--ink3); font-style: italic; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1440px; margin: 0 auto; padding: 16px 40px 8px; }
.brand { display: inline-flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.brand { flex-direction: row; align-items: center; gap: 10px; }
.brand-m { display: block; width: 58px; height: auto; }
.brand-t { display: grid; }
.brand-d { font-size: 14px; font-weight: 700; color: var(--ink2); letter-spacing: .01em; line-height: 1.15; max-width: 9em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot-m { width: 26px; height: auto; vertical-align: -6px; }
.ys-live { display: inline-block; line-height: 0; }
.ys-live svg { display: block; width: 100%; height: auto; overflow: visible; }
.brand-m.ys-live { display: block; }
.brand-l { display: block; height: 6px; border-radius: 3px; background: radial-gradient(circle at 3px 3px, #fff 0 1.6px, transparent 2px) 0 0/10px 6px repeat-x, var(--foil); }
.top-nav { display: flex; align-items: center; gap: 8px; }
.top-work { color: var(--ink2); font-size: 15px; font-weight: 600; text-decoration: none; padding: 9px 12px; border-radius: 99px; }
.top-work:hover { color: var(--ink); background: var(--soft); }
.snd, .lng { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; min-height: 40px; padding: 0 14px; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.snd-ic { width: 16px; height: 14px; display: inline-block; background: linear-gradient(var(--ink3), var(--ink3)) 0 50%/3px 5px no-repeat, linear-gradient(var(--ink3), var(--ink3)) 6px 50%/3px 10px no-repeat, linear-gradient(var(--ink3), var(--ink3)) 12px 50%/3px 14px no-repeat; opacity: .55; }
.snd[aria-pressed="true"] { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--foil) border-box; border: 2px solid transparent; }
.snd[aria-pressed="true"] .snd-ic { opacity: 1; background: linear-gradient(var(--teal), var(--teal)) 0 50%/3px 5px no-repeat, linear-gradient(var(--teal), var(--teal)) 6px 50%/3px 10px no-repeat, linear-gradient(var(--teal), var(--teal)) 12px 50%/3px 14px no-repeat; }

.page { max-width: 1440px; margin: 0 auto; padding: 0 40px 40px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding: 22px 0 22px; }
.hero h1 { font-size: clamp(34px, 4.5vw, 66px); line-height: .98; letter-spacing: -.025em; max-width: 15.5em; text-wrap: balance; }
.hero h1 b { font-weight: 900; }
.hero h1 span { font-weight: 200; }
.hero-side { display: grid; gap: 10px; justify-items: start; max-width: 340px; padding-bottom: 6px; }
.from { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 16px; border-radius: 99px; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--foil) border-box; font-size: 18px; }
.from b { font-weight: 800; }
.from span { color: var(--ink2); font-size: 15px; }
.promise { font-size: 18px; color: var(--ink2); line-height: 1.35; }
body.has-pk .hero { padding: 6px 0 12px; grid-template-columns: 1fr; }
body.has-pk .hero h1 { font-size: 22px; letter-spacing: -.01em; max-width: none; line-height: 1.15; }
body.has-pk .hero-side { display: none; }

/* ---------- layout of the game ---------- */
.play { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
body.has-pk .play { grid-template-columns: minmax(0, 1fr) 348px; }
.stage { min-width: 0; display: grid; gap: 14px; }
.board { display: none; }
body.has-pk .board { display: grid; gap: 14px; position: sticky; top: 14px; }
.details, .pfwrap { display: none; }
body[data-step="details"] .deck { display: none; }
body[data-step="details"] .details { display: block; }
body[data-step="proforma"] .hero, body[data-step="proforma"] .play { display: none; }
body[data-step="proforma"] .pfwrap { display: block; }

/* ---------- the table ---------- */
.table { position: relative; border-radius: 28px; background: radial-gradient(120% 100% at 50% 0%, #fff 0%, #fff 40%, #eef2f0 100%); border: 1px solid var(--line); padding: 20px 22px 26px; overflow: hidden; }
.table.empty { padding: 14px 22px 20px; }
.table::after, .rampa { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: radial-gradient(circle at 7px 4px, #fff 0 2px, transparent 2.6px) 0 0/14px 8px repeat-x, var(--foil); }
.rampa { display: none; }
.table.aim { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(124, 220, 246, .35); }
.tbl-empty { display: flex; align-items: center; gap: 16px; color: var(--ink2); font-size: 16px; min-height: 56px; }
.tbl-empty b { color: var(--ink); font-weight: 800; }
.tbl-slot { flex: none; width: 40px; height: 56px; border-radius: 8px; border: 2px dashed #9fb0ae; transform: rotate(-5deg); }
.tbl-in { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: start; }

.tpk { perspective: 1400px; }
.tpk-flip { position: relative; }
.tpk-face { border-radius: var(--r); }
.tpk-front { display: none; flex-direction: column; justify-content: center; gap: 6px; padding: 22px; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--foil) border-box; }
.tpk-front .c-name { font-size: 34px; font-weight: 900; letter-spacing: -.02em; }
.tpk-front .c-price { font-size: 30px; font-weight: 700; color: var(--teal); }
.tpk-back { position: relative; padding: 18px 20px 16px; color: #fff; border: 2px solid transparent; background: linear-gradient(160deg, #0c5158, var(--deep) 70%) padding-box, var(--foil) border-box; box-shadow: var(--sh); display: grid; gap: 12px; }
.tpk-back .c-kind { color: #b9f3de; }
.tpk-n { font-size: 32px; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; margin-top: 2px; }
.tpk-p { font-size: 26px; font-weight: 300; line-height: 1.1; }
.tpk-p small { font-size: 14px; font-weight: 500; color: #cfeae6; margin-left: 6px; white-space: nowrap; }
.tpk-body h3 { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #b9f3de; margin: 8px 0 4px; }
.tpk-body h3:first-child { margin-top: 0; }
.tpk-body h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; color: #cfeae6; font-size: 12px; }
.tpk-g li, .tpk-w li, p.tpk-w { font-size: 15.5px; line-height: 1.32; padding: 2px 0 2px 16px; position: relative; }
p.tpk-w { padding-left: 0; color: #eaf6f4; }
.tpk-g li::before, .tpk-w li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.tpk-w li::before { background: var(--pink); }
.tpk-w li b { font-weight: 800; }
.tpk-g li.new { animation: fresh 1.6s ease-out both; border-radius: 6px; }
.tpk-rm { justify-self: start; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); border-radius: 99px; font-size: 13.5px; font-weight: 600; padding: 6px 14px; min-height: 34px; }
.tpk-rm:hover { background: rgba(255, 255, 255, .12); }
.tpk-rm:focus-visible, .tc-date:focus-visible { outline-color: var(--pink); }
.tpk.incoming, .tc.incoming { visibility: hidden; }
.tpk.land .tpk-flip { transform-style: preserve-3d; animation: flip .75s cubic-bezier(.3, .7, .2, 1) both; }
.tpk.land .tpk-front { display: flex; position: absolute; inset: 0; backface-visibility: hidden; }
.tpk.land .tpk-back { backface-visibility: hidden; transform: rotateY(180deg); }
@keyframes flip { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
@keyframes fresh { 0% { background: rgba(140, 239, 198, .45); } 100% { background: rgba(140, 239, 198, 0); } }

.tside-h { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); margin-bottom: 10px; }
.trow { display: flex; flex-wrap: wrap; gap: 12px 10px; align-items: flex-start; }
.tside-n { font-size: 14px; color: var(--ink3); margin-top: 12px; }
.tc, .tc-slot { width: 104px; height: 140px; border-radius: 14px; padding: 16px 10px 10px; display: flex; flex-direction: column; gap: 2px; text-align: left; position: relative; flex: none; }
.tc { border: 1px solid var(--line); background: #fff; box-shadow: var(--sh); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.tc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: var(--foil); background-size: 300% 100%; background-position: calc(var(--i, 0) * 23%) 0; }
.tc:nth-child(odd) { transform: rotate(-2.2deg); }
.tc:nth-child(even) { transform: rotate(1.6deg) translateY(4px); }
.tc:hover { transform: translateY(-5px) rotate(0); z-index: 2; }
.tc-n { font-size: 14.5px; font-weight: 800; line-height: 1.12; hyphens: auto; overflow-wrap: anywhere; }
.tc-x { font-size: 26px; font-weight: 200; line-height: 1.1; color: var(--teal); }
.tc-a { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.tc.pop { animation: pop .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes pop { from { scale: 1.18; } to { scale: 1; } }
.tc-date { background: linear-gradient(160deg, #0c5158, var(--deep)); color: #fff; border-color: transparent; }
.tc-date::before { background-position: 60% 0; }
.tc-date .tc-n { text-transform: uppercase; font-size: 12px; letter-spacing: .1em; color: #b9f3de; }
.tc-day { font-size: 46px; font-weight: 200; line-height: 1; }
.tc-date .tc-a { color: #fff; font-weight: 600; font-size: 13px; }
.tc-slot { border: 2px dashed #9fb0ae; background: transparent; color: var(--ink2); font-size: 14px; font-weight: 700; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 8px; }
.tc-slot i { font-style: normal; font-size: 26px; font-weight: 200; line-height: 1; }
.tc-slot:hover { border-color: var(--teal); color: var(--teal); background: #fff; }

/* ---------- the tracker ---------- */
.trk { display: flex; align-items: stretch; gap: 8px; padding: 2px 0; }
.trk-h { align-self: center; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-right: 8px; white-space: nowrap; }
.trk-s { position: relative; flex: 0 1 190px; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 9px; align-items: center; text-align: left; padding: 7px 14px 7px 12px; min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); overflow: hidden; }
.trk-dot { grid-row: 1 / 3; width: 14px; height: 14px; border-radius: 50%; border: 2px dashed #8fa3a1; }
.trk-s.done .trk-dot { border: 0; background: var(--foil); background-size: 200% 200%; box-shadow: inset 0 0 0 1px rgba(11, 31, 34, .25); }
.trk-l { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); line-height: 1.1; }
.trk-v { font-size: 15.5px; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-s:not(.done) .trk-v { font-weight: 500; color: var(--ink2); }
.trk-s.cur { border-color: var(--ink); background: #fff; box-shadow: inset 0 -3px 0 var(--ink); }
.trk-s.shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 155, 215, .55) 38%, rgba(124, 220, 246, .6) 50%, rgba(140, 239, 198, .55) 62%, transparent 80%); background-size: 300% 100%; animation: shine 1.1s ease-out both; pointer-events: none; }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -60% 0; opacity: 0; } }

/* ---------- the hand: cards ---------- */
.deck { position: relative; }
.card { position: relative; container-type: inline-size; }
.card-btn, .card-in { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; border-radius: var(--r); padding: 14px; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--foil) border-box; box-shadow: var(--sh); position: relative; overflow: hidden; }
.card-btn { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; will-change: transform; touch-action: pan-x; }
.card.tilting .card-btn { transition: transform .08s linear; box-shadow: 0 2px 4px rgba(11, 31, 34, .08), 0 26px 44px -18px rgba(11, 31, 34, .45); }
.card.dragging { opacity: .25; }
.c-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 18px; }
.c-kind { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.c-no { font-size: 12px; font-weight: 600; color: var(--ink3); }
.c-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: multiply;
  background: radial-gradient(circle at calc(var(--mx, .5) * 100%) calc(var(--my, .5) * 100%), rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 12%, rgba(179, 161, 255, .22) 40%, rgba(124, 220, 246, .22) 62%, rgba(255, 155, 215, .2) 85%); }
.card.tilting .c-glare { opacity: 1; }

/* package cards */
.deck-pk { display: grid; grid-template-columns: repeat(5, minmax(0, 250px)); gap: 20px; justify-content: center; padding: 14px 0 22px; }
.card.pk { aspect-ratio: 5 / 7; transform: rotate(calc(var(--o, 0) * 1.5deg)) translateY(calc(var(--o, 0) * var(--o, 0) * 5px)); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.card.pk:hover, .card.pk:focus-within { transform: translateY(-10px); z-index: 3; }
.c-art { position: relative; flex: 0 1 30%; min-height: 0; margin: 8px 0 10px; border-radius: 12px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; align-items: end; column-gap: 8px; padding: 6px 12px 10px; color: var(--ink); overflow: hidden;
  background: repeating-linear-gradient(62deg, rgba(255, 255, 255, .32) 0 2px, transparent 2px 9px), var(--foil); background-size: auto, 240% 240%; background-position: 0 0, calc(var(--mx, .5) * 100% + var(--o, 0) * 22%) calc(var(--my, .5) * 100%); }
.c-art b { grid-row: 1 / 3; font-size: 27cqw; font-weight: 150; line-height: .78; letter-spacing: -.04em; }
.c-art-s { align-self: end; font-size: 5.6cqw; font-weight: 600; }
.c-art-l { font-size: 6.2cqw; font-weight: 800; line-height: 1.05; grid-row: 2; padding-bottom: 1cqw; }
.card.pk .c-name { font-size: 11cqw; font-weight: 900; letter-spacing: -.02em; line-height: 1; margin-top: auto; }
.card.pk .c-price { font-size: 17cqw; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--teal); white-space: nowrap; }
.card.pk .c-u { font-size: max(13px, 5.8cqw); color: var(--ink2); line-height: 1.2; min-height: 2.4em; }
.c-cta { align-self: flex-start; margin-top: auto; font-size: max(12.5px, 5.2cqw); font-weight: 800; padding: 5px 12px; border-radius: 99px; background: var(--ink); color: #fff; }
.c-cta::after { content: " ↑"; }
.card.pk.on .card-btn { background: linear-gradient(#f4f5f3, #f4f5f3) padding-box, var(--foil) border-box; box-shadow: none; }
.card.pk.on .c-cta { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); padding: 3.5px 10.5px; }
.card.pk.on .c-cta::after { content: " ✓"; }

/* power-up cards */
.deck-add { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 12px 0 20px; }
.card.pu { min-height: 152px; }
.deck-add .card.km { grid-column: span 2; }
.card.pu .card-btn, .card.pu .card-in { padding: 12px 13px 12px; gap: 3px; border-radius: 16px; }
.card.pu .c-name { font-size: 18px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; margin-top: 6px; }
.card.pu .c-u { font-size: 13.5px; color: var(--ink2); line-height: 1.25; }
.card.pu .c-price { margin-top: auto; padding-top: 6px; font-size: 21px; font-weight: 300; color: var(--teal); white-space: nowrap; }
.card.pu .c-price small { font-size: 13px; font-weight: 500; color: var(--ink2); }
.card.pu:hover .card-btn { box-shadow: 0 2px 4px rgba(11, 31, 34, .08), 0 18px 30px -14px rgba(11, 31, 34, .4); }
.c-badge { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--ink); color: #fff; white-space: nowrap; display: none; }
.card.on .c-badge { display: inline-block; }
.card.pu.on .card-btn, .card.pu.on .card-in { background: linear-gradient(#eefaf6, #eefaf6) padding-box, var(--foil) border-box; }
.c-minus { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; font-size: 22px; line-height: 1; font-weight: 500; display: grid; place-items: center; z-index: 2; }
.c-minus:hover { background: var(--ink); color: #fff; }
.stp { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.stp-b { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; }
.stp-b:hover { background: var(--ink); color: #fff; }
.stp-v { min-width: 44px; text-align: center; font-size: 19px; font-weight: 800; white-space: nowrap; }
.km-f { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 6px; font-weight: 700; }
.km-f input { width: 108px; font-size: 22px; font-weight: 800; padding: 5px 10px; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; }
.card.km .c-u { margin-top: 6px; }
.card.incl .c-u { margin-top: 4px; }

.deck.deal .card { animation: deal .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes deal { from { opacity: 0; translate: 0 46px; rotate: 7deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
.fly { will-change: transform; filter: drop-shadow(0 24px 30px rgba(11, 31, 34, .3)); }
.fly .card-btn, .fly .card-in { transform: none; }
button.fly { border-radius: 12px; border: 0; background: var(--deep); color: #fff; font-weight: 800; }
.gcard { position: fixed; z-index: 95; width: 96px; height: 132px; border-radius: 14px; pointer-events: none; border: 3px solid #fff; background: repeating-linear-gradient(62deg, rgba(255, 255, 255, .35) 0 2px, transparent 2px 9px), var(--foil); box-shadow: 0 14px 30px -10px rgba(11, 31, 34, .5); }

/* the date deck */
.deck-date { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; padding: 12px 0 20px; align-items: start; perspective: 1400px; }
.calcard { border-radius: var(--r); padding: 16px 16px 12px; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--foil) border-box; box-shadow: var(--sh); transform-origin: 50% 0; }
.deck-date.deal .calcard { animation: open .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes open { from { transform: rotateX(-82deg); opacity: 0; } to { transform: rotateX(0); opacity: 1; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-m { font-size: 20px; font-weight: 800; text-transform: capitalize; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 22px; line-height: 1; }
.cal-nav:hover { border-color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); padding: 4px 0; }
.cal-d { aspect-ratio: 1 / .86; min-height: 38px; border-radius: 10px; border: 1px solid transparent; background: #f1f4f2; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-d.we { background: #e9f3f6; }
.cal-d:hover:not(:disabled) { border-color: var(--ink); background: #fff; }
.cal-d:disabled { cursor: default; background: transparent; color: #6b7c7e; font-weight: 400; }
.cal-d.busy { background: repeating-linear-gradient(135deg, transparent 0 5px, #d5dcda 5px 6.5px); color: var(--ink3); text-decoration: line-through; }
.cal-d.on { background: var(--deep); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--violet); }
.cal-legend { font-size: 13px; color: var(--ink3); margin-top: 8px; }
.date-side { display: grid; gap: 8px; justify-items: start; padding-top: 10px; max-width: 420px; }
.ds-k { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); }
.ds-h { font-size: 34px; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.ds-p { color: var(--ink2); }
.ds-l { display: grid; gap: 4px; margin-bottom: 10px; }
.ds-l li { font-size: 18px; padding-left: 18px; position: relative; }
.ds-l li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--foil); box-shadow: inset 0 0 0 1px rgba(11, 31, 34, .3); }
.ds-l b { font-weight: 800; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 10px 22px; border-radius: 99px; font-size: 17px; font-weight: 800; line-height: 1.15; text-decoration: none; border: 2px solid var(--ink); }
.btn.primary { background: var(--ink); color: #fff; position: relative; box-shadow: 0 0 0 0 transparent; transition: box-shadow .2s, transform .15s; }
.btn.primary:hover { box-shadow: -4px 4px 0 var(--pink), 4px 4px 0 var(--cyan); transform: translateY(-2px); }
.btn.primary.quiet { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: #fff; }
.lnk { background: none; border: 0; padding: 8px 0; font-size: 15px; font-weight: 700; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the board ---------- */
.score { border-radius: 24px; padding: 18px 22px 18px; color: #fff; background: linear-gradient(160deg, #0c5158, var(--deep) 75%); position: relative; overflow: hidden; }
.score::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--foil); }
.score-l { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b9f3de; margin-top: 4px; }
.score-n { font-size: 62px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; }
.score.bump .score-n { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 0 60%; }
@keyframes bump { from { scale: 1.06; } to { scale: 1; } }
.score-d { font-size: 15px; color: #e3f3f1; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 9px; margin-top: 8px; }
.score-d b { font-size: 20px; font-weight: 800; color: #fff; white-space: nowrap; }
.bill { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px 8px; }
.bill-h { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 2px; }
.lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--soft); font-size: 16.5px; line-height: 1.25; }
.lines li:last-child { border-bottom: 0; }
.ln-l small { display: block; font-size: 13px; color: var(--ink3); }
.ln-a { font-weight: 800; white-space: nowrap; }
.ln-empty { color: var(--ink2); }
.bill-n { font-size: 13.5px; color: var(--ink2); padding: 4px 0 10px; }
.acts { display: grid; gap: 10px; }
.acts .btn { width: 100%; }
.mnote { font-size: 14px; color: var(--ink2); min-height: 0; }
.mnote:empty { display: none; }

/* ---------- details ---------- */
.det-top { display: grid; gap: 2px; margin: 4px 0 14px; justify-items: start; }
.det-h { font-size: 36px; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.det-p { color: var(--ink2); }
.det { display: grid; gap: 14px; }
.det-g { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 14px 18px 18px; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; position: relative; }
.det-g legend { float: left; width: 100%; grid-column: 1 / -1; font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; padding: 0; margin-bottom: 2px; }
.det-co, .det-person { display: contents; }
.det-co[hidden], .det-person[hidden] { display: none; }
.det-inv { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.inv-o { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border: 1.5px solid var(--line); border-radius: 99px; font-weight: 700; cursor: pointer; min-height: 44px; }
.inv-o:has(input:checked) { border-color: var(--ink); background: #f1f4f2; }
.inv-o input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; }
.fld { display: grid; gap: 4px; min-width: 0; }
.fld-l { font-size: 14px; font-weight: 700; color: var(--ink2); }
.fld-l i { font-style: normal; font-weight: 400; color: var(--ink3); }
.fld input { width: 100%; min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid #9fb0ae; background: #fff; font-size: 17px; }
.fld input:focus { outline: 3px solid var(--cyan); outline-offset: 1px; border-color: var(--ink); }
.fld.miss input { border-color: var(--err); background: #fdf1f7; }
.fld.miss .fld-l { color: var(--err); }
.det-req { font-size: 14px; color: var(--ink3); }
.det-miss { font-size: 15px; font-weight: 700; color: var(--err); background: #fdf1f7; border-radius: 12px; padding: 10px 14px; }
.det-miss[hidden] { display: none; }
.det-acts { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- the proforma ---------- */
.pfwrap { max-width: 860px; margin: 0 auto; padding-top: 8px; perspective: 1800px; }
.pfwrap.flip .pf { animation: pfin .6s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 50% 30%; }
@keyframes pfin { from { transform: rotateY(-86deg) scale(.7); opacity: .3; } to { transform: none; opacity: 1; } }
.pf { background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--sh); padding: 34px 38px 28px; position: relative; overflow: hidden; margin-top: 6px; font-size: 16.5px; }
.pf::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: radial-gradient(circle at 7px 4.5px, #fff 0 2px, transparent 2.6px) 0 0/14px 9px repeat-x, var(--foil); }
.pf-h { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.pf-h > div > .pf-k { font-size: 40px; font-weight: 200; letter-spacing: -.02em; text-transform: none; color: var(--ink); line-height: 1.05; }
.pf-k { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 4px; }
.pf-no { font-size: 20px; margin-top: 6px; }
.pf-no b { font-weight: 900; letter-spacing: .02em; }
.pf-ref { font-size: 14px; color: var(--ink3); }
.pf-meta { display: grid; grid-template-columns: auto auto; gap: 4px 14px; margin: 0; font-size: 16px; }
.pf-meta dt { color: var(--ink3); }
.pf-meta dd { font-weight: 800; text-align: right; }
.pf-parties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0 20px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); line-height: 1.5; overflow-wrap: anywhere; }
.pf-t { width: 100%; border-collapse: collapse; }
.pf-t th, .pf-t td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--soft); vertical-align: top; font-weight: 400; }
.pf-t thead th { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.pf-t .num { text-align: right; white-space: nowrap; font-weight: 700; }
.pf-t small { display: block; font-size: 13.5px; color: var(--ink3); }
.pf-t tfoot th { font-weight: 700; }
.pf-t tfoot td { font-weight: 900; font-size: 19px; }
.pf-t tfoot tr.pf-dep th, .pf-t tfoot tr.pf-dep td { background: var(--deep); color: #fff; padding: 12px 14px; font-size: 20px; border: 0; }
.pf-t tfoot tr.pf-dep th { border-radius: 12px 0 0 12px; font-weight: 800; }
.pf-t tfoot tr.pf-dep td { border-radius: 0 12px 12px 0; font-size: 24px; }
.pf-note, .pf-vat { font-size: 14.5px; color: var(--ink2); margin-top: 10px; }
.pf-bank, .pf-card { margin-top: 20px; border-radius: 18px; padding: 18px 20px; }
.pf-bank { border: 2px solid transparent; background: linear-gradient(#f3fbf8, #f3fbf8) padding-box, var(--foil) border-box; }
.pf-bank h3, .pf-card h3 { font-size: 21px; font-weight: 900; letter-spacing: -.01em; margin-bottom: 8px; }
.pf-bank dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin: 0 0 12px; }
.pf-bank dt { color: var(--ink2); }
.pf-bank dd { font-weight: 700; overflow-wrap: anywhere; }
.pf-bank dd b { font-size: 22px; font-weight: 900; }
.pf-card { border: 1px solid var(--line); background: #fafbfa; }
.pf-card p { color: var(--ink2); margin-bottom: 10px; }
.pf-copy, .pf-cardbtn, .pf-pdf, .pf-mail { min-height: 46px; padding: 8px 20px; border-radius: 99px; font-weight: 800; font-size: 16px; border: 2px solid var(--ink); background: #fff; }
.pf-copy:hover, .pf-cardbtn:hover, .pf-mail:hover { background: #f1f4f2; }
.pf-pdf { background: var(--ink); color: #fff; }
.pf-honest { margin-top: 20px; font-size: 17px; font-weight: 600; }
.pf-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pf-mnote { font-size: 14.5px; color: var(--ink2); margin-top: 8px; }
.pf-mnote:empty { display: none; }
.pf-terms { font-size: 14px; color: var(--ink3); margin-top: 14px; border-top: 1px solid var(--soft); padding-top: 12px; }
.pf-phn { font-size: 13.5px; color: var(--ink3); margin-top: 12px; text-align: center; }

/* ---------- bar (phone), toast, footer ---------- */
.bar { display: none; }
.toast { position: fixed; left: 50%; top: 14px; transform: translate(-50%, -14px); z-index: 70; max-width: min(92vw, 640px); background: var(--ink); color: #fff; font-size: 15.5px; font-weight: 600; line-height: 1.3; padding: 11px 20px 11px 36px; border-radius: 18px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 12px 30px -10px rgba(11, 31, 34, .5); }
.toast::before { content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--foil); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }
.foot { max-width: 1440px; margin: 0 auto; padding: 10px 40px 28px; font-size: 14px; color: var(--ink3); }
.foot b { color: var(--ink); font-weight: 900; }

/* ---------- Work page ---------- */
.w-hero { padding: 26px 0 22px; display: grid; gap: 10px; }
.w-hero h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 900; letter-spacing: -.035em; line-height: .95; }
.w-hero p { font-size: 19px; color: var(--ink2); max-width: 38em; font-weight: 300; }
.w-grid { align-items: start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
.film { border-radius: 24px; padding: 10px 10px 4px; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--foil) border-box; box-shadow: var(--sh); transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.film.tilting { transition: transform .08s linear; }
.film:nth-child(odd) { margin-top: 0; }
.film:nth-child(even) { margin-top: 34px; }
.film-box { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--deep); }
.film-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-ifr { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: linear-gradient(180deg, rgba(6, 52, 58, 0) 45%, rgba(6, 52, 58, .55)); display: flex; align-items: flex-end; justify-content: flex-start; gap: 12px; padding: 18px; color: #fff; font-size: 17px; font-weight: 800; }
.film-ic { width: 58px; height: 58px; border-radius: 50%; background: #fff; position: relative; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); transition: transform .2s; }
.film-ic::after { content: ""; position: absolute; left: 23px; top: 18px; border: 11px solid transparent; border-left: 17px solid var(--ink); border-right: 0; }
.film-play:hover .film-ic { transform: scale(1.1); }
.film-play span { text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.film-play:focus-visible { outline-offset: -5px; outline-color: #fff; }
.film-sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: screen; background: radial-gradient(circle at calc(var(--mx, .5) * 100%) calc(var(--my, .5) * 100%), rgba(255, 255, 255, .28), rgba(179, 161, 255, .14) 35%, transparent 65%); }
.film.tilting .film-sheen { opacity: 1; }
.film-box.playing .film-sheen { display: none; }
.film-tc { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 8% 8% 22%; color: var(--ink);
  background: repeating-linear-gradient(62deg, rgba(255, 255, 255, .32) 0 2px, transparent 2px 10px), var(--foil); background-size: auto, 220% 220%; background-position: 0 0, calc(var(--mx, .3) * 100%) calc(var(--my, .4) * 100%); }
.film-tc-t { font-size: clamp(26px, 4.2vw, 58px); font-weight: 900; letter-spacing: -.03em; line-height: .95; max-width: 9em; }
.film-tc-w { align-self: flex-start; font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .85); border: 1.5px dashed var(--ink); }
.film-tc + .film-play { background: none; color: var(--ink); }
.film-tc + .film-play span { text-shadow: none; }
.film-tc + .film-play .film-ic { background: var(--ink); box-shadow: none; }
.film-tc + .film-play .film-ic::after { border-left-color: #fff; }
.film-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 10px 10px; }
.film-cap h2 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.film-cap span { font-size: 21px; font-weight: 200; }
.w-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 56px 0 20px; }
.w-from { font-size: 18px; }
.w-from b { font-weight: 800; }
.w-from span { color: var(--ink2); }

/* ---------- in between ---------- */
@media (max-width: 1180px) {
  body.has-pk .play { grid-template-columns: minmax(0, 1fr) 312px; gap: 20px; }
  .tbl-in { grid-template-columns: 250px minmax(0, 1fr); gap: 18px; }
  .deck-add { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .deck-add .card.km { grid-column: span 2; }
  .deck-pk { gap: 12px; }
  .score-n { font-size: 54px; }
  .page, .top, .foot { padding-left: 24px; padding-right: 24px; }
  .trk-h { display: none; }
}
@media (max-width: 1020px) and (min-width: 861px) {
  .deck-add { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tbl-in { grid-template-columns: 1fr; }
  .deck-date { grid-template-columns: 1fr; }
}

/* ---------- the phone: the table on top, the hand under the thumb, the total and the next action in the bar ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .top { padding: 10px 16px 6px; }
  .brand { font-size: 22px; }
  .top-nav { gap: 4px; }
  .top-work { padding: 9px 8px; font-size: 14.5px; }
  .snd { padding: 0 12px; }
  .snd span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .lng { padding: 0 12px; }
  .page { padding: 0 16px 16px; }
  .foot { padding: 6px 16px 18px; font-size: 13px; }

  .hero { grid-template-columns: 1fr; gap: 12px; padding: 10px 0 12px; }
  .hero h1 { font-size: clamp(30px, 9.2vw, 40px); line-height: 1; }
  .hero-side { gap: 8px; max-width: none; padding: 0; }
  .from { font-size: 16.5px; padding: 6px 14px; }
  .promise { font-size: 16.5px; }
  body.has-pk .hero { display: none; }

  .play, body.has-pk .play { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.has-pk .board { position: static; }
  .board .acts .btn.primary { display: none; }

  .table { border-radius: 22px; padding: 12px 12px 20px; }
  .table.empty { padding: 10px 14px 16px; }
  .tbl-empty { font-size: 15px; gap: 12px; line-height: 1.3; }
  .tbl-in { grid-template-columns: 1fr; gap: 12px; }
  .tpk-back { padding: 14px 16px 12px; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
  .tpk-head { display: contents; }
  .tpk-head .c-kind { grid-column: 1; grid-row: 1; align-self: center; }
  .tpk-n { font-size: 27px; margin: 0; grid-column: 1; grid-row: 2; }
  .tpk-p { font-size: 25px; text-align: right; align-self: end; grid-column: 2; grid-row: 2; }
  .tpk-p small { display: block; margin: 0; }
  .tpk-body { grid-column: 1 / -1; grid-row: 3; }
  .tpk-g li, .tpk-w li, p.tpk-w { font-size: 15px; padding-top: 1px; padding-bottom: 1px; }
  .tpk-rm { grid-column: 2; grid-row: 1; justify-self: end; min-height: 34px; padding: 4px 12px; font-size: 13px; }
  body:not(.workpage) .foot { display: none; }
  .tside-h { display: none; }
  .trow { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -12px; padding: 6px 12px 8px; scrollbar-width: none; }
  .trow::-webkit-scrollbar { display: none; }
  .tc, .tc-slot { width: 88px; height: 112px; padding: 14px 8px 8px; border-radius: 12px; }
  .tc::before { height: 7px; }
  .tc-n { font-size: 13px; }
  .tc-x { font-size: 21px; }
  .tc-a { font-size: 13px; }
  .tc-day { font-size: 36px; }
  .tc-slot { font-size: 13px; }
  .tside-n { font-size: 13px; margin-top: 4px; }

  .hand { position: fixed; left: 0; right: 0; bottom: var(--bar-h); z-index: 40; background: var(--bg); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px -18px rgba(11, 31, 34, .35); }
  .trk { gap: 6px; padding: 8px 10px 0; }
  .trk-h { display: none; }
  .trk-s { flex: 1 1 0; grid-template-columns: minmax(0, 1fr); padding: 5px 8px 6px 22px; min-height: 44px; border-radius: 12px; }
  .trk-dot { position: absolute; left: 7px; top: 8px; width: 10px; height: 10px; border-width: 1.5px; }
  .trk-l { font-size: 10.5px; letter-spacing: .05em; }
  .trk-v { font-size: 13.5px; }

  .deck-pk, .deck-add { display: flex; grid-template-columns: none; gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 14px 16px 14px; justify-content: flex-start; scrollbar-width: none; overscroll-behavior-x: contain; }
  .deck-pk::-webkit-scrollbar, .deck-add::-webkit-scrollbar { display: none; }
  .deck-pk, .deck-add { scroll-padding-left: 16px; }
  .tside { order: -1; }
  .tside-n { display: none; }
  .trow { padding-top: 4px; padding-bottom: 4px; }
  .card.pk { flex: none; width: 184px; aspect-ratio: auto; height: 258px; scroll-snap-align: start; transform: rotate(calc(var(--o, 0) * 3.5deg)) translateY(calc(var(--o, 0) * var(--o, 0) * 9px)); transition: none; }
  .card.pk:hover, .card.pk:focus-within { transform: rotate(calc(var(--o, 0) * 3.5deg)) translateY(calc(var(--o, 0) * var(--o, 0) * 9px)); }
  .c-art { background-position: 0 0, calc(50% + var(--o, 0) * 45%) 50%; }
  .card.pu { flex: none; width: 152px; min-height: 0; height: 178px; scroll-snap-align: start; }
  .card.pu.km, .deck-add .card.km { width: 216px; }
  .card.pu .c-name { font-size: 17px; }
  .card.pu .c-u { font-size: 13px; }
  .stp-b, .c-minus { width: 44px; height: 44px; }
  .card-btn { touch-action: pan-x; }

  .deck-date { grid-template-columns: 1fr; padding: 10px 14px 12px; gap: 0; }
  .date-side { display: none; }
  .calcard { padding: 8px 12px 8px; border-radius: 16px; }
  .cal-head { margin-bottom: 2px; }
  .cal-nav { width: 44px; height: 40px; }
  .cal-m { font-size: 18px; }
  .cal-grid { gap: 3px; }
  .cal-wd { padding: 1px 0; font-size: 11px; }
  .cal-d { aspect-ratio: auto; min-height: 36px; height: 36px; font-size: 15.5px; }
  .cal-legend { font-size: 12px; margin-top: 5px; }

  .score { padding: 14px 18px; border-radius: 20px; }
  .score-n { font-size: 48px; }
  .det-h { font-size: 28px; }
  .det-g { grid-template-columns: 1fr; padding: 12px 14px 16px; border-radius: 18px; }
  .det-acts { display: none; }
  body[data-step="details"] .hand { border-radius: 0; }
  body[data-step="details"] .trk { padding-bottom: 8px; }
  body[data-step="proforma"] .hand { display: none; }

  .bar { display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: #fff; border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .bar-t { display: grid; flex: none; min-width: 104px; line-height: 1.1; }
  .bar-l { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
  .bar-n { font-size: 25px; font-weight: 900; letter-spacing: -.02em; white-space: nowrap; }
  .bar-d { font-size: 12px; color: var(--ink2); white-space: nowrap; }
  .bar .btn { flex: 1 1 auto; min-width: 0; min-height: 50px; padding: 6px 12px; font-size: 15.5px; }
  .toast { top: 58px; width: max-content; max-width: calc(100vw - 24px); font-size: 14.5px; transform: translate(-50%, -14px); }

  .pf { padding: 26px 16px 20px; border-radius: 18px; font-size: 16px; }
  .pf-h > div > .pf-k { font-size: 31px; }
  .pf-meta { width: 100%; grid-template-columns: 1fr auto; }
  .pf-parties { grid-template-columns: 1fr; gap: 14px; margin: 18px 0 14px; padding: 14px 0; }
  .pf-bank, .pf-card { padding: 16px 14px; }
  .pf-bank dl { grid-template-columns: 1fr; gap: 0; }
  .pf-bank dt { font-size: 13.5px; margin-top: 8px; }
  .pf-t tfoot tr.pf-dep td { font-size: 21px; }
  .pf-t tfoot tr.pf-dep th { font-size: 17px; }
  .pf-acts > button { flex: 1 1 100%; }

  .w-hero { padding: 14px 0 16px; }
  .w-hero p { font-size: 17px; }
  .w-grid { grid-template-columns: 1fr; gap: 18px; }
  .film { border-radius: 20px; padding: 8px 8px 2px; }
  .film:nth-child(even) { margin-top: 0; }
  .film-box { border-radius: 14px; }
  .film-cap h2, .film-cap span { font-size: 18px; }
  .film-ic { width: 50px; height: 50px; }
  .film-ic::after { left: 20px; top: 15px; border-width: 10px; border-left-width: 15px; }
  .film-play { padding: 12px; }
  .film-tc { justify-content: flex-start; padding: 6% 6% 0; gap: 8px; }
  .film-tc-t { font-size: 25px; }
  .film-tc-w { font-size: 13px; padding: 3px 10px; }
  .w-cta { margin: 30px 0 10px; }
}

/* ---------- calm ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card.pk, .card.pk:hover, .card.pk:focus-within, .tc:nth-child(n), .tc:hover { transform: none; }
}

/* ---------- print: the proforma only ---------- */
@media print {
  body { background: #fff; padding: 0; }
  .top, .hero, .play, .bar, .toast, .foot, .lnk, .pf-phn, .pf button, .hand { display: none !important; }
  .pfwrap { display: block; max-width: none; }
  .pf { box-shadow: none; border: 0; padding: 12px 0 0; }
  .pf-t tfoot tr.pf-dep th, .pf-t tfoot tr.pf-dep td { background: #fff; color: #000; border-top: 2px solid #000; border-bottom: 2px solid #000; border-radius: 0; }
}

/* Ys · the mark a little smaller on the phone */
@media (max-width: 560px) { .brand-m { width: 46px; } .brand-d { font-size: 13px; max-width: 6.5em; } }

/* the run of days in the calendar */
.cal-d.run { background: #d9eef0; color: var(--deep); border-radius: 6px; }
.cal-d.on.start { border-radius: 10px 6px 6px 10px; }
.cal-d.run.end { border-radius: 6px 10px 10px 6px; background: #c3e5e8; }
.ds-days { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; font-weight: 700; }
/* start over */
.tside-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tbl-reset { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 700; color: var(--teal); background: none; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; min-height: 34px; }
.tbl-reset:hover { border-color: var(--teal); }
@media (max-width: 860px) { .tside-h { justify-content: flex-end; margin-bottom: 0; } .tside-h > span { display: none; } }
.tc-day.span { font-size: 27px; font-weight: 300; letter-spacing: -.02em; white-space: nowrap; }
@media (max-width: 860px) { .tc-day.span { font-size: 22px; } }
.tbl-in > * { min-width: 0; }
@media (max-width: 860px) { .tbl-in { grid-template-columns: minmax(0, 1fr); } }
