/* BRO2KIT CTL1 (CITY-WORLD2 11-16): the Controls card, the walk-there pin, the mouse-look line */
.ctl-card{position:fixed;z-index:60;left:50%;top:50%;transform:translate(-50%,-50%);width:min(620px,calc(100vw - 24px));max-height:min(86vh,760px);display:flex;flex-direction:column;background:#0B111C;color:#e8edf5;border:1px solid rgba(255,255,255,.16);border-radius:16px;box-shadow:0 18px 60px rgba(0,0,0,.6);font-size:14px}
.ctl-card[hidden]{display:none}
.ctl-hd{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 6px}
.ctl-hd h2{margin:0;font-size:19px}
.ctl-x{width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.2);background:transparent;color:inherit;font-size:22px;cursor:pointer}
.ctl-lead{margin:0 16px 8px;color:#f5c542;font-weight:600;line-height:1.45}
.ctl-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:4px 16px 10px;border-bottom:1px solid rgba(255,255,255,.1)}
.ctl-tab{min-height:36px;padding:6px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:transparent;color:inherit;font-weight:700;cursor:pointer}
.ctl-tab.on{background:#f5c542;color:#111;border-color:#f5c542}
.ctl-body{overflow:auto;padding:6px 16px 16px}
.ctl-body h3{margin:14px 0 6px;font-size:14px;color:#9fb0c6;text-transform:uppercase;letter-spacing:.04em}
.ctl-row{display:grid;grid-template-columns:minmax(120px,38%) 1fr;gap:10px;padding:5px 0;border-bottom:1px solid rgba(255,255,255,.06);align-items:center}
.ctl-k{font-weight:700;color:#f5c542}
.ctl-map{grid-template-columns:1fr auto auto}
.ctl-key{min-width:86px;min-height:34px;padding:4px 10px;border-radius:8px;border:1px solid rgba(255,255,255,.25);background:#141c2b;color:inherit;font-weight:700;cursor:pointer}
.ctl-key.wait{border-color:#f5c542;color:#f5c542}
.ctl-set{display:grid;grid-template-columns:1fr minmax(120px,40%) 44px;gap:10px;align-items:center;margin:8px 0}
.ctl-chk{display:flex;gap:10px;align-items:center;margin:8px 0;cursor:pointer}.ctl-chk input{width:20px;height:20px;accent-color:#f5c542}
.ctl-reset{margin-top:12px;min-height:38px;padding:6px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:transparent;color:inherit;font-weight:700;cursor:pointer}
.ctl-fine{color:#9fb0c6;font-size:13px;margin:10px 0 0}
.ctl-open{margin-left:6px;min-height:34px;padding:4px 12px;border-radius:999px;border:1px solid #f5c542;background:transparent;color:#f5c542;font-weight:700;cursor:pointer}
.ctl-more{display:block;width:100%;margin:6px 0 10px}
.ctl-pin{position:absolute;left:0;top:0;width:22px;height:22px;margin-left:0;border-radius:50%;border:3px solid #f5c542;box-shadow:0 0 0 3px rgba(0,0,0,.35);pointer-events:none;animation:ctlp 1s ease-in-out infinite}
.ctl-pin[hidden]{display:none}
@keyframes ctlp{50%{opacity:.45}}
.ctl-tip{position:fixed;z-index:55;left:50%;top:70px;transform:translateX(-50%);margin:0;padding:8px 14px;border-radius:999px;background:rgba(11,17,28,.92);border:1px solid rgba(255,255,255,.18);color:#e8edf5;font-size:13.5px;font-weight:600;max-width:calc(100vw - 32px);text-align:center}
.ctl-tip[hidden]{display:none}
@media (max-width:520px){.ctl-row{grid-template-columns:1fr}.ctl-map{grid-template-columns:1fr auto auto}.ctl-card{top:auto;bottom:8px;transform:translateX(-50%);max-height:80vh}}
/* AVFIT (setup page, phones 360/390): the 12 people tiles overlapped by 4-9 px (grid buttons kept their min width) */
#avOpts .sw>button{min-width:0}
/* LAY1 (CITY-WORLD3 11-16, Todd "make it all way more streamlined"): short Controls card, one-line first hint, setup Enter pulse, screen-layout budget */
.ctl-card.ctl-short{width:min(440px,calc(100vw - 24px))}
.ctl-card.ctl-short .ctl-row{grid-template-columns:96px 1fr}
.ctl-morek{width:100%;background:transparent;border:0;border-bottom:0;color:inherit;font:inherit;text-align:left;cursor:pointer;min-height:44px;border-radius:8px}
.ctl-morek:hover,.ctl-morek:focus-visible{background:rgba(245,197,66,.1)}
.ctl-tip.ctl-hint{top:auto;bottom:calc(100px + env(safe-area-inset-bottom));font-size:14px}
@keyframes ctlpulse{0%,100%{box-shadow:0 0 0 0 rgba(245,197,66,.0)}35%{box-shadow:0 0 0 10px rgba(245,197,66,.45)}70%{box-shadow:0 0 0 18px rgba(245,197,66,0)}}
#enter.ctl-pulse{animation:ctlpulse 1.2s ease-out 2}
@media (prefers-reduced-motion:reduce){#enter.ctl-pulse{animation:none;outline:3px solid #f5c542;outline-offset:3px}}
/* budget: top-centre = Fly up only (clear of the header); asks/toasts = the right-side slot (clear of the right-edge bug tab) */
#game .svbar{top:76px}
body.touch #game .stick{bottom:max(164px,calc(env(safe-area-inset-bottom) + 164px));width:100px;height:100px}
body.touch #game .svbar{top:calc(96px + env(safe-area-inset-top));bottom:auto}
#game .toasts,#game.sv .toasts,#game.svjs-on .toasts{left:auto;right:56px;top:330px;transform:none;justify-items:end;width:min(340px,calc(100vw - 72px))}
body.touch #game .toasts,body.touch #game.sv .toasts,body.touch #game.svjs-on .toasts{right:8px;top:calc(206px + env(safe-area-inset-top));width:min(300px,72vw)}
/* AUTOUP1 */
.ctl-up{position:fixed;z-index:56;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translateX(-50%);min-height:40px;padding:6px 16px;border-radius:999px;border:1px solid #f5c542;background:#0B111C;color:#f5c542;font-weight:700;cursor:pointer}

/* LAY2 (CITY-WORLD3 11-16): phones: Fly up at the top and the stick above the chat ticker (older Street level rules won); the Update pill never on the dock */
body.touch #game .svbar{top:calc(96px + env(safe-area-inset-top))!important;bottom:auto!important}
body.touch #game .stick{bottom:max(164px,calc(env(safe-area-inset-bottom) + 164px))!important}
.ctl-up{bottom:auto!important;left:auto!important;right:56px;top:330px;transform:none!important}
body.touch .ctl-up{right:8px;top:calc(206px + env(safe-area-inset-top))}
