/* cu-prestige: Restart UI */
.pr-badge { display: inline-flex; align-items: center; gap: 4px; margin: 0 auto 0 6px; flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.4;
  color: #2a1500; background: linear-gradient(180deg, #ffe58a 0%, #ffc93d 55%, #f5a321 100%); box-shadow: 0 2px 8px rgba(0,0,0,0.35); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-chip { display: flex; align-items: center; gap: 10px; width: calc(100% - 20px); margin: 0 10px 10px; padding: 10px 12px; border-radius: 14px; cursor: pointer; text-align: left; color: #fff;
  font: inherit; border: 1px solid rgba(255,206,92,0.55); background: linear-gradient(90deg, rgba(255,206,92,0.18), rgba(255,140,40,0.10)); -webkit-tap-highlight-color: transparent; }
.pr-chip:focus-visible { outline: 2px solid #ffd25e; outline-offset: 2px; }
.pr-chip .ic { font-size: 20px; flex: 0 0 auto; }
.pr-chip .tx { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.pr-chip .tx b { font-size: 14px; font-weight: 800; color: #ffe7a8; }
.pr-chip .tx small { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-chip .go { font-size: 22px; color: #ffd25e; }
/* trophies card */
.pr-card { margin: 4px 0 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255,206,92,0.4); background: linear-gradient(180deg, rgba(255,206,92,0.1), rgba(255,206,92,0.03)); }
.pr-ch { display: flex; align-items: center; gap: 12px; }
.pr-ch b { display: block; font-size: 16px; color: #ffe7a8; }
.pr-ch small { display: block; font-size: 12px; color: rgba(255,255,255,0.72); line-height: 1.35; }
.pr-cstar { flex: 0 0 auto; min-width: 46px; height: 46px; padding: 0 6px; border-radius: 14px; display: grid; place-items: center; font-size: 17px; font-weight: 900; color: #2a1500;
  background: linear-gradient(180deg, #ffe58a, #f5a321); }
.pr-cbest { margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,0.8); }
.pr-cbest b { color: #fff; }
.pr-hist { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; color: rgba(255,255,255,0.7); }
.pr-hist li { display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.pr-hist b { color: #ffd25e; font-variant-numeric: tabular-nums; }
.pr-cbtn { display: block; width: 100%; margin-top: 10px; padding: 11px 12px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; color: #2a1500;
  border: 1px solid rgba(255,236,170,0.95); background: linear-gradient(180deg, #ffe58a 0%, #ffc93d 45%, #f5a321 100%); }
.pr-cnote { margin: 10px 0 0; font-size: 12.5px; color: rgba(255,255,255,0.75); }
/* sheet */
.pr-ov { position: absolute; inset: 0; z-index: 8750; display: flex; align-items: flex-end; justify-content: center; background: rgba(3,8,16,0.72); opacity: 0; transition: opacity .2s ease;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pr-ov.on { opacity: 1; }
.pr-sheet { position: relative; width: 100%; max-height: 94%; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; color: #fff;
  background: linear-gradient(180deg, #152238 0%, #0b1424 100%); border: 1px solid rgba(255,206,92,0.35); border-bottom: 0; box-shadow: 0 -16px 40px rgba(0,0,0,0.55);
  transform: translateY(24px); transition: transform .22s ease; }
.pr-ov.on .pr-sheet { transform: none; }
.pr-in { overflow-y: auto; padding: 14px 16px 6px; -webkit-overflow-scrolling: touch; }
.pr-top { display: flex; align-items: center; justify-content: space-between; }
.pr-top .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffd25e; }
.pr-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: #fff; font-size: 15px; cursor: pointer; }
.pr-h { margin: 6px 0 8px; font-size: 22px; line-height: 1.15; font-weight: 800; }
.pr-boost { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255,206,92,0.08); border: 1px solid rgba(255,206,92,0.3);
  font-variant-numeric: tabular-nums; }
.pr-boost .a { font-size: 22px; font-weight: 800; color: rgba(255,255,255,0.55); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.35); }
.pr-boost .ar { font-size: 20px; color: #ffd25e; }
.pr-boost .b { font-size: 34px; font-weight: 900; color: #ffd25e; text-shadow: 0 0 18px rgba(255,190,60,0.45); }
.pr-boost .s { font-size: 13px; font-weight: 900; padding: 3px 9px; border-radius: 999px; color: #2a1500; background: linear-gradient(180deg, #ffe58a, #f5a321); }
.pr-lead { margin: 10px 0 4px; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.8); }
.pr-note { margin: 8px 0 0; font-size: 12.5px; color: #ffe7a8; }
.pr-cols { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.pr-col { padding: 10px 12px; border-radius: 14px; }
.pr-col h3 { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pr-reset { background: rgba(255,90,90,0.07); border: 1px solid rgba(255,110,110,0.3); }
.pr-reset h3 { color: #ff9a9a; }
.pr-keep { background: rgba(60,220,140,0.07); border: 1px solid rgba(70,220,150,0.3); }
.pr-keep h3 { color: #7ff0b6; }
.pr-list { list-style: none; margin: 0; padding: 0; }
.pr-list li { display: flex; gap: 8px; padding: 4px 0; font-size: 13px; line-height: 1.35; color: rgba(255,255,255,0.88); }
.pr-list .i { flex: 0 0 20px; text-align: center; }
.pr-list b { color: #fff; }
.pr-rules { margin: 10px 0 4px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,0.78); }
.pr-rules b { color: #fff; font-size: 13px; }
.pr-rules p { margin: 4px 0 0; }
.pr-foot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 6px; }
.pr-hold { position: relative; overflow: hidden; width: 100%; height: 54px; border-radius: 16px; cursor: pointer; font: inherit; font-size: 16px; font-weight: 900; color: #fff;
  border: 1.5px solid rgba(255,120,90,0.9); background: rgba(255,90,60,0.16); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pr-hold i { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg, #ff7a45, #ffb03a); }
.pr-hold span { position: relative; }
.pr-hold.holding span::after { content: "…"; }
.pr-hold:focus-visible { outline: 2px solid #ffd25e; outline-offset: 2px; }
.pr-tip { margin: 0; text-align: center; font-size: 11.5px; color: rgba(255,255,255,0.6); }
.pr-cancel { background: none; border: 0; color: rgba(255,255,255,0.75); font: inherit; font-size: 14px; font-weight: 700; padding: 8px; cursor: pointer; }
.pr-done .pr-in { text-align: center; padding-top: 22px; }
.pr-burst { font-size: 40px; font-weight: 900; color: #ffd25e; text-shadow: 0 0 26px rgba(255,190,60,0.6); animation: prPop .5s ease-out; }
.pr-go { width: 100%; padding: 14px; border-radius: 16px; font: inherit; font-size: 16px; font-weight: 900; color: #2a1500; cursor: pointer;
  border: 1px solid rgba(255,236,170,0.95); background: linear-gradient(180deg, #ffe58a 0%, #ffc93d 45%, #f5a321 100%); }
@keyframes prPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pr-burst { animation: none; } .pr-ov, .pr-sheet { transition: none; } }
/* cu-kg122: "Keep going" milestone key pop-up (uses the trophy card look) */
#kg-ov { position: absolute; inset: 0; z-index: 8760; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.62); opacity: 0; transition: opacity .2s ease; }
#kg-ov.show { opacity: 1; }
#kg-ov .pv-ach-card { position: relative; width: calc(100% - 36px); padding: 22px 18px 16px; border-radius: 26px; text-align: center; overflow: hidden; color: #fff;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255,200,80,0.24), rgba(13,17,25,1) 60%); border: 1px solid rgba(255,206,92,0.55);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 50px rgba(255,180,60,.2); }
#kg-ov .eyebrow { position: relative; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffd25e; }
.kg-key { position: relative; width: 112px; height: 112px; margin: 14px auto 10px; border-radius: 30px; display: grid; place-items: center; font-size: 62px;
  background: linear-gradient(180deg, rgba(255,214,110,0.32), rgba(255,160,40,0.12)); border: 2px solid rgba(255,210,94,.7); box-shadow: 0 0 34px rgba(255,190,60,.4); animation: kgPop .6s cubic-bezier(.2,1.4,.4,1); }
#kg-ov h2 { position: relative; margin: 4px 0 8px; font-size: 30px; font-weight: 900; letter-spacing: -0.01em; }
.kg-txt { position: relative; margin: 0 4px 12px; font-size: 15.5px; line-height: 1.45; color: rgba(255,255,255,0.88); }
.kg-nw { position: relative; display: inline-block; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #2a1a05; background: linear-gradient(180deg, #ffe58a, #f5a321); margin-bottom: 6px; }
#kg-ov .btn { position: relative; display: block; width: 100%; margin-top: 10px; padding: 14px; border-radius: 16px; font: inherit; font-size: 16px; font-weight: 900; color: #2a1500; cursor: pointer;
  border: 1px solid rgba(255,236,170,0.95); background: linear-gradient(180deg, #ffe58a 0%, #ffc93d 45%, #f5a321 100%); }
.kg-keys { position: relative; margin-top: 6px; background: none; border: 0; color: rgba(255,255,255,0.75); font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px; cursor: pointer; }
@keyframes kgPop { 0% { transform: scale(.3) rotate(-25deg); opacity: 0; } 70% { transform: scale(1.12) rotate(6deg); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .kg-key { animation: none; } #kg-ov { transition: none; } }

/* rbteach: home next-multiplier hint (before Restart unlocks) */
.pr-hint { display: flex; align-items: center; gap: 10px; width: calc(100% - 20px); margin: 0 10px 10px; padding: 9px 12px; border-radius: 14px;
  border: 1px dashed rgba(255,206,92,0.45); background: rgba(255,206,92,0.07); color: #fff; font: inherit; text-align: left; }
.pr-hint .ic { font-size: 18px; flex: 0 0 auto; }
.pr-hint .tx { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.pr-hint .tx b { font-size: 13px; font-weight: 800; color: #ffe7a8; }
.pr-hint .tx small { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-hint .go { font-size: 11px; font-weight: 800; color: #ffd25e; white-space: nowrap; }

/* rbteach: Jake Rich explainer when Restart first unlocks */
.pr-teach { position: absolute; inset: 0; z-index: 8765; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(3,8,16,0.78); opacity: 0; transition: opacity .22s ease; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.pr-teach.on { opacity: 1; }
.pr-teach-card { position: relative; width: min(100%, 360px); max-height: 94%; overflow-y: auto; padding: 18px 16px 16px; border-radius: 24px; color: #fff; text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255,200,80,0.28), #0d1119 58%); border: 1px solid rgba(255,206,92,0.55);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 50px rgba(255,180,60,.22); -webkit-overflow-scrolling: touch; }
.pr-teach-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06); color: #fff; font-size: 15px; cursor: pointer; z-index: 2; }
.pr-teach-pic { width: 132px; height: 132px; margin: 4px auto 8px; border-radius: 28px; overflow: hidden; border: 2px solid rgba(255,210,94,.65);
  box-shadow: 0 0 28px rgba(255,190,60,.35); background: #152238; }
.pr-teach-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.pr-teach-k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffd25e; }
.pr-teach-card h2 { margin: 6px 0 8px; font-size: 24px; font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; }
.pr-teach-card h2 em { font-style: normal; color: #ffd25e; }
.pr-teach-lead { margin: 0 2px 10px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.88); }
.pr-teach-lead b { color: #ffd25e; }
.pr-teach-boost { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; margin: 0 0 10px; border-radius: 14px;
  background: rgba(255,206,92,0.1); border: 1px solid rgba(255,206,92,0.35); font-variant-numeric: tabular-nums; }
.pr-teach-boost .a { font-size: 20px; font-weight: 800; color: rgba(255,255,255,0.5); text-decoration: line-through; }
.pr-teach-boost .ar { font-size: 18px; color: #ffd25e; }
.pr-teach-boost .b { font-size: 30px; font-weight: 900; color: #ffd25e; text-shadow: 0 0 16px rgba(255,190,60,0.45); }
.pr-teach-pts { list-style: none; margin: 0 0 12px; padding: 0; text-align: left; }
.pr-teach-pts li { display: flex; gap: 8px; padding: 5px 2px; font-size: 12.5px; line-height: 1.35; color: rgba(255,255,255,0.86); }
.pr-teach-pts b { color: #fff; }
.pr-teach-acts { display: flex; flex-direction: column; gap: 8px; }
.pr-teach-keep { width: 100%; padding: 12px; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; color: #fff;
  border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.08); }
.pr-teach-go { width: 100%; padding: 14px; border-radius: 16px; font: inherit; font-size: 16px; font-weight: 900; cursor: pointer; color: #2a1500;
  border: 1px solid rgba(255,236,170,0.95); background: linear-gradient(180deg, #ffe58a 0%, #ffc93d 45%, #f5a321 100%); }
.pr-teach-keep:focus-visible, .pr-teach-go:focus-visible, .pr-teach-x:focus-visible { outline: 2px solid #ffd25e; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pr-teach { transition: none; } }
