/* play.css: Side by side (/play/) of Cinco Chaminés, a made-up example: the time bar with the
   slider bounded by the real-data window, the two frames and the ticker between them.
   Uses the site's tokens (site.css) and the badges of stay.css. Code Apache-2.0.
   developer.algarve-holiday-homes@AgentiCCells.dinis (instance E), 2026-11-18, round 3. */
.play-main{padding:var(--s3) var(--s4) var(--s6);max-width:none;width:100%}
body.mode-play .dock{display:none}
.mode-note{margin:0 0 var(--s3);color:var(--ink-2);max-width:1100px}
.timebar{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;grid-template-areas:"btn speed now tour" "rail rail rail rail" "legend legend legend legend" "synth synth synth synth";gap:var(--s2) var(--s4);align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:var(--s3) var(--s4);margin:0 0 var(--s3)}
.tb-buttons{grid-area:btn;display:flex;gap:4px}
.tb-speed{grid-area:speed;display:flex;gap:2px;border:1px solid var(--line);border-radius:var(--r);padding:2px}
.tb,.tb-speed button,.vt{font:inherit;font-size:.875rem;border:1px solid var(--ink-2);background:var(--surface);color:var(--ink);border-radius:var(--r);padding:5px 10px;cursor:pointer;white-space:nowrap}
.tb-play{min-width:5.2em;background:var(--ink);color:var(--bg);border-color:var(--ink)}
.tb-speed button{border:0}
.tb-speed button[aria-checked="true"],.vt[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.tb-now{grid-area:now;margin:0;display:flex;flex-direction:column;line-height:1.25;font-family:var(--mono);font-size:.8125rem}
.tb-now b{font-family:var(--f);font-size:1rem}
.rail-wrap{grid-area:rail;padding:10px 12px 0;min-width:0}
.rail{position:relative;height:30px;cursor:pointer;touch-action:none}
.rail::before{content:"";position:absolute;left:0;right:0;top:13px;height:4px;background:var(--line);border-radius:2px}
.rail-wx span{position:absolute;top:5px;height:12px;border:1px solid var(--real);background:repeating-linear-gradient(135deg,var(--real-bg) 0 4px,color-mix(in srgb,var(--real) 35%,var(--real-bg)) 4px 6px);border-radius:3px}
.rail-ev span{position:absolute;top:20px;height:3px;background:var(--sea);border-radius:2px}
.thumb{position:absolute;top:0;width:26px;height:26px;margin-left:-13px;border-radius:50%;background:var(--ink);border:3px solid var(--surface);box-shadow:0 0 0 2px var(--ink);cursor:grab}
.thumb:focus-visible{outline:3px solid var(--sea);outline-offset:3px}
.ticks{position:relative;height:18px;font-size:.6875rem;color:var(--ink-2)}
.ticks span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.ticks span:first-child{transform:none}
.rail-legend{grid-area:legend;list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:var(--s1) var(--s4);color:var(--ink-2)}
.rail-legend i{display:inline-block;width:22px;height:10px;vertical-align:middle;border-radius:2px}
.lg-wx{border:1px solid var(--real);background:repeating-linear-gradient(135deg,var(--real-bg) 0 4px,color-mix(in srgb,var(--real) 35%,var(--real-bg)) 4px 6px)}
.lg-ev{height:3px!important;background:var(--sea)}
.synth{grid-area:synth}
.play-note{grid-column:1 / -1;margin:0;min-height:1.2em;color:var(--ink-2)}
.view-toggle{display:flex;gap:4px;margin:0 0 var(--s2);flex-wrap:wrap}
.frames{display:grid;grid-template-columns:minmax(0,1fr) 290px minmax(0,1fr);gap:var(--s2);align-items:stretch}
.frames[data-view="visitor"]{grid-template-columns:minmax(0,1fr) 290px}.frames[data-view="visitor"] .pane-admin{display:none}
.frames[data-view="admin"]{grid-template-columns:290px minmax(0,1fr)}.frames[data-view="admin"] .pane-visitor{display:none}
.pane{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);display:flex;flex-direction:column;min-width:0;min-height:0}
.pane-head{display:flex;justify-content:space-between;gap:var(--s2);align-items:baseline;padding:var(--s2) var(--s3);border-bottom:1px solid var(--line);background:var(--bg);border-radius:var(--r) var(--r) 0 0}
.pane-head h2{font-size:.9375rem;margin:0}
.addr{margin:0;font-family:var(--mono);font-size:.75rem;color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.pane-links{margin:0;padding:4px var(--s3);border-bottom:1px solid var(--line)}
.linkbtn{font:inherit;background:none;border:0;padding:0;color:var(--accent);text-decoration:underline;cursor:pointer}
.jump{display:none}
.frame-box{flex:1;min-height:0;display:flex}
.frame-box iframe{width:100%;height:calc(100vh - 150px);min-height:560px;border:0;display:block;background:var(--bg)}
.frame-fail{margin:var(--s3)}
.ticker{list-style:none;margin:0;padding:0;overflow-y:auto;height:calc(100vh - 150px);min-height:560px}
.tk,.tk-empty{padding:var(--s2) var(--s3);border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:2px;font-size:.8125rem}
.tk-at{font-family:var(--mono);font-size:.75rem;color:var(--ink-2)}
.tk-dir{font-family:var(--mono);font-size:.75rem;color:var(--ink-2)}
.tk-dec{font-size:.75rem;color:var(--ink-2)}
.tk-deny{border-left:4px solid var(--deny)}
.tk-ask{border-left:4px solid var(--ask)}
.tk-new{background:var(--ask-bg)}
@media (prefers-reduced-motion:no-preference){.tk{transition:background-color 1s}}
@media (max-width:1100px){
.timebar{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"btn now" "speed tour" "rail rail" "legend legend" "synth synth"}
.frames,.frames[data-view]{grid-template-columns:minmax(0,1fr)}
.frames[data-view="both"] .pane-ticker{order:2}.pane-visitor{order:1}.pane-admin{order:3}
.frame-box iframe{height:640px;min-height:0}
.ticker{height:260px;min-height:0}
.jump{display:inline}
}
@media (max-width:520px){
.play-main{padding:var(--s2) var(--s4) var(--s6)}
.timebar{padding:var(--s2) var(--s3);grid-template-areas:"btn btn" "now now" "speed speed" "tour tour" "rail rail" "legend legend" "synth synth"}
.tb-buttons{flex-wrap:wrap}
.tb-speed{flex-wrap:wrap}
.tb,.tb-speed button{padding:5px 8px}
}

/* ---------- round 4: the guided tour (team/rounds/4/design/PROPOSAL.md 1.5, contrast in section 10) ----------
   developer.algarve-holiday-homes@AgentiCCells.dinis, 2026-11-19. The ring dims the rest of the page with
   its own shadow; the made-up band and the card sit above it. */
.tb-tour{grid-area:tour;justify-self:end;border-color:var(--ink);font-weight:600}
.play-strip{grid-column:1 / -1;margin:0;border:1px solid var(--line);border-radius:var(--r);padding:var(--s2) var(--s3);background:var(--bg)}
.play-strip p{margin:0}
.tk-note{border-left:4px solid var(--ink-2)}
.tour-cta{margin:var(--s2) 0 0}
html.tour-on .band{position:relative;z-index:9500}
.tour-shade{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:9300}
.tour-shade[hidden],.tour-ring[hidden],.tour-card[hidden]{display:none}
.tour-ring{position:fixed;z-index:9400;pointer-events:none;border-radius:6px;outline:3px solid #FBE7A1;box-shadow:0 0 0 5px #1F2328,0 0 0 9999px rgba(0,0,0,.45)}
.tour-card{position:fixed;z-index:9600;width:360px;max-width:calc(100vw - 16px);background:#fff;color:#1F2328;border:2px solid #1F2328;border-radius:10px;padding:14px 16px 12px;box-shadow:0 14px 36px rgba(0,0,0,.35);font-size:.875rem;line-height:1.45}
.tour-card.centre,.tour-dlg{left:50%!important;top:50%!important;transform:translate(-50%,-50%);width:440px}
.tour-hd{display:flex;align-items:center;gap:8px;font-size:.75rem;color:#545A62;margin-bottom:4px;flex-wrap:wrap}
.tour-hd .k{font-size:12px;font-weight:700;text-transform:uppercase;border-radius:4px;padding:1px 6px;background:#E0E8FB;color:#1E3A8A}
.tour-next-in{margin-left:auto}
.tour-prog{height:3px;background:#ECEDEF;border-radius:2px;margin:4px 0 10px}
.tour-prog span{display:block;height:3px;width:0;background:#1F2328;border-radius:2px}
.tour-card h2{font-size:1.0625rem;margin:4px 0 6px;line-height:1.25}
.tour-card h2:focus{outline:3px solid var(--sea,#0E6E8C);outline-offset:2px}
.tour-card p{margin:0 0 8px}
.tour-q{display:block;font-family:var(--mono,monospace);font-size:.8rem;background:#FBE1DE;color:#8A1C1C;padding:6px 8px;border-radius:4px;margin:6px 0 8px;quotes:none;overflow-wrap:anywhere}
.tour-note{font-size:.8rem;color:#545A62}
.tour-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tour-acts button{font:inherit;font-size:.8125rem;border:1px solid #1F2328;background:#fff;color:#1F2328;border-radius:6px;padding:5px 12px;cursor:pointer}
.tour-acts button.pri{background:#1F2328;color:#fff}
.tour-acts .tour-stop{margin-left:auto;border-color:#8A1C1C;color:#8A1C1C}
.tour-acts button:focus-visible{outline:3px solid var(--sea,#0E6E8C);outline-offset:2px}
.tour-small{font-size:.75rem;color:#545A62;margin:8px 0 0!important}
.tour-small a{color:#1F2328}
@media (max-width:700px){
.tour-card,.tour-card.sheet,.tour-card.centre,.tour-dlg{left:8px!important;right:8px;top:auto!important;bottom:8px;transform:none;width:auto;max-width:none;max-height:45vh;overflow:auto}
.tour-dlg{max-height:80vh}
}
@media (prefers-reduced-motion:reduce){.tour-prog{display:none}}
/* review S12: room above the buttons in the dialogs and the sheet; the sheet scrolls */
.tour-card .tour-acts{margin-top:12px}
.tour-dlg p.tour-small{margin:8px 0 12px!important}
@media (max-width:700px){.tour-dlg{overflow-y:auto;padding-bottom:16px}}
/* round 5: the design of both sides (PROPOSAL.md 3) */
.play-design{margin:0 0 var(--s2);display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:.875rem;font-weight:600}
.play-design select{font:inherit;font-weight:400;padding:4px 6px;border:1px solid var(--ink-2);border-radius:var(--r);background:var(--surface);color:var(--ink);max-width:100%}
.play-designs-note{margin:var(--s2) 0 0;color:var(--ink-2)}
