/* Orbit Parish palette (Krewe brand sheet, Oct 16): night first, gold the one warm accent. */
:root{--mid:#081129;--navy:#0E1B3D;--tnavy:#2A3148;--ink:#050A1A;--cream:#F4EEE1;--mist:#B9B4C7;--gold:#E2AB44;--flare:#F6D58E;
  --sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);
  --sal:env(safe-area-inset-left,0px);--sar:env(safe-area-inset-right,0px)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;height:100dvh;background:var(--mid);color:var(--cream);overflow:hidden;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overscroll-behavior:none;
  -webkit-user-select:none;user-select:none;touch-action:none}
canvas{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none;overscroll-behavior:none}
.panel{position:fixed;inset:0;display:none;align-items:center;justify-content:center;
  background:rgba(5,10,26,.8);padding:16px;padding-top:max(16px,var(--sat));padding-bottom:max(16px,var(--sab));
  padding-left:max(16px,var(--sal));padding-right:max(16px,var(--sar));z-index:5}
.panel.show{display:flex}
#rotate{z-index:20;background:rgba(5,10,26,.92)}
/* Loop 7: cards are a touch larger and warmer; words and buttons are sized for a reader who is not squinting */
.card{width:100%;max-width:392px;max-height:100%;overflow-y:auto;background:linear-gradient(#13244f,#0b1733);
  border:1px solid rgba(226,171,68,.3);border-radius:10px;padding:22px 20px;text-align:center;box-shadow:0 14px 44px rgba(0,0,0,.55)}
.card.small{max-width:352px}
h1,h2{font-family:Fraunces,Georgia,"Times New Roman",serif;font-weight:600;margin:.2em 0 .4em;line-height:1.1}
h1{font-size:34px;color:var(--cream)} h2{font-size:30px;color:var(--gold)}
.eyebrow{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin:0;font-weight:600}
/* loop 8: the results heading carries the heat now, so on a phone it tightens up and stays on one line */
@media (max-width:440px){#rEyebrow{font-size:10.5px;letter-spacing:.07em;white-space:nowrap}}
.lede{color:var(--mist);font-size:16px;line-height:1.45;margin:0 0 18px}
.forecast,.challenge{color:var(--flare);font-size:14px;line-height:1.4;margin:0 0 8px;min-height:0}
.challenge{color:var(--gold)}
.first{color:var(--flare);font-size:15px;line-height:1.4;margin:0 0 6px;font-weight:600}
button,.btn{font:600 14px/1 Inter,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;
  min-height:52px;border-radius:4px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  text-decoration:none;padding:0 16px}
[hidden],button[hidden]{display:none!important}
.primary{width:100%;background:var(--gold);color:var(--mid);border:0;margin:6px 0}
.primary:active{background:var(--flare)}
.primary.big{min-height:62px;font-size:18px;font-weight:800;letter-spacing:.14em;border-radius:8px;box-shadow:0 4px 0 #a9792a,0 10px 24px rgba(5,10,26,.6)}
.primary.big:active{transform:translateY(3px);box-shadow:0 1px 0 #a9792a}
.secondary{flex:1;background:transparent;color:var(--cream);border:1px solid rgba(244,238,225,.55);margin:6px 0}
.secondary.wide{width:100%}
.secondary:active{color:var(--gold);border-color:var(--gold)}
.row{display:flex;gap:10px}
.row .secondary{letter-spacing:.06em;font-size:13px;padding:0 8px}
.best{color:var(--mist);font-size:14px;margin:8px 0 0}
.fine{color:var(--mist);font-size:13px;line-height:1.45;text-align:left}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:6px 0 4px}
.stats div{background:var(--mid);border:1px solid var(--tnavy);border-radius:6px;padding:10px 4px}
.stats b{display:block;font-size:26px;color:var(--cream);font-family:Fraunces,Georgia,serif}
.stats span{font-size:12px;color:var(--mist);letter-spacing:.06em;text-transform:uppercase}
/* Loop 6: "goal 8" under a Dawn Shift count; the gold star line under the rank; the perfect-drops tile turns gold with it */
.stats .goal{display:block;margin-top:2px;font-size:11px;color:var(--gold)}
.stats div.gold{border-color:var(--gold)}
.stats div.gold b{color:var(--gold)}
.star{margin:0 0 6px;font-size:14px;line-height:1.35;color:var(--mist)}
.star.on{color:var(--gold);font-weight:700;font-size:15px}
#about p{font-size:15px}
#pCount{font-size:28px;color:var(--gold);font-family:Fraunces,Georgia,serif;margin:0 0 8px}

/* Loop 7: the title is laid over the stage itself (390 wide, scaled with the game), so the dock shows through
   and the hand can show the two taps underneath the Play button. A tap anywhere starts the game. */
#title{padding:0;cursor:pointer;background:linear-gradient(rgba(5,10,26,.55),rgba(5,10,26,.2) 30%,rgba(5,10,26,0) 44%)}
#title.show{display:block}
.tstage{position:absolute;left:0;top:0;width:390px;transform-origin:0 0}
.ttop{position:absolute;left:14px;right:14px;top:18px;text-align:center;overflow:hidden}
.ttop h1{font-size:33px;margin:.1em 0 .16em;text-shadow:0 2px 14px rgba(5,10,26,.95)}
.ttop p{text-shadow:0 1px 8px rgba(5,10,26,1)}
.ttop .lede{color:var(--cream);margin:0 0 4px;font-size:15px}
.ttop .first,.ttop .forecast,.ttop .challenge,.ttop .best{font-size:13px;margin:0 0 2px}
/* the level picker and the heat picker: chunky two- and four-way switches */
.tsel{position:absolute;left:16px;right:16px}
.seg{display:flex;gap:6px;margin:0 0 6px}
.segb{flex:1;min-height:var(--tap,44px);margin:0;padding:0 4px;border-radius:8px;background:rgba(8,17,41,.84);color:var(--cream);
  border:2px solid rgba(244,238,225,.4);font-size:12.5px;font-weight:700;letter-spacing:.03em;text-transform:none;flex-direction:row;gap:6px}
.segb b{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:rgba(244,238,225,.16);font-family:Fraunces,Georgia,serif;font-size:14px}
.segb.on{background:var(--gold);color:var(--mid);border-color:#fff3c8;box-shadow:0 3px 0 #a9792a}
.segb.on b{background:var(--mid);color:var(--gold)}
/* owner call, Nov 17: Level 2 is locked until a Level 1 day is finished */
/* Loop 10 (owner call, Nov 17): the locked note was too small for an older player. Now 15px bold in bright cream on a taller button; only the name is dimmed. */
.ttop .first.lockmsg{font-size:18px;font-weight:800;color:#fff3c8;line-height:1.2;margin:2px 0 4px}
.segb.locked{border-style:dashed;cursor:not-allowed;min-height:max(60px,var(--tap,44px));padding:4px 6px;border-color:rgba(244,238,225,.7)}.segb.locked b{opacity:.6}.segb.locked span{display:flex;flex-direction:column;line-height:1.2;text-align:left}.segb.locked .nm2{opacity:.7}.segb.locked small{font-size:15px;font-weight:800;line-height:1.15;color:#fff3c8;letter-spacing:.01em;margin-top:2px}
.seg.heat .segb{flex-direction:column;gap:4px;font-size:12px;min-height:max(46px,var(--tap,44px));padding:4px 2px}
.seg.heat .pips{display:flex;gap:3px;justify-content:center}
.seg.heat .segb i{display:block;width:7px;height:7px;border-radius:50%;background:currentColor}
.seg.heat{--c:#4fc27a}
.seg.heat .h0{color:#7fe0a2}.seg.heat .h1{color:#f6d58e}.seg.heat .h2{color:#ffab66}.seg.heat .h3{color:#ff8a76}
.seg.heat .segb.on{color:var(--mid);border-color:#fff}
.seg.heat .h0.on{background:#4fc27a;box-shadow:0 3px 0 #2f8a52}.seg.heat .h1.on{background:#f2c14e;box-shadow:0 3px 0 #a9792a}
.seg.heat .h2.on{background:#f08a3c;box-shadow:0 3px 0 #a85a1e}.seg.heat .h3.on{background:#e0604a;box-shadow:0 3px 0 #9a3626}
.ttop .best{margin:0}
/* loop 7 integrate: short stages step the title type down so every line clears the level picker */
.ttop.tight h1{font-size:28px;margin:0 0 .1em}.ttop.tight .lede{font-size:14px;margin-bottom:2px}
.ttop.tighter h1{font-size:24px}.ttop.tighter .eyebrow{font-size:11px}
.tmid{position:absolute;left:16px;right:16px}
.tmid .primary{margin:0 0 8px}
.tmid .row{gap:8px}
.tmid .row .secondary{min-height:var(--tap,44px);margin:0;background:rgba(8,17,41,.82);font-size:11.5px;letter-spacing:.04em;padding:0 4px}

/* The three moves, in the "?" card: a picture and one plain sentence each. */
.how{margin:0 0 12px}
.how figure{display:flex;align-items:center;gap:12px;text-align:left;margin:0 0 8px;background:var(--mid);border:1px solid var(--tnavy);border-radius:6px;padding:8px 10px}
.how svg,.how canvas{display:block;width:84px;height:auto;flex:none}
.how canvas{position:static;inset:auto;border-radius:5px}   /* the page-wide canvas rule is for the game canvas only */
.how figcaption{font-size:16px;line-height:1.3;color:var(--cream);font-weight:600}
.how b{display:block;color:var(--gold);font-family:Fraunces,Georgia,serif;font-size:20px;line-height:1}
.lede.tip{color:var(--flare);margin-bottom:10px}
.lede.tip.two{color:var(--cream);font-size:14px;text-align:left}
.lede.tip.two b{color:var(--gold)}

.quiet-link{margin:14px 0 0;font-size:12px;color:#7d7a8c;letter-spacing:.04em}
.quiet-link a{color:#B9B4C7;text-decoration:none;border-bottom:1px solid rgba(185,180,199,.4)}
.quiet-link span{margin-left:8px;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
/* short viewports (Safari with its bars up, in-app browsers): keep every card whole */
@media (max-height:700px){.card{padding:16px 18px}.lede{font-size:15px;margin-bottom:12px}h2{font-size:26px}.how svg,.how canvas{width:70px}.how figcaption{font-size:15px}.stats b{font-size:23px}.stats div{padding:7px 4px}button,.btn{min-height:48px}.primary.big{min-height:58px}}
@media (max-height:570px){.card{padding:12px 16px}.lede{font-size:14px;margin-bottom:8px}h2{font-size:23px}.how figure{padding:5px 8px;margin-bottom:5px}.how svg,.how canvas{width:54px}.how figcaption{font-size:14px}.how b{font-size:16px}.best{font-size:13px;margin-top:5px}.stats b{font-size:20px}.quiet-link{margin-top:8px}}
/* Nov 18 (owner call): Shop Orbit Parish. Small and secondary, never the main button: a 44px tap target in a quiet gold outline,
   on the title, the pause card and every results screen (which is also the Level 1 to Level 2 screen). Never during play. */
.shopbtn{display:flex;width:max-content;max-width:100%;min-height:44px;margin:10px auto 0;padding:0 16px;font-size:11.5px;letter-spacing:.1em;
  color:var(--gold);background:rgba(8,17,41,.6);border:1px solid rgba(226,171,68,.55);border-radius:22px}
.shopbtn:active{color:var(--flare);border-color:var(--flare)}
.tmid .shopbtn{margin-top:8px;min-height:var(--tap,44px);background:rgba(8,17,41,.82)}

/* Nov 19: optional launch-news signup, results screen only. Small and quiet, below the shop link. */
.news{margin:14px 0 0;padding-top:12px;border-top:1px solid rgba(226,171,68,.22);text-align:left;touch-action:manipulation}
.newsH{margin:0 0 6px;font-size:14px;font-weight:600;color:var(--cream)}
.newsH span{color:var(--mist);font-weight:400}
.newsRow{display:flex;gap:8px}
.news input{flex:1;min-width:0;height:44px;font:16px Inter,system-ui,sans-serif;color:var(--cream);background:rgba(8,17,41,.85);border:1px solid rgba(244,238,225,.4);border-radius:4px;padding:0 10px;
  -webkit-user-select:text;user-select:text;-webkit-appearance:none;appearance:none}
.news input::placeholder{color:#8f8aa3}
.news input:focus{outline:2px solid var(--gold);outline-offset:1px;border-color:var(--gold)}
.news button{flex:none;min-height:44px;font-size:12px;letter-spacing:.1em;padding:0 14px;color:var(--gold);background:rgba(8,17,41,.6);border:1px solid rgba(226,171,68,.55);border-radius:4px}
.news button:disabled{opacity:.55;cursor:default}
.newsFine{margin:6px 0 0;font-size:12px;line-height:1.4;color:var(--mist)}
.newsFine a{color:var(--flare)}
.newsMsg{margin:6px 0 0;font-size:13px;line-height:1.4;color:var(--flare);min-height:0}
.newsMsg:empty{display:none}
.news.done .newsRow,.news.done .newsFine{display:none}
.news.done .newsH{margin:0}
