/* A game's page, for a period (Travis, 6 Oct 2026; TASK-150, TASK-151): the period bar under the head, the date chip beside
   every section's heading, the themes' panel where a period is mapped, the upgrade card and the phone's sheet. Only the
   game page loads it, in the page's own tokens (game-page.css): blue is the Review Map and Review Explorer, gold the Review
   Atlas, and the strip's bars are the day chart's recommended blue and not-recommended rust. */

/* ---- the bar ---- */
.gp-bar.pb{position:relative;z-index:6;display:block;padding:18px 30px 16px var(--gut)}
.pb-in{min-width:0;display:flex;flex-direction:column;gap:14px}
.pb-row{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap}
.pb-k{margin:0;font-size:16px;font-weight:600;color:var(--bone-soft);letter-spacing:-.01em;white-space:nowrap}
.pb-k span{color:#9cbcf5}
.pb-k em{font-style:normal;font-weight:500}
.pb-k em::before{content:"· ";color:var(--bone-mute)}

.pb-seg{position:relative;display:inline-flex;margin-left:auto;padding:3px;border:1px solid rgba(236,237,240,.16);border-radius:999px;background:rgba(255,255,255,.035);font:600 13.5px/1 var(--sans)}
.pb-seg button{position:relative;z-index:1;display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:9px 14px;border-radius:999px;color:var(--bone-soft);cursor:pointer;white-space:nowrap;transition:color .2s}
.pb-seg button:hover{color:#fff}
.pb-seg button[aria-pressed="true"]{color:#fff}
.pb-seg button:focus-visible{outline:2px solid #9cbcf5;outline-offset:2px}
.pb-seg button.is-locked{color:var(--bone-mute)}
.pb-seg button.is-locked:hover{color:var(--bone-soft)}
.pb-seg button.is-locked svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.7;margin-left:1px;opacity:.85}
.pb-cal{display:inline-flex}
.pb-cal svg,.pb-pill svg:first-child,.gp-pchip svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
/* the pressed preset's blue slides to the one pressed once the script has measured it; before that (and without a script) it
   is the pressed button's own background */
.pb-thumb{position:absolute;top:3px;bottom:3px;left:0;width:var(--w,0);transform:translateX(var(--x,0));border-radius:999px;background:var(--blue);box-shadow:0 2px 10px rgba(84,134,224,.45);opacity:0;pointer-events:none}
.pb-seg:not(.is-live) button[aria-pressed="true"]{background:var(--blue);box-shadow:0 2px 10px rgba(84,134,224,.45)}
.pb-seg.is-live .pb-thumb{opacity:1}
.pb-seg.is-live.is-none .pb-thumb{opacity:0}
.pb-seg.is-set .pb-thumb{transition:transform .32s cubic-bezier(.3,.9,.3,1),width .32s cubic-bezier(.3,.9,.3,1),opacity .2s}
.pb-pill{display:none}
/* Where the bar is too narrow for the six presets in a row (a phone, and a window with the Atlas's column beside the bar),
   the presets are one full-width button that opens the sheet. The bar's own width decides, not the window's. */
.gp-bar.pb{container:pbar / inline-size}
@container pbar (max-width:800px){
  .pb-seg,.pb-pick:not(.is-sheet){display:none}
  .pb-pill{display:flex;flex:1 1 100%;width:100%;align-items:center;gap:9px;border:1px solid rgba(156,188,245,.5);background:rgba(84,134,224,.18);color:#fff;border-radius:8px;padding:11px 14px;font:600 15.5px var(--sans);white-space:nowrap;cursor:pointer}
  .pb-pill span{flex:1;text-align:left}
  .pb-pill svg:last-child{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2}
}

/* the game's life, a column a day, week or month */
.pb-strip{position:relative;padding-top:6px;user-select:none;-webkit-user-select:none;touch-action:pan-y}
.pb-cols{display:flex;height:66px;align-items:end;cursor:crosshair}
.pb-strip.is-locked .pb-cols{cursor:pointer}
.pb-day{flex:1 1 0;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;padding:0 clamp(.3px,calc(45px / var(--n,28)),1.5px);transition:opacity .25s}
.pb-day i{display:block;border-radius:2px;min-height:0}
.pb-day i.up{background:#3f86c6}
.pb-day i.dn{background:#b65a33}
.pb-day.is-dim{opacity:.24}
.pb-day:hover{filter:brightness(1.18)}
.pb-win{position:absolute;top:0;height:78px;margin-left:-3px;padding:0 3px;box-sizing:content-box;border:1.5px solid #9cbcf5;background:rgba(84,134,224,.13);border-radius:8px;cursor:grab;transition:left .22s cubic-bezier(.3,.9,.3,1),width .22s cubic-bezier(.3,.9,.3,1)}
.pb-strip.is-dragging .pb-win{transition:none;cursor:grabbing}
.pb-win.is-latest{border-style:dashed;border-color:rgba(156,188,245,.7);background:none;pointer-events:none}
.pb-strip.is-locked .pb-win{pointer-events:none}
.pb-h{position:absolute;top:50%;width:8px;height:28px;margin-top:-14px;border-radius:4px;background:#e8efff;box-shadow:0 1px 4px rgba(0,0,0,.4);cursor:ew-resize}
.pb-h.l{left:-5px}.pb-h.r{right:-5px}
.pb-win.is-latest .pb-h,.pb-strip.is-locked .pb-h{display:none}
/* "Latest 200 reviews" sits inside the strip just left of the last bar, on a small dark backing, never up with the presets */
.pb-wlab{position:absolute;right:calc(100% + 6px);top:5px;padding:2px 7px;border-radius:4px;background:var(--night-2);font:600 12px var(--sans);color:#9cbcf5;white-space:nowrap}
.pb-ticks{position:relative;height:16px;margin-top:9px;font-size:12px;color:var(--bone-mute)}
.pb-ticks span{position:absolute;left:var(--x);transform:translateX(-50%);white-space:nowrap;font-variant-numeric:tabular-nums}
.pb-ticks span.is-first{left:0;transform:none}
.pb-ticks span.is-last{left:auto;right:0;transform:none}
.pb-ticks span.is-hidden{visibility:hidden}
.pb-tip{position:absolute;top:-52px;z-index:3;background:#fff;color:var(--ink);border-radius:6px;padding:7px 11px;font-size:13px;line-height:1.35;box-shadow:0 8px 24px rgba(0,0,0,.35);pointer-events:none;white-space:nowrap}
.pb-tip[hidden]{display:none}
.pb-tip b{display:block;font-weight:600}
.pb-tip span{color:var(--muted)}
.pb-tip em{display:block;font-style:normal;font-size:12px;color:#2f63c2;margin-top:2px}

.pb-foot{display:flex;align-items:center;justify-content:space-between;gap:10px 24px;flex-wrap:wrap}
.pb-now{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;font-size:15px;color:var(--bone-soft)}
.pb-now b{color:#fff;font-weight:600;font-size:16px}
.pb-now>span:not(.pb-hint):not(.pb-reading){padding-left:16px;border-left:1px solid rgba(236,237,240,.18)}
.pb-hint,.pb-now>.pb-when{color:var(--bone-mute)}
.pb-now>.pb-note{padding-left:16px;border-left:1px solid rgba(236,237,240,.18)}
.pb-narrow{display:none}
.pb-link{border:0;background:none;padding:0;font:600 14px var(--sans);color:#9cbcf5;border-bottom:1px solid rgba(156,188,245,.4);cursor:pointer}
.pb-link:hover{color:#fff}
.pb-reading{display:inline-flex;align-items:center;gap:8px;color:#cfe0ff}
.pb-reading i{width:12px;height:12px;border-radius:50%;border:2px solid rgba(156,188,245,.3);border-top-color:#9cbcf5;animation:pb-spin .8s linear infinite}
@keyframes pb-spin{to{transform:rotate(360deg)}}
.gp-bar.pb.pb-pulse{animation:pb-pulse 1.4s ease-out}
@keyframes pb-pulse{0%,100%{box-shadow:inset 0 0 0 0 rgba(156,188,245,0)}25%{box-shadow:inset 0 0 0 2px rgba(156,188,245,.95)}}

/* pick two dates: a popover on a wide screen, the phone's sheet holds it there */
.pb-pick{position:absolute;right:30px;top:62px;z-index:20;width:360px;max-width:calc(100% - 60px);background:#fff;color:var(--ink);border-radius:10px;box-shadow:0 18px 44px rgba(0,0,0,.4);padding:16px 18px}
.pb-pick[hidden]{display:none}
.pb-pick-h{margin:0 0 12px;font-weight:600;font-size:15.5px}
.pb-pick-f{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pb-pick-f label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;color:var(--muted)}
.pb-pick-f input{font:500 15px var(--sans);color:var(--ink);border:1px solid var(--rule);border-radius:6px;padding:8px 10px;background:#fff;min-width:0}
.pb-pick-f input:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.pb-pick-err{margin:10px 0 0;font-size:13.5px;color:#a34c25}
.pb-pick-err[hidden]{display:none}
.pb-pick-go{display:flex;align-items:center;gap:14px;margin-top:14px}
.pb-go,.pb-start{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--blue);color:#fff;font:700 14.5px var(--sans);padding:11px 18px;border-radius:6px;cursor:pointer;box-shadow:0 8px 20px rgba(84,134,224,.3);text-decoration:none}
.pb-go:hover,.pb-start:hover{background:#6a97e6}
.pb-x{border:0;background:none;font:600 14px var(--sans);color:var(--muted);cursor:pointer;padding:6px 2px}
.pb-x:hover{color:var(--ink)}

/* ---- the date chip beside every section's heading (a member's page) ---- */
.gp-sec-ht{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;min-width:0;max-width:100%}
.gp-pchip{display:inline-flex;align-items:center;gap:7px;max-width:100%;border:1px solid rgba(84,134,224,.35);background:#eef3fc;color:#24508f;border-radius:999px;padding:5px 5px 5px 11px;font:600 13.5px/1 var(--sans);cursor:pointer;transition:background .15s,border-color .15s}
.gp-pchip svg{flex:none}
.gp-pchip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gp-pchip em{flex:none;font-style:normal;font-size:12.5px;color:#fff;background:var(--blue);padding:5px 10px;border-radius:999px}
.gp-pchip:hover{background:#e2ebfb;border-color:var(--blue)}
.gp-pchip:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* ---- the themes' panel while a period is not yet read ---- */
.gp-psub{margin:2px 0 14px}
.gp-pmap{display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin-top:14px;padding:20px 22px;max-width:720px;background:var(--panel);border:1px solid var(--rule);border-left:3px solid var(--blue);border-radius:0 8px 8px 0}
.gp-pmap.is-error{border-left-color:#a34c25}
.gp-pmap-t{margin:0;font-size:16.5px;line-height:1.5;color:var(--ink-soft);text-wrap:balance}
.gp-reading{display:flex;align-items:center;gap:20px;min-height:250px;padding:0 4px}
.gp-reading .gp-mark{width:58px;height:58px}
.gp-reading-t{margin:0 0 4px;font:500 21px/1.25 var(--sans);letter-spacing:-.02em;color:var(--ink)}
.gp-reading-s{margin:0 0 14px;font-size:14.5px;color:var(--muted);max-width:520px}
.gp-reading-bar{width:300px;max-width:100%;height:3px;border-radius:2px;background:rgba(84,134,224,.18);overflow:hidden}
.gp-reading-bar i{display:block;height:100%;width:0;background:var(--blue);animation:pb-fill 38s cubic-bezier(.2,.5,.2,1) forwards}
@keyframes pb-fill{to{width:94%}}
/* the rest of the page keeps its frame and dims a little while a period is read, or when the page switches to it */
#main.is-period-reading .gp-below,#main.is-period-reading .gp-cv .gp-row2,#main.pb-switching .gp-mainwrap,#main.pb-switching .gp-below,#main.pb-switching .gp-row2{opacity:.45;transition:opacity .14s}
#main.pb-fresh .gp-tt-row{animation:pb-in .4s cubic-bezier(.3,.9,.3,1) both}
#main.pb-fresh .gp-tt-row .gp-tt-meter i.on{animation:pb-grow .55s cubic-bezier(.3,.9,.3,1) both;transform-origin:left center}
#main.pb-fresh .gp-tt-row:nth-of-type(2){animation-delay:40ms}
#main.pb-fresh .gp-tt-row:nth-of-type(3){animation-delay:80ms}
#main.pb-fresh .gp-tt-row:nth-of-type(4){animation-delay:120ms}
#main.pb-fresh .gp-tt-row:nth-of-type(5){animation-delay:160ms}
#main.pb-fresh .gp-tt-row:nth-of-type(n+6){animation-delay:200ms}
@keyframes pb-in{from{opacity:0;transform:translateY(4px)}}
@keyframes pb-grow{from{transform:scaleX(0)}}

/* ---- the rail, and the question that left the bar (Travis, 6 Oct) ---- */
.gp-rail-head.is-get h2{color:var(--gold-soft)}
.gp-vsband{margin:24px 0 0}
.gp-vsband .gp-vs-open{display:flex;flex-wrap:wrap;width:100%;align-items:center;gap:6px 10px;padding:11px 16px 11px 13px;background:#fff;border:1px solid var(--rule);border-left:3px solid var(--gold);border-radius:6px;color:var(--ink);font:600 14.5px/1.35 var(--sans)}
.gp-vsband .gp-vs-open span{border-bottom:0;padding:0}
.gp-vsband .gp-vs-open .gp-q{color:var(--gold-text)}
.gp-vsband .gp-vs-open::after{content:'See the difference';margin-left:auto;font-weight:600;color:var(--gold-text);border-bottom:1px solid rgba(166,124,15,.35)}
.gp-vsband .gp-vs-open:hover,.gp-vsband .gp-vs-open:focus-visible{background:#fffaf0;color:var(--ink)}
.gp-vsband .gp-vs-open:hover .gp-q,.gp-vsband .gp-vs-open:focus-visible .gp-q{background:var(--gold);border-color:var(--gold);color:#fff}

/* ---- the upgrade card: one card, the same on every game, a centred modal ---- */
dialog.pb-up{--sans:var(--font-display,Atlas,'DM Sans',-apple-system,'Segoe UI',sans-serif);--blue:#5486e0;position:fixed;inset:0;margin:auto;width:min(440px,calc(100% - 32px));max-height:min(94vh,860px);overflow:auto;overscroll-behavior:contain;padding:0;border:1px solid rgba(236,237,240,.12);border-top:3px solid #5486e0;border-radius:12px;background:#0b0f1a;color:#ecedf0;font:16px/1.5 var(--sans);box-shadow:0 30px 70px rgba(0,0,0,.55)}
dialog.pb-up::backdrop{background:rgba(11,15,26,.72);backdrop-filter:blur(4px)}
.pb-up-x{position:absolute;z-index:2;top:10px;right:10px;width:34px;height:34px;border:0;border-radius:50%;background:rgba(11,15,26,.6);color:#cfd5e2;font-size:15px;line-height:1;cursor:pointer}
.pb-up-x:hover{background:#fff;color:#0b0f1a}
.pb-up-x:focus-visible,.pb-start:focus-visible{outline:2px solid #9cbcf5;outline-offset:2px}
.pb-up .pp-art{position:relative;padding:30px 18px 14px;background:radial-gradient(120% 95% at 50% 0%,rgba(84,134,224,.32),rgba(16,22,38,0) 72%),#101626;border-bottom:1px solid rgba(236,237,240,.08);overflow:hidden}
.pb-up .pp-tiles{display:flex;justify-content:center;align-items:flex-end}
.pb-up .pp-tile{margin:0;width:142px;flex:none;border-radius:7px;overflow:hidden;background:#0b0f1a;border:1px solid rgba(236,237,240,.16);box-shadow:0 14px 30px rgba(0,0,0,.6);position:relative}
.pb-up .pp-tile img{display:block;width:100%;height:auto;aspect-ratio:460/215;object-fit:cover}
.pb-up .pp-tile figcaption{display:flex;align-items:center;gap:6px;padding:6px 8px 7px;font:600 11.5px var(--sans);color:#b9c0cf;white-space:nowrap;overflow:hidden}
.pb-up .pp-tile figcaption b{background:var(--b);color:#0b1a2a;padding:2px 6px;border-radius:3px;font-weight:700;flex:none}
.pb-up .pp-tile figcaption span{overflow:hidden;text-overflow:ellipsis}
.pb-up .pp-tile.t0{transform:rotate(-6deg) translate(22px,8px);z-index:1}
.pb-up .pp-tile.t1{width:156px;transform:translateY(-4px);z-index:2}
.pb-up .pp-tile.t2{transform:rotate(6deg) translate(-22px,8px);z-index:1}
.pb-up .pp-tile.t2 figcaption{flex-direction:row-reverse;justify-content:flex-end}
.pb-up .pp-art-cap{margin:16px 0 0;text-align:center;font-size:12px;color:#8e96a8}
.pb-up .pp-body{padding:18px 22px 22px}
.pb-up h2{margin:0 0 4px;font:500 23px/1.2 var(--sans);letter-spacing:-.02em;color:#e0b04a;padding-right:0}
.pb-up .pp-price{margin:0 0 14px;font-size:14.5px;color:#b9c0cf}
.pb-up .pp-price b{color:#fff;font-weight:600}
.pb-up .pp-main{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:12px}
.pb-up .pp-main li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start}
.pb-up .pp-main svg{width:34px;height:34px;padding:7px;border-radius:8px;background:rgba(84,134,224,.16);border:1px solid rgba(84,134,224,.35);fill:none;stroke:#9cbcf5;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;box-sizing:border-box}
.pb-up .pp-main b{display:block;font:600 15.5px/1.3 var(--sans);color:#fff}
.pb-up .pp-main small{display:block;margin-top:2px;font-size:13px;line-height:1.4;color:#8e96a8}
.pb-up .pp-plus{margin:0 0 18px;padding-top:12px;border-top:1px solid rgba(236,237,240,.1);display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px;color:#b9c0cf}
.pb-up .pp-plus b{font-weight:600;color:#e0b04a;margin-right:4px}
.pb-up .pp-plus span{padding:3px 9px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(236,237,240,.12)}
.pb-up .pp-go{display:flex}
.pb-up .pb-start{width:100%;padding:13px 18px;font-size:15.5px}

/* ---- the phone's sheet: the presets as rows and the two dates ---- */
dialog.pb-sheet{--sans:var(--font-display,Atlas,'DM Sans',-apple-system,'Segoe UI',sans-serif);--ink:#15161a;--muted:#6b6d72;--rule:#cfcbbf;--blue:#5486e0;position:fixed;inset:auto 0 0 0;margin:0 auto;width:100%;max-width:640px;max-height:none;padding:0;border:0;background:transparent;color:#15161a;font-family:var(--sans)}
dialog.pb-sheet::backdrop{background:rgba(11,15,26,.55);opacity:0;transition:opacity .26s}
dialog.pb-sheet.is-open::backdrop{opacity:1}
.pb-spanel{max-height:88vh;overflow:auto;background:#fff;border-radius:16px 16px 0 0;padding:6px 18px calc(20px + env(safe-area-inset-bottom));transform:translateY(100%);transition:transform .26s cubic-bezier(.3,.9,.3,1)}
dialog.pb-sheet.is-open .pb-spanel{transform:none}
.pb-shead{display:flex;align-items:center;justify-content:space-between;padding:12px 0 6px}
.pb-shead h2{margin:0;font:500 19px var(--sans);letter-spacing:-.02em}
.pb-srow{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid #e6e2d8;background:none;padding:13px 2px;text-align:left;font:600 16px var(--sans);color:#15161a;cursor:pointer}
.pb-srow em{display:block;font-style:normal;font-weight:400;font-size:13.5px;color:#6a7080;margin-top:2px}
.pb-srow b{font-size:17px;font-weight:800;color:#2f63c2}
.pb-sdates{padding-top:16px}
.pb-pick.is-sheet{position:static;display:block;width:auto;max-width:none;box-shadow:none;padding:0}
.pb-pick.is-sheet[hidden]{display:block}

@media(max-width:700px){
  .gp-bar.pb{padding:14px var(--gut) 16px}
  .pb-in{gap:12px}
  .pb-row{gap:10px}
  .pb-k{font-size:14.5px}
  .pb-cols{height:52px}
  .pb-win{height:64px}
  .pb-h{display:none}
  .pb-foot{flex-direction:column;align-items:flex-start}
  .pb-now{font-size:14px;gap:2px 12px}
  .pb-now b{flex-basis:100%;font-size:15px}
  .pb-now>span:not(.pb-hint):not(.pb-reading),.pb-now>.pb-note{padding-left:0;border-left:0}
  .pb-wide{display:none}.pb-narrow{display:inline}
  .pb-ticks span:not(.is-first):not(.is-last){display:none}
  .gp-reading{min-height:200px;gap:14px}
  .gp-reading .gp-mark{width:44px;height:44px}
  .gp-reading-t{font-size:18px}
  .gp-pmap{padding:16px 16px}
  .gp-vsband{margin-top:18px}
  .gp-vsband .gp-vs-open{flex-wrap:nowrap;padding:10px 12px;font-size:14px}
  .gp-vsband .gp-vs-open::after{display:none}
  dialog.pb-up{width:100%;max-width:100%;max-height:92vh;border-radius:12px 12px 0 0;margin:auto 0 0}
  .pb-up .pp-tile{width:112px}.pb-up .pp-tile.t1{width:124px}
  .pb-up .pp-tile.t0{transform:rotate(-6deg) translate(18px,8px)}
  .pb-up .pp-tile.t2{transform:rotate(6deg) translate(-18px,8px)}
}
@media(prefers-reduced-motion:reduce){
  .pb-thumb,.pb-win,.pb-day,.pb-spanel,dialog.pb-sheet::backdrop{transition:none!important}
  #main.pb-fresh .gp-tt-row,#main.pb-fresh .gp-tt-meter i.on,.pb-reading i{animation:none!important}
  .gp-reading-bar i{animation:none;width:60%}
  .gp-bar.pb.pb-pulse{animation:none}
}
