/* v6-play: focus-mode run screen, thumb dock, ink progress path, stamps, sealed finale, celebration, perk pass hold, reject-note sheet */

/* ---------------------------------------------------------------- page + head */
.p6 { --dock-b: 16px; padding-top: calc(var(--top) + 22px); padding-bottom: 120px; }
.p6-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; margin-bottom: 14px; }
.p6-back { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; font: 600 26px/1 var(--f-display); color: var(--muted); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.3s var(--spring), color 0.2s; }
.p6-back:hover { color: var(--text); transform: translateX(-3px); }
.p6-back:active { transform: scale(0.9); }
.p6-ttl { min-width: 0; line-height: 1.15; }
.p6-ttl small { display: block; font: 600 10.5px var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p6-ttl b { display: block; margin-top: 3px; font: 700 clamp(20px, 2.4vw, 30px)/1.12 var(--f-display); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p6-crew { display: flex; } .p6-crew .avatar { width: 28px; height: 28px; margin-left: -8px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); }
.p6-count { font: 600 13px var(--f-mono); color: var(--dim); white-space: nowrap; }
.p6-count b { font: 800 22px var(--f-display); color: var(--violet-2); }

/* the ink progress path: dashed trail, gold ink fills it as steps are done */
.p6-path { grid-column: 1 / -1; position: relative; display: flex; justify-content: space-between; align-items: center; gap: 4px; margin: 10px 0 0; padding: 4px 2px; list-style: none; }
.p6-path::before, .p6-path::after { content: ''; position: absolute; left: 16px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; }
.p6-path::before { right: 16px; background: repeating-linear-gradient(90deg, rgba(240, 211, 138, 0.35) 0 6px, transparent 6px 11px); }
.p6-path::after { width: calc((100% - 32px) * var(--k, 0)); background: linear-gradient(90deg, #a3b86c, #f0d38a); box-shadow: 0 0 12px rgba(240, 211, 138, 0.6); transition: width 1.1s var(--ease); }
.p6-path li { position: relative; z-index: 1; display: flex; }
.pn { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--f-mono); color: var(--muted); cursor: pointer;
  background: #1b212b; box-shadow: inset 0 0 0 1.5px rgba(240, 211, 138, 0.3); transition: transform 0.35s var(--spring), box-shadow 0.25s; }
.pn:hover { transform: scale(1.15); }
.pn:active { transform: scale(0.9); }
.pn.done { background: linear-gradient(135deg, var(--good), var(--teal)); color: #141a0f; box-shadow: none; }
.pn.pending { background: #2a2416; box-shadow: inset 0 0 0 1.5px var(--amber); font-size: 12px; }
.pn.sealed { background: #151a22; box-shadow: inset 0 0 0 1.5px #34445f; font-size: 11px; }
.pn.rejected { box-shadow: inset 0 0 0 1.5px var(--coral); color: var(--coral); }
.pn.cur { background: linear-gradient(135deg, #f0d38a, #a9853a); color: #1a1508; box-shadow: 0 0 0 4px rgba(216, 178, 90, 0.2), 0 0 18px rgba(216, 178, 90, 0.7); animation: p6Beat 2.4s ease-in-out infinite; }
.pn.fin { background: linear-gradient(135deg, #fff3cf, #d8b25a); color: #1a1508; font-size: 14px; }
.pn.viewing { outline: 2px solid #fbf1d6; outline-offset: 3px; }
@keyframes p6Beat { 50% { box-shadow: 0 0 0 7px rgba(216, 178, 90, 0.08), 0 0 26px rgba(216, 178, 90, 0.9); } }

.p6-ban { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 16px; border-radius: 16px; }
.p6-ban > span { font-size: 26px; }
.p6-ban b { display: block; font: 700 16px var(--f-display); }
.p6-ban small { color: var(--muted); font-size: 12.5px; }
.p6-ban.replay { background: repeating-linear-gradient(135deg, rgba(163, 184, 108, 0.1) 0 14px, rgba(163, 184, 108, 0.04) 14px 28px); box-shadow: inset 0 0 0 1px rgba(163, 184, 108, 0.45); }
.p6-ban.replay b { color: #d9e6b8; }

/* ---------------------------------------------------------------- layout: card + map side by side on desktop */
.p6-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr); grid-template-areas: 'stage map' 'log map' 'next next'; gap: 22px 32px; align-items: start; }
.p6-stage { grid-area: stage; position: relative; min-width: 0; }
.p6-mappanel { grid-area: map; position: sticky; top: calc(var(--top) + 16px); min-width: 0; }
.p6-logpanel { grid-area: log; min-width: 0; }
.p6-next { grid-area: next; margin-top: 50px; }
.p6-nexth { margin: 12px 0 22px; font-size: clamp(28px, 3vw, 40px); }
.p6.anyw .p6-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr); grid-template-areas: 'stage log' 'next next'; }
.p6-tabs { display: none; grid-area: tabs; }
.p6-map { position: relative; height: calc(100vh - var(--top) - 90px); min-height: 380px; max-height: 760px; border-radius: 26px; overflow: hidden; background: #12161c; box-shadow: var(--shadow), inset 0 0 0 1px rgba(240, 211, 138, 0.2); }
.p6-map #rmap { position: absolute; inset: 0; }
.p6-map.sk { height: 420px; }
.p6-mappanel.nomap .p6-map::after { content: attr(data-nomap); position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 14px; }
.p6-recenter { position: absolute; z-index: 2; right: 12px; top: 12px; width: 42px; height: 42px; border: 0; border-radius: 14px; font-size: 20px; color: #f0d38a; background: rgba(16, 19, 24, 0.82); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.35); transition: transform 0.3s var(--spring); }
.p6-recenter:active { transform: scale(0.88); }
.p6-gps { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.pin.p6-cur { background: linear-gradient(135deg, #f0d38a, #a9853a); color: #1a1508; box-shadow: 0 0 0 5px rgba(216, 178, 90, 0.25), 0 0 20px rgba(216, 178, 90, 0.8); }
.pin.p6-view { transform: scale(1.25); z-index: 3; }
button.pin { border: 0; font: inherit; }

/* ---------------------------------------------------------------- the focus card */
.p6-card { position: relative; padding: 22px 22px 24px; border-radius: 28px; touch-action: pan-y;
  background: linear-gradient(170deg, rgba(42, 48, 60, 0.94), rgba(22, 26, 33, 0.96) 60%); box-shadow: 0 30px 70px -34px #000, inset 0 0 0 1px rgba(240, 211, 138, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.p6-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0.5;
  background: radial-gradient(120% 60% at 100% 0%, hsla(var(--h, 42), 60%, 60%, 0.14), transparent 60%); }
.p6-card.st-done { box-shadow: 0 30px 70px -34px #000, inset 0 0 0 1px rgba(159, 194, 94, 0.35); }
.p6-card.st-pending { box-shadow: 0 30px 70px -34px #000, inset 0 0 0 1px rgba(233, 169, 79, 0.4); }
.p6-card.st-sealed { box-shadow: 0 30px 70px -34px #000, inset 0 0 0 1px #34445f; }
.p6-ctop { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.p6-ctop .ptag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.p6-pillrow { margin-top: 12px; }
.p6-pillrow + .p6-title { margin-top: 8px; }
.p6-no { font: 700 12px var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-2); }
.p6-no small { font-size: inherit; color: var(--dim); }
.p6-ctop .ptag { font-size: 12px; }
.p6-ctop .pill { padding: 4px 10px; font-size: 11.5px; }
.p6-sealpill { background: rgba(52, 68, 95, 0.4); color: var(--sky); box-shadow: inset 0 0 0 1px #34445f; }
.p6-arr { width: 36px; height: 36px; flex: none; border: 0; border-radius: 12px; font: 600 22px/1 var(--f-display); color: var(--muted); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.3s var(--spring), background 0.2s; }
.p6-arr:hover:not(:disabled) { color: var(--text); background: rgba(240, 211, 138, 0.14); }
.p6-arr:active:not(:disabled) { transform: scale(0.86); }
.p6-arr:disabled { opacity: 0.25; cursor: default; }
.p6-title { margin: 12px 0 14px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.05; overflow-wrap: anywhere; }
.p6-instr { position: relative; margin-top: 4px; padding: 16px 18px; border-radius: 6px 18px 8px 16px; background: #f4ead3; color: #1f2632; font: 500 17px/1.55 var(--f-display); white-space: pre-wrap; overflow-wrap: anywhere;
  box-shadow: 0 16px 34px -22px #000, inset 0 0 0 1px rgba(110, 80, 30, 0.15); transform: rotate(-0.4deg); }
.p6-instr::after { content: ''; position: absolute; right: 14px; top: -7px; width: 46px; height: 16px; background: rgba(240, 211, 138, 0.55); transform: rotate(4deg); border-radius: 2px; }
.p6-instr.dim { background: rgba(244, 234, 211, 0.08); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transform: none; }
.p6-instr.dim::after { display: none; }
.p6-ref { width: 100%; margin-top: 14px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.p6-tip { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 14px; color: var(--muted); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.p6-hint { margin-top: 12px; }
.p6-hint summary { cursor: pointer; color: var(--amber); font-size: 14.5px; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(233, 169, 79, 0.08); box-shadow: inset 0 0 0 1px rgba(233, 169, 79, 0.28); transition: transform 0.3s var(--spring); }
.p6-hint summary::-webkit-details-marker { display: none; }
.p6-hint summary:active { transform: scale(0.95); }
.p6-hint[open] summary { background: rgba(233, 169, 79, 0.16); }
.p6-hint p { margin-top: 10px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; animation: fadeUp 0.35s var(--ease); }
.p6-reject { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(224, 103, 79, 0.1); box-shadow: inset 0 0 0 1px rgba(224, 103, 79, 0.4); color: #f3c6bb; font: italic 500 15.5px/1.45 var(--f-display); }
.p6-reject b { display: block; font: 700 11px var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; font-style: normal; color: var(--coral); margin-bottom: 4px; }
.p6-card .proofbox { margin-top: 16px; }
.p6-card .proofbox:empty { display: none; }
.p6-field { display: flex; flex-direction: column; gap: 6px; }
.p6-field > span { font: 600 11px var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.p6-answer { font: 700 22px var(--f-mono) !important; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 16px !important; }
.p6-cam { aspect-ratio: 16 / 10; }
.p6-cam.has .center { display: none; }
.skip-step { margin-top: 12px; }

/* compass + distance bar */
.p6-navs { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0 0 14px; padding: 10px 12px; border-radius: 20px; background: rgba(16, 19, 24, 0.55); box-shadow: inset 0 0 0 1px rgba(163, 184, 108, 0.28); transition: box-shadow 0.4s, background 0.4s; }
.p6-compass { position: relative; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, #1f2632 55%, #151a22 56%); box-shadow: inset 0 0 0 2px rgba(240, 211, 138, 0.35), 0 6px 16px -6px #000; }
.p6-compass .rose { position: absolute; inset: 4px; border-radius: 50%; transition: transform 0.35s var(--ease);
  background: repeating-conic-gradient(from -2deg, rgba(240, 211, 138, 0.5) 0 4deg, transparent 4deg 45deg); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%); }
.p6-compass .rose b { position: absolute; left: 50%; top: -2px; transform: translateX(-50%); font: 800 9px var(--f-mono); color: var(--coral); }
.p6-compass .needle { position: absolute; left: 50%; top: 50%; width: 14px; height: 40px; margin: -20px 0 0 -7px; transition: transform 0.45s var(--spring); opacity: 0.25;
  background: linear-gradient(#f0d38a 0 50%, #5c6a80 50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); filter: drop-shadow(0 0 6px rgba(240, 211, 138, 0.6)); }
.p6-navs.live .needle { opacity: 1; }
.p6-dist { min-width: 0; }
.p6-dist b { display: block; font: 700 19px/1.15 var(--f-display); }
.p6-dist small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p6-bar { position: relative; height: 8px; margin: 8px 22px 0 0; border-radius: 99px; background: rgba(255, 255, 255, 0.07); }
.p6-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #a9853a, #f0d38a); box-shadow: 0 0 10px rgba(240, 211, 138, 0.6); transition: width 0.8s var(--ease); }
.p6-bar .flag { position: absolute; right: -22px; top: 50%; transform: translateY(-55%); font-size: 15px; }
.p6-navs:not(.live) .p6-bar i { width: 30% !important; background: linear-gradient(90deg, transparent, rgba(240, 211, 138, 0.4), transparent); animation: p6Scan 1.3s linear infinite; }
@keyframes p6Scan { from { left: -30%; } to { left: 100%; } }
.p6-navs.in { background: rgba(159, 194, 94, 0.14); box-shadow: inset 0 0 0 1.5px rgba(159, 194, 94, 0.7), 0 0 30px -8px rgba(159, 194, 94, 0.7); }
.p6-navs.in b { color: #cde6a0; }
.p6-navs.in .p6-bar i { background: linear-gradient(90deg, #7fa24a, #cde6a0); }
.p6-navs.fuzzy small { color: var(--amber); }
.p6-mapbtn { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; font-size: 20px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.3s var(--spring); }
.p6-mapbtn:active { transform: scale(0.88); }
.p6-dirbtn { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; min-height: 30px; padding: 3px 11px; border-radius: 99px; font: 600 12.5px var(--f-body); color: var(--text); text-decoration: none; white-space: nowrap;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); transition: background 0.2s, transform 0.3s var(--spring); }
.p6-dirbtn:hover { background: rgba(240, 211, 138, 0.12); }
.p6-dirbtn:active { transform: scale(0.94); }
/* the first step is where everyone starts: pulse Directions a few times so it is easy to spot (Stacey, 2026-10-04) */
.p6-dirflash { animation: p6-dirflash 1.3s ease-in-out 7; }
@keyframes p6-dirflash { 0%, 100% { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); transform: scale(1); } 50% { background: rgba(240, 211, 138, 0.38); box-shadow: inset 0 0 0 2px rgba(240, 211, 138, 0.95), 0 0 16px 3px rgba(240, 211, 138, 0.55); transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .p6-dirflash { animation: none; background: rgba(240, 211, 138, 0.25); box-shadow: inset 0 0 0 2px rgba(240, 211, 138, 0.8); } }

/* collect: the hunt is the hero */
.p6-hunt { width: 100%; margin: 0 0 14px; padding: 16px; border: 0; border-radius: 22px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; grid-template-areas: 'e t n' 'd d d' 'c c c'; gap: 10px 12px; align-items: center; text-align: left; color: var(--text); cursor: pointer;
  background: radial-gradient(120% 90% at 0% 0%, rgba(216, 178, 90, 0.26), rgba(216, 178, 90, 0.06)); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.45), 0 18px 40px -24px rgba(216, 178, 90, 0.6); transition: transform 0.3s var(--spring); }
.p6-hunt:hover { transform: translateY(-2px); }
.p6-hunt:active { transform: scale(0.97); }
.p6-hunt-e { grid-area: e; font-size: 50px; line-height: 1; animation: bob 3s ease-in-out infinite; }
.p6-hunt-t { grid-area: t; min-width: 0; }
.p6-hunt-t b { display: block; font: 700 20px/1.15 var(--f-display); }
.p6-hunt-t small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.p6-hunt-n { grid-area: n; font: 800 30px var(--f-mono); color: var(--amber); }
.p6-hunt-n small { font-size: 16px; color: var(--dim); }
.p6-hunt-dots { grid-area: d; display: flex; flex-wrap: wrap; gap: 6px; }
.p6-hunt-dots i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 17px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); }
.p6-hunt-dots i.on { background: rgba(159, 194, 94, 0.16); box-shadow: inset 0 0 0 1px rgba(159, 194, 94, 0.5); }
.p6-hunt-cta { grid-area: c; display: block; text-align: right; font: 600 13px var(--f-mono); letter-spacing: 0.06em; color: var(--violet-2); opacity: 0.85; }

/* done / pending / waiting */
.p6-donebox { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(159, 194, 94, 0.06); box-shadow: inset 0 0 0 1px rgba(159, 194, 94, 0.25); }
.p6-donebox p { margin: 0; }
.p6-ink { align-self: flex-start; padding: 4px 14px; border: 3px double var(--good); border-radius: 8px; color: var(--good); font: 800 16px var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; transform: rotate(-6deg); }
.p6-proofimg { width: 100%; max-height: 320px; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 4px #f4ead3, 0 16px 30px -14px #000; transform: rotate(-1deg); margin: 6px 0; }
.p6-quote { margin: 0; font: italic 500 17px/1.45 var(--f-serif); color: #efe6d2; overflow-wrap: anywhere; }
.p6-wait { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(233, 169, 79, 0.08); box-shadow: inset 0 0 0 1px rgba(233, 169, 79, 0.3); margin-bottom: 12px; }
.p6-wait b { display: block; font: 600 16px/1.3 var(--f-display); }
.p6-wait small { color: var(--muted); font-size: 13px; }
.p6-envelope { font-size: 36px; animation: bob 3s ease-in-out infinite; }
.p6-plist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.p6-plist .eyebrow { margin-bottom: 2px; font-size: 10.5px; }
.p6-prow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 8px 12px 8px 8px; border: 0; border-radius: 16px; text-align: left; color: var(--text); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.3s var(--spring), background 0.2s; }
.p6-prow:hover { background: rgba(240, 211, 138, 0.08); transform: translateX(3px); }
.p6-prow:active { transform: scale(0.97); }
.p6-prow img, .p6-prow .ic { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; font-size: 20px; background: rgba(255, 255, 255, 0.05); }
.p6-prow b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p6-prow small { color: var(--amber); font-size: 12.5px; }
.p6-prow i { font-style: normal; color: var(--dim); font-size: 20px; }
.p6-finale { text-align: center; }
.p6-fseal { width: 132px; height: 132px; margin: 4px auto 12px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.55)); animation: p6Float 5s ease-in-out infinite; }
@keyframes p6Float { 50% { transform: translateY(-6px) rotate(3deg); } }
.p6-flead { font: 500 19px/1.4 var(--f-display); margin: 0 auto; max-width: 440px; }
.p6-flead b { color: var(--violet-2); }
.p6-flead .dim { font-size: 15px; }
.p6-finale .p6-plist { text-align: left; }
.p6-fnote { margin-top: 14px; font-size: 13px; }
.p6-link { border: 0; background: none; padding: 0; color: var(--teal); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* completed summary */
.p6-end { text-align: center; }
.p6-endseal { width: 150px; height: 150px; margin: 0 auto 10px; transform: rotate(-8deg); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); }
.p6-stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.p6-stats span { min-width: 88px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; }
.p6-stats b { display: block; font: 800 22px var(--f-display); color: var(--text); letter-spacing: 0; text-transform: none; }
.p6-endbtns { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.p6-emptynext h3 { margin-top: 8px; }

/* ---------------------------------------------------------------- transitions: slide in, stamp, bump */
.p6-card.enter-next { animation: p6InR 0.55s var(--spring) both; }
.p6-card.enter-prev { animation: p6InL 0.55s var(--spring) both; }
.p6-card.enter-reveal { animation: p6Reveal 0.7s var(--spring) both; }
@keyframes p6InR { from { opacity: 0; transform: translateX(60px) rotate(2deg) scale(0.97); } }
@keyframes p6InL { from { opacity: 0; transform: translateX(-60px) rotate(-2deg) scale(0.97); } }
@keyframes p6Reveal { from { opacity: 0; transform: perspective(900px) rotateX(-24deg) scale(0.94); } }
.p6-card.bump { animation: p6Bump 0.35s var(--ease); }
@keyframes p6Bump { 30% { transform: translateX(-8px); } 60% { transform: translateX(5px); } }
.p6-card.stamped { animation: p6Out 0.45s var(--ease) 0.75s forwards; }
@keyframes p6Out { to { opacity: 0; transform: translateX(-70px) rotate(-3deg) scale(0.96); } }
.p6-stamp { position: absolute; z-index: 5; left: 50%; top: 38%; display: flex; flex-direction: column; align-items: center; padding: 10px 26px 8px; border: 6px double currentColor; border-radius: 16px; pointer-events: none;
  background: rgba(16, 19, 24, 0.55); backdrop-filter: blur(2px); animation: p6Slam 0.55s var(--spring) both; }
.p6-stamp b { font: 800 clamp(34px, 9vw, 52px)/1 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase; }
.p6-stamp small { font: 700 11px var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 4px; }
.p6-stamp.ok { color: #b8dd7a; text-shadow: 0 0 24px rgba(159, 194, 94, 0.6); }
.p6-stamp.sent { color: var(--amber); }
@keyframes p6Slam { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.6) rotate(-24deg); } 60% { opacity: 1; transform: translate(-50%, -50%) scale(0.94) rotate(-9deg); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-11deg); } }

/* ---------------------------------------------------------------- the thumb dock */
.p6-dock { position: sticky; z-index: 40; bottom: 18px; margin-top: 16px; }
.p6-dock.empty { display: none; }
.p6-dock-in { border-radius: 22px; padding: 6px; background: rgba(16, 19, 24, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 50px -18px #000, inset 0 0 0 1px var(--line-2); animation: p6DockIn 0.45s var(--spring); }
@keyframes p6DockIn { from { transform: translateY(20px); opacity: 0; } }
.p6-go { min-height: 60px; flex-direction: column; gap: 1px; padding: 12px 18px !important; border-radius: 18px !important; transition: transform 0.25s var(--spring), box-shadow 0.3s, filter 0.2s; -webkit-tap-highlight-color: transparent; }
.p6-go .lbl { display: block; max-width: 100%; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p6-go small { font: 600 12px var(--f-mono); opacity: 0.72; }
.p6-go:active, .p6-go.press { transform: scale(0.95) !important; filter: brightness(1.08); }
.p6-go.soft { color: var(--text); background: rgba(240, 211, 138, 0.1); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.35); }
.p6-go-arr { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; }
.p6-go.soft .lbl { padding-right: 22px; }
.p6-go[disabled] { opacity: 0.55; }
.p6-dock-in.hot .p6-go { animation: p6Hot 1.6s ease-in-out infinite; }
@keyframes p6Hot { 50% { box-shadow: 0 0 0 6px rgba(240, 211, 138, 0.18), 0 14px 40px -8px rgba(240, 211, 138, 0.9); } }
.p6-dock-in.cool .p6-go { background: rgba(143, 176, 221, 0.12); color: var(--sky); box-shadow: inset 0 0 0 1px rgba(143, 176, 221, 0.4); opacity: 1; }
.p6-dock-in.busy { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 6px 8px 6px 20px; font-weight: 600; }
.p6-spin { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 3px solid rgba(240, 211, 138, 0.2); border-top-color: #f0d38a; animation: spin 0.8s linear infinite; }

/* ---------------------------------------------------------------- journey log + tabs */
.p6-log { padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.p6-logh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.p6-logh h3 { font-size: 20px; }
.p6-logh .mono { font-size: 12px; }
.p6-log ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.p6-row { position: relative; width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border: 0; border-radius: 14px; text-align: left; color: var(--text); background: transparent; transition: background 0.2s, transform 0.3s var(--spring); }
.p6-row:hover { background: rgba(255, 255, 255, 0.05); }
.p6-row:active { transform: scale(0.98); }
.p6-row.viewing { background: rgba(240, 211, 138, 0.09); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.3); }
.p6-row .jn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--f-mono); background: #1b212b; box-shadow: inset 0 0 0 1.5px rgba(240, 211, 138, 0.3); color: var(--muted); }
.p6-row.done .jn { background: linear-gradient(135deg, var(--good), var(--teal)); color: #141a0f; box-shadow: none; }
.p6-row.pending .jn { box-shadow: inset 0 0 0 1.5px var(--amber); }
.p6-row.cur .jn { background: linear-gradient(135deg, #f0d38a, #a9853a); color: #1a1508; }
.p6-row .t { min-width: 0; }
.p6-row .t b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p6-row.done .t b { color: var(--muted); }
.p6-row .t small { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p6-row img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.p6-row:not(:last-child)::after { content: ''; position: absolute; left: 25px; top: 44px; height: 8px; border-left: 2px dotted rgba(240, 211, 138, 0.25); }
.p6-logfoot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); text-align: center; }

/* ---------------------------------------------------------------- phones + tablets: one column, tabs for map / journey */
@media (max-width: 900px) {
  .p6-grid, .p6.anyw .p6-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'stage' 'tabs' 'panel' 'next'; gap: 16px; }
  .p6.located .p6-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); }
  .p6-tabs button { padding: 11px 8px; border: 0; border-radius: 14px; font: 600 14.5px var(--f-body); color: var(--muted); background: transparent; transition: background 0.25s, color 0.25s, transform 0.3s var(--spring); }
  .p6-tabs button small { font: 600 11px var(--f-mono); opacity: 0.7; }
  .p6-tabs button.on { color: #1a1508; background: linear-gradient(115deg, #f0d38a, #d8b25a); box-shadow: 0 8px 20px -10px rgba(216, 178, 90, 0.8); }
  .p6-tabs button:active { transform: scale(0.95); }
  .p6-mappanel, .p6-logpanel { grid-area: panel; position: static; }
  .p6.located[data-tab='map'] .p6-logpanel, .p6.located[data-tab='log'] .p6-mappanel { display: none; }
  .p6.anyw .p6-logpanel { grid-area: panel; }
  .p6-map { height: min(56vh, 460px); min-height: 300px; }
  .p6-mapbtn { display: grid; place-items: center; }
  .p6-next { margin-top: 30px; }
}
@media (max-width: 760px) {
  /* full-bleed page that clips sideways: slide-in and swipe transforms must never widen a phone's layout viewport */
  .p6 { width: 100%; padding: calc(12px + env(safe-area-inset-top)) 16px calc(var(--dock-b) + 110px); overflow-x: clip; }
  .p6-head { gap: 2px 10px; margin-bottom: 12px; }
  .p6-back { width: 38px; height: 38px; font-size: 24px; }
  .p6-ttl b { font-size: 19px; }
  .p6-count b { font-size: 19px; }
  .pn { width: 26px; height: 26px; font-size: 11px; }
  .p6-path { margin-top: 8px; }
  .p6-card { padding: 16px 16px 20px; border-radius: 24px; }
  .p6-title { font-size: 27px; margin: 10px 0 12px; }
  .p6-instr { font-size: 16.5px; padding: 14px 15px; }
  .p6-arr { width: 34px; height: 34px; }
  .p6-dock { position: fixed; left: 10px; right: 10px; bottom: var(--dock-b); margin: 0; z-index: 95; }
  .p6-dock-in { border-radius: 24px; }
  .p6-go { min-height: 58px; }
  .p6-hunt { grid-template-columns: 50px minmax(0, 1fr) auto; padding: 14px; }
  .p6-hunt-e { font-size: 42px; }
  .p6-hunt-t b { font-size: 18px; }
  .p6-log { padding: 14px 10px; }
  .p6-ban { padding: 10px 12px; }
  .p6-stats span { min-width: 76px; }
  .dial { width: 38px; }
}
@media (max-width: 360px) { .p6-ctop .ptag { display: none; } .dial { width: 34px; } }

/* ---------------------------------------------------------------- skeleton */
.sk { border-radius: 10px; background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 70%); background-size: 300% 100%; animation: skel 1.4s infinite; }
.sk-line { height: 14px; margin: 10px 0; } .sk-block { border-radius: 16px; margin: 12px 0; }
.sk-dot { width: 30px; height: 30px; border-radius: 50%; display: inline-block; flex: none; }
.w30 { width: 30%; } .w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.p6-skel .p6-path::after { display: none; }

/* ---------------------------------------------------------------- celebration: spectacular, tidy, fits a 390px phone */
.p6-cel { z-index: 150; padding: max(20px, env(safe-area-inset-top)) 16px 28px; place-items: start center; overflow-x: hidden; }
.p6-cel.out { animation: fadeOut 0.3s forwards; }
.cel6 { position: relative; width: min(480px, 100%); margin: auto; padding-top: 6px; text-align: center; }
.cel6 > * { position: relative; }
.cel6-rays { position: absolute !important; left: 50%; top: 96px; width: 620px; height: 620px; margin: -310px 0 0 -310px; pointer-events: none; opacity: 0.55; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(240, 211, 138, 0.22) 0 7deg, transparent 7deg 20deg); -webkit-mask: radial-gradient(circle, #000 12%, transparent 62%); mask: radial-gradient(circle, #000 12%, transparent 62%); animation: spin 40s linear infinite; }
.cel6-seal { width: 170px; height: 170px; margin: 0 auto 8px; }
.cel6-eb { justify-content: center; }
.cel6-h { margin: 8px 0 2px; font-size: clamp(48px, 13vw, 96px); animation: zoomIn 0.9s var(--spring); }
.cel6-q { margin: 0 0 8px; font: italic 500 17px var(--f-serif); color: var(--muted); overflow-wrap: anywhere; }
.cel6-pts { display: flex; flex-direction: column; align-items: center; }
.cel6-pts .big-points { font-size: clamp(56px, 16vw, 100px); }
.cel6-pts small { color: var(--muted); font-size: 13.5px; }
.cel6-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; animation: fadeUp 0.6s var(--ease) 0.9s both; }
.cel6-stats span { padding: 6px 12px; border-radius: 99px; font: 600 13px var(--f-mono); color: #f5e2b0; background: rgba(216, 178, 90, 0.12); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cel6-perk { width: 100%; margin-top: 18px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border: 0; border-radius: 20px; text-align: left; color: #1d1100; cursor: pointer;
  background: linear-gradient(115deg, #f5e2b0, #ffb56b 55%, #e98a6a); box-shadow: 0 20px 44px -16px rgba(255, 150, 90, 0.85); animation: fadeUp 0.6s var(--ease) 1.1s both; transition: transform 0.3s var(--spring); }
.cel6-perk:active { transform: scale(0.97); }
.cel6-perk .ic { font-size: 34px; }
.cel6-perk .tx { min-width: 0; }
.cel6-perk b { display: block; font: 800 17px/1.2 var(--f-display); }
.cel6-perk small { display: block; font-size: 13px; opacity: 0.8; overflow-wrap: anywhere; }
.cel6-perk .go { font: 700 13px var(--f-body); white-space: nowrap; }
.cel6-rate { margin-top: 18px; padding: 14px 16px 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2); animation: fadeUp 0.6s var(--ease) 1.3s both; }
.cel6-rl { color: var(--muted); font-size: 14.5px; }
.cel6 .stars-pick, .sheet .stars-pick { margin: 8px 0; gap: 4px; }
.cel6 .stars-pick button, .sheet .stars-pick button { font-size: 40px; }
.cel6-more { display: flex; flex-direction: column; gap: 10px; animation: fadeUp 0.35s var(--ease); }
.cel6-more[hidden] { display: none; }
.cel6-more textarea { width: 100%; min-height: 76px; max-width: none; margin: 0; }
.cel6-share { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; animation: fadeUp 0.6s var(--ease) 1.45s both; }
.cel6-share .btn { padding: 11px 6px; white-space: nowrap; }
.cel6-close { margin-top: 10px; }
.cel6-actions { margin-top: 22px; }
body.p6-celebrating .unlock-pop { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); width: min(380px, calc(100vw - 24px)); gap: 12px; padding: 12px 18px 12px 12px; border-radius: 20px; }
body.p6-celebrating .unlock-pop .ico { width: 48px; height: 48px; font-size: 26px; }
body.p6-celebrating .unlock-pop b { font-size: 17px; margin-top: 2px; }
body.p6-celebrating .unlock-pop small { display: block; font-size: 12.5px; line-height: 1.35; }
body.p6-celebrating .unlock-pop > div:last-child { min-width: 0; flex: 1; }
body.p6-celebrating .toasts { display: none; }

/* ---------------------------------------------------------------- perk pass + the staff hold */
.p6-passov { z-index: 160; }
.p6-passov.out { animation: fadeOut 0.25s forwards; }
.p6-passwrap { width: min(420px, 100%); display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.p6-pass { width: 100%; padding: 30px 22px; }
.p6-pass-k { font: 700 12px var(--f-mono); letter-spacing: 0.2em; opacity: 0.7; }
.p6-pass-perk { font: 800 clamp(24px, 7vw, 30px)/1.1 var(--f-display); margin-top: 12px; overflow-wrap: anywhere; }
.p6-pass-partner { margin-top: 6px; font-weight: 600; }
.p6-pass .code { font-size: clamp(28px, 10vw, 44px); overflow-wrap: anywhere; }
.p6-pass-meta { margin-top: 12px; font-size: 13px; opacity: 0.8; }
.p6-pass-demo { margin-top: 12px; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, 0.12); padding: 8px 10px; border-radius: 10px; }
.p6-pass-terms { margin-top: 10px; font-size: 12px; opacity: 0.8; }
.p6-pass-done { display: inline-block; margin-top: 14px; padding: 4px 14px; border: 4px double #6e2416; border-radius: 10px; font: 800 16px var(--f-display); color: #6e2416; transform: rotate(-6deg); animation: slam 0.6s var(--spring) both; }
.p6-pass-help { font-size: 13.5px; }
.p6-hold { --p: 0; position: relative; overflow: hidden; width: 100%; min-height: 58px; padding: 0 18px; border: 0; border-radius: 18px; color: #f5e2b0; font: 700 15.5px var(--f-body); cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none;
  background: rgba(22, 26, 33, 0.9); box-shadow: inset 0 0 0 1.5px rgba(240, 211, 138, 0.5); transition: transform 0.25s var(--spring); }
.p6-hold .fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p)); background: linear-gradient(90deg, #a9853a, #f0d38a); }
.p6-hold .tx { position: relative; }
.p6-hold.holding { transform: scale(0.97); }
.p6-hold .tx { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.6); }
.p6-hold.holding .tx { mix-blend-mode: normal; }
.p6-hold.busy { color: #1a1508; }
.p6-hold.busy .fill { transform: none; }
.p6-hold.nudge { animation: wobble 0.45s; }

/* ---------------------------------------------------------------- maker review: reject note sheet with quick picks */
.rs-sheet h2 { font-size: 26px; margin: 4px 0 6px; }
.rs-who { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.rs-who .avatar { width: 30px; height: 30px; }
.rs-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.rs-pick { padding: 9px 13px; border: 0; border-radius: 99px; font: 600 13.5px var(--f-body); color: var(--text); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.25s var(--spring), background 0.2s, box-shadow 0.2s; }
.rs-pick:active { transform: scale(0.93); }
.rs-pick.on { color: #fff; background: rgba(224, 103, 79, 0.22); box-shadow: inset 0 0 0 1.5px var(--coral); }
.rs-sheet textarea { width: 100%; min-height: 84px; }
.rs-btns { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.rs-sheet .sheet { padding: 30px 22px 22px; }

@media (prefers-reduced-motion: reduce) {
  .p6-card.stamped { animation: none; }
  .cel6-rays, .pn.cur, .p6-fseal, .p6-hunt-e, .p6-envelope { animation: none !important; }
}
.rs-sheet .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p6-pass-pin { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 99px; font: 600 12px var(--f-mono); letter-spacing: 0.08em; background: rgba(0, 0, 0, 0.1); }
.p6-pass-pin b { font-size: 15px; letter-spacing: 0.25em; margin-left: 4px; }
.p6-pinpad { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: rgba(22, 26, 33, 0.9); box-shadow: inset 0 0 0 1.5px rgba(240, 211, 138, 0.5); animation: fadeUp 0.35s var(--ease); }
.p6-pinpad[hidden] { display: none; }
.p6-pinpad label { font-size: 13.5px; color: var(--muted); text-align: center; }
.p6-pinpad input { flex: 1; min-width: 0; text-align: center; font: 800 26px var(--f-mono) !important; letter-spacing: 0.4em; }

/* toasts float above the thumb dock on the run screen, and never swallow a tap meant for it */
body.p6-on .toast { pointer-events: none; }
body.p6-on .toasts { bottom: 104px; }
@media (max-width: 760px) { body.p6-on .toasts { bottom: var(--p6-toast-b, 176px); } }
.proofbox.cooling .lockbox, .proofbox.cooling .p6-field { opacity: 0.5; filter: grayscale(0.4); transition: opacity 0.3s; }
.proofbox.cooling .p6-field > span::after { content: attr(data-cool); color: var(--sky); }

.p6-fb { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; font-weight: 600; color: #f3c6bb; background: rgba(224, 103, 79, 0.1); box-shadow: inset 0 0 0 1px rgba(224, 103, 79, 0.4); }
.p6-fb.pop { animation: fadeUp 0.35s var(--ease); }
.p6-no { white-space: nowrap; flex: none; }
body.p6-on .toasts { left: 12px; right: 12px; transform: none; }
body.p6-on .toast { max-width: min(440px, 100%); }
body.p6-on .toasts .toast:not(:last-child) { display: none; }
@media (max-width: 760px) { .p6-no { letter-spacing: 0.1em; } }
.p6-card .dial { width: 52px; }
@media (max-width: 360px) { .p6-card .dial { width: 42px; } }
.p6-ghost { margin-bottom: 14px; }
.p6-ghost b { overflow-wrap: anywhere; }
.rs-sheet textarea { min-height: 108px; }
/* Spanish runs longer: tighter tracking on the small caps labels so they fit the same rows */
:lang(es) .p6-ctop .ptag { letter-spacing: 0.03em; }
:lang(es) .p6-no { letter-spacing: 0.08em; }
:lang(es) .f-title b { font-size: 17px; line-height: 1.15; }
:lang(es) .f-title small { display: block; line-height: 1.3; }
:lang(es) .f-hint { top: calc(112px + env(safe-area-inset-top)); }
