.source-page #pp-stage {
  box-sizing: border-box;
  --ink: #25263e;
  --gold: #ffd43b;
  --paper: #fff4d8;
  --mint: #a9dec9;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--pp-scale, 1));
  width: 1080px;
  height: 1920px;
  padding: 32px 40px 23px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  color: #fff9ec;
  font: 900 28px/1.18 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
#pp-stage *, #pp-stage *::before, #pp-stage *::after { box-sizing: border-box; }
#pp-stage :is(h1,h2,p,dl,dd) { margin: 0; }
#pp-stage [hidden] { display: none !important; }
#pp-stage .pp-header, #pp-stage .pp-gifts, #pp-stage footer { flex: none; }
.pp-byline, .pp-section-title { display: flex; align-items: center; gap: 17px; font-size: 26px; letter-spacing: 2px; text-transform: uppercase; }
.pp-rule { height: 4px; flex: 1; background: #b6c9c2; border: 1px solid var(--ink); }
.pp-mark { width: 38px; height: 28px; border: 3px solid var(--ink); border-radius: 5px; background: var(--gold); box-shadow: 5px 5px 0 #8acbbb, 7px 7px 0 var(--ink); position: relative; margin-right: 4px; }
.pp-mark::after { content: ""; position: absolute; inset: 6px 6px 5px; border-bottom: 3px solid var(--ink); background: linear-gradient(90deg,var(--ink) 3px,transparent 3px calc(100% - 3px),var(--ink) 0) top / 100% 5px no-repeat; }
.pp-title { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 12px; }
.pp-title h1 { font-size: 112px; letter-spacing: -8px; line-height: 1.04; -webkit-text-stroke-width: 7px; text-shadow: 0 7px 0 var(--ink); white-space: nowrap; }
.pp-title em { color: var(--gold); }
.pp-timer { display: grid; justify-items: end; gap: 2px; font-size: 21px; text-transform: uppercase; letter-spacing: 2px; }
.pp-timer strong { color: var(--gold); font-size: 63px; letter-spacing: -3px; font-variant-numeric: tabular-nums; line-height: 1; -webkit-text-stroke-width: 4px; }
/* The full permission and setup copy occupies a normal-flow row, even when the browser denies access. */
#pp-connection { display: none; flex: none; padding: 11px 20px; border: 3px solid var(--ink); outline: 2px solid #ffd43b; outline-offset: -5px; border-radius: 14px; background: #fff4d8; color: var(--ink); -webkit-text-stroke: 0; }
#pp-connection:has(.tt-core-overlay-status:not(.preview-status) .tt-core-notice:not([hidden])) { display: block; }
#pp-connection .tt-core-overlay-status { position: static; transform: none; width: auto; margin: 0; text-align: left; font: inherit; }
#pp-connection .tt-core-notice, #pp-connection .pp-setup { padding: 0; margin: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--ink); font: 650 21px/1.27 Inter, "Segoe UI", Arial, sans-serif; }
#pp-connection .tt-core-notice strong { display: inline; color: var(--ink); font-weight: 900; font-size: inherit; margin-right: .6em; }
#pp-connection .tt-core-notice a, #pp-connection .pp-setup { color: var(--ink); font-weight: 850; text-decoration: underline; text-underline-offset: .1em; }
#pp-connection .tt-allow-hint { margin-top: 2px !important; }
#pp-connection .tt-core-pill { display: none !important; }
.pp-terminal { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; border: 6px solid var(--ink); border-radius: 28px; background: var(--mint); color: var(--ink); -webkit-text-stroke: 0; box-shadow: inset 0 5px #dbf4da, inset -7px 0 #73adab, 0 8px 0 var(--ink); }
.pp-chrome { display: flex; gap: 15px; align-items: center; padding: 19px 24px 16px; }
.pp-chrome strong { font-size: 35px; letter-spacing: -1.8px; }
#pp-open { font-size: 26px; white-space: nowrap; }
.pp-lamp { position: relative; width: 31px; height: 30px; background: var(--ink); clip-path: polygon(34% 0,67% 0,67% 19%,84% 19%,84% 36%,100% 36%,100% 67%,81% 67%,81% 83%,65% 83%,65% 100%,32% 100%,32% 82%,16% 82%,16% 67%,0 67%,0 35%,17% 35%,17% 18%,34% 18%); }
.pp-lamp::after { content: ""; position: absolute; inset: 5px; clip-path: inherit; background: #ffd43b; }
.pp-vent { flex: 1; height: 11px; margin: 0 12px; border-block: 3px solid #6ba6a4; }
#pp-board { isolation: isolate; position: relative; min-height: 0; flex: 1; overflow: hidden; border: 5px solid var(--ink); border-radius: 14px; margin-inline: 15px; background: #b7b6d1; touch-action: manipulation; }
.pp-wallpaper, #pp-windows, #pp-fx, #pp-result { position: absolute; inset: 0; }
.pp-wallpaper { background: #bbacc7 url("popup-panic-wallpaper.svg?v=popup-1") center / 100% 100% no-repeat; }
#pp-windows { inset: 14px; z-index: 1; }
#pp-board:focus-visible { outline: 4px solid var(--gold); outline-offset: 1px; }
.pp-console { flex: none; padding: 16px 25px 19px; }
.pp-clutter-info, .pp-monitor-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pp-clutter-info { font-size: 33px; line-height: 1; letter-spacing: -1px; }
.pp-clutter-info span { font-variant-numeric: tabular-nums; }
.pp-meter { overflow: hidden; position: relative; margin: 10px 0 12px; border: 3px solid var(--ink); height: 31px; border-radius: 5px; background: #e1f0d7; }
.pp-meter i { position: absolute; inset: 0; background: #ffd43b; transform-origin: left; transform: scaleX(0); transition: transform .13s ease-out; }
.pp-meter::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg,transparent 0 calc(5% - 3px),#426c71 calc(5% - 3px) 5%); }
.pp-meter[data-high="true"] i { background: #fa947a; }
.pp-monitor-note { font-size: 23px; font-weight: 750; }
.pp-monitor-note span { display: flex; align-items: center; gap: 9px; }
.pp-pilot-light { width: 18px; height: 18px; background: #eaf6ac; border: 3px solid var(--ink); border-radius: 50%; }
.pp-window {
  --accent: #ffd43b;
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  translate: calc(0% - var(--x)) calc(0% - var(--y));
  border: 4px solid var(--ink); border-radius: 10px;
  background: var(--paper); color: var(--ink); -webkit-text-stroke: 0;
  box-shadow: 6px 6px 0 #33344eb3; animation: pp-open .33s ease-out backwards;
}
.pp-window[data-selected="true"] { box-shadow: 0 0 0 4px var(--gold), 7px 9px 0 #33344eab; }
.pp-window[data-kind="error"] { --accent: #ff9983; }
.pp-window[data-kind="update"] { --accent: #8fddd0; }
.pp-window[data-kind="battery"] { --accent: #cbb1ef; }
.pp-window[data-kind="cookie"] { --accent: #ffc38d; }
.pp-window[data-kind="glitch"] { --accent: #cee87b; }
.pp-bar { display: flex; align-items: center; gap: 10px; padding: 4px 5px 4px 12px; border-radius: 5px 5px 0 0; border-bottom: 3px solid var(--ink); background: var(--accent); }
.pp-bar::before { content: ""; width: 12px; height: 12px; border: 3px solid var(--ink); flex: none; }
.pp-sender { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; font-size: 25px; }
.pp-close { flex: none; display: grid; place-items: center; width: 59px; height: 52px; border: 3px solid var(--ink); border-radius: 5px; padding: 0; color: var(--ink); background: #fff3d7; cursor: pointer; }
.pp-close::before { content: ""; width: 24px; height: 24px; background: currentColor; clip-path: polygon(0 16%,16% 0,50% 32%,84% 0,100% 16%,68% 50%,100% 84%,84% 100%,50% 68%,16% 100%,0 84%,32% 50%); }
.pp-close:is(:hover,:focus-visible) { background: var(--gold); outline: 3px solid var(--ink); outline-offset: -5px; }
.pp-message { display: flex; align-items: center; gap: 14px; padding: 21px 14px 23px; }
.pp-window-icon { flex: none; width: 57px; height: 57px; }
.pp-message strong { display: block; font-size: 33px; line-height: 1.04; letter-spacing: -1.4px; }
.pp-message small { display: block; margin-top: 6px; font-size: 23px; line-height: 1.1; font-weight: 700; }
.pp-sprite { image-rendering: pixelated; }
@keyframes pp-open { 0% { transform: scale(.82) rotate(-4deg); } 65% { transform: scale(1.04) rotate(1.2deg); } }
@keyframes pp-glitch { 30% { transform: skewX(-3deg) translateX(8px); } 60% { transform: skewX(2deg) translateX(-4px); } }
.pp-window[data-armed="true"] .pp-window-icon { animation: pp-glitch 1.1s steps(2) infinite; }
#pp-fx { pointer-events: none; z-index: 4; overflow: hidden; }
.pp-fx { --hit: var(--gold); position: absolute; inset: 0; }
.pp-fx[data-action="stack"] { --hit: #ffadcb; }
.pp-fx[data-action="glitch"] { --hit: #ddf980; }
.pp-fx[data-action="storm"] { --hit: #ffdc74; }
.pp-fx[data-mode="rescue"] { --hit: #acf6df; }
.pp-burst { position: absolute; left: var(--cx); top: var(--cy); translate: -50% -50%; width: 210px; height: 210px; border: 9px dashed var(--hit); border-radius: 50%; filter: drop-shadow(2px 3px 0 var(--ink)); animation: pp-ring .75s ease-out both; }
.pp-fx[data-action="storm"] .pp-burst { width: 530px; height: 530px; border-width: 13px; }
.pp-fx[data-action="glitch"] .pp-burst { width: 320px; height: 240px; border-radius: 10%; }
.pp-fx[data-action="stack"] .pp-burst { width: 270px; height: 270px; border-style: dotted; }
.pp-fx[data-mode="rescue"]::before { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg,transparent 35%,#bcfff5a8 46%,white 49%,transparent 50%); animation: pp-sweep .85s ease-out both; }
.pp-fx[data-mode="chaos"][data-action="storm"]::before { content: ""; position: absolute; inset: 0; border: 16px dashed var(--hit); animation: pp-flash .85s ease-out both; }
.pp-stamp { position: absolute; top: var(--fy); left: var(--fx); translate: -50% -50%; width: max-content; max-width: 76%; background: var(--hit); color: var(--ink); border: 4px solid var(--ink); border-radius: 8px; padding: 7px 16px; font-size: 32px; font-weight: 900; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-3deg); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; animation: pp-stamp .28s ease-out; }
@keyframes pp-ring { from { scale: .38; opacity: 1; } to { scale: 1.45; opacity: 0; } }
@keyframes pp-sweep { from { translate: -85% -40%; } to { translate: 95% 45%; } }
@keyframes pp-flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes pp-stamp { from { scale: 1.14; } }
#pp-result { z-index: 2; display: grid; place-items: center; background: #fff0cd55; }
.pp-report { width: 74%; position: relative; border: 5px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 10px 11px 0 #383850b8; }
.pp-report-tab { display: block; border-bottom: 4px solid var(--ink); border-radius: 9px 9px 0 0; padding: 11px 22px; background: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-size: 22px; }
.pp-report-content { padding: 24px 28px; text-align: center; }
#pp-result-icon canvas { width: 78px; height: 78px; }
#pp-result-title { font-size: 53px; letter-spacing: -3px; line-height: 1.04; margin: 5px 0 22px !important; }
.pp-report dl { display: grid; gap: 8px; }
.pp-report dl div { display: flex; justify-content: space-between; gap: 15px; border-bottom: 2px solid #d5ccbc; padding: 4px 0 8px; align-items: baseline; }
.pp-report dt { font-size: 24px; font-weight: 700; }
.pp-report dd { font-size: 30px; max-width: 55%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
#pp-restart { margin-top: 20px !important; font-size: 23px; }
#pp-receipt { flex: none; height: 98px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
#pp-receipt-title { color: var(--gold); font-size: 47px; letter-spacing: -2px; line-height: 1.08; -webkit-text-stroke-width: 4px; }
#pp-receipt-detail { margin-top: 6px !important; font-size: 26px; }
#pp-receipt :is(strong,p) { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pp-section-title h2, #pp-mode { font-size: 25px; margin: 0; }
#pp-mode { color: var(--gold); }
#pp-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; margin-top: 12px; }
.pp-gift { min-width: 0; display: flex; align-items: center; gap: 12px; border: 4px solid var(--ink); border-radius: 13px; background: var(--paper); color: var(--ink); -webkit-text-stroke: 0; padding: 8px 11px; box-shadow: 0 4px 0 var(--ink); }
.pp-gift-icon { display: grid; place-items: center; flex: none; width: 60px; height: 60px; background: var(--accent); border: 2px solid var(--ink); border-radius: 9px; }
.pp-gift-icon :is(canvas,img) { width: 48px; height: 48px; object-fit: contain; }
.pp-gift-copy { min-width: 0; }
.pp-gift-copy :is(b,span) { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pp-gift-copy b { font-size: 30px; letter-spacing: -.8px; line-height: 1.03; }
.pp-chip { font-weight: 750; margin-top: 4px; font-size: 23px; }
#pp-stage footer { font-size: 21px; text-align: center; }
html[data-reduced-motion="1"] #pp-stage *, html[data-reduced-motion="1"] #pp-stage *::before { animation: none !important; transition: none !important; }
html[data-reduced-motion="1"] .pp-fx::before, html[data-reduced-motion="1"] .pp-burst { display: none; }
@media (prefers-reduced-motion: reduce) {
  #pp-stage *, #pp-stage *::before { animation: none !important; transition: none !important; }
  .pp-fx::before, .pp-burst { display: none; }
}
