/* Push log commands (push-commands.js). Every layer is position: fixed and removed when done. */
.pc-layer { box-sizing: border-box; }
.pc-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001; /* over the intro (9999), its skip button and Ponzi Buddy */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: pc-fade-in 0.4s ease-in both;
}
.pc-overlay:focus { outline: none; }
.pc-fade-out { opacity: 0 !important; transition: opacity 0.4s; }
@keyframes pc-fade-in { from { opacity: 0; } }

/* shutdown */
.pc-shutdown { background: #000; cursor: pointer; animation-duration: 0.6s; }
.pc-hint {
    color: #555;
    font: 14px monospace;
    text-align: center;
    animation: pc-fade-in 0.4s 2s both;
}

/* reboot, rm -rf / */
.pc-post, .pc-rmrf { background: #000; align-items: flex-start; justify-content: flex-start; animation: none; }
.pc-post-text {
    margin: 0;
    color: #c0c0c0;
    font: 15px/1.5 monospace;
    white-space: pre-wrap;
    word-break: break-word;
}
.pc-rmrf .pc-post-text { color: #00e05a; }

/* bsod */
.pc-bsod { background: #0000aa; cursor: pointer; animation: none; }
.pc-bsod-box {
    max-width: 640px;
    color: #fff;
    font: 16px/1.5 monospace;
}
.pc-bsod-title {
    display: table;
    margin: 0 auto 24px;
    background: #aaa;
    color: #0000aa;
    font-weight: bold;
}
.pc-bsod-cont { text-align: center; margin-top: 28px; }

/* Win98-style windows: format c:, the pager */
.pc-dim { background: rgba(0, 0, 0, 0.45); }
.pc-window {
    width: min(420px, 100%);
    background: #c0c0c0;
    color: #000;
    font: 14px/1.4 "MS Sans Serif", Tahoma, Geneva, sans-serif;
    border: 2px solid;
    border-color: #fff #404040 #404040 #fff;
    box-shadow: 2px 2px 0 #000;
}
.pc-window-title {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff;
    font-weight: bold;
    padding: 3px 6px;
}
.pc-window-body, .pc-pager { padding-bottom: 12px; }
.pc-window-body { padding: 12px; }
.pc-window p { margin: 0 0 10px; }
.pc-pager > p { padding: 0 12px; }
.pc-pager > p:first-of-type { margin-top: 12px; }
.pc-pager > .pc-button { margin-left: 12px; }
.pc-pager-big { font-size: 22px; font-weight: bold; color: #a4161a; }
.pc-muted { color: #444; font-size: 12px; }
.pc-progress {
    height: 20px;
    margin-bottom: 8px;
    background: #fff;
    border: 2px solid;
    border-color: #404040 #fff #fff #404040;
}
.pc-progress-fill { width: 0; height: 100%; background: #000080; transition: width 0.15s; }
.pc-progress-pct { font-weight: bold; }
.pc-button {
    min-width: 88px;
    padding: 4px 12px;
    background: #c0c0c0;
    color: #000;
    font: inherit;
    font-size: 14px;
    border: 2px solid;
    border-color: #fff #404040 #404040 #fff;
    cursor: pointer;
}
.pc-button:active { border-color: #404040 #fff #fff #404040; }
.pc-button:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }

/* matrix */
.pc-matrix {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    cursor: pointer;
}

/* Effects that knock the page around (applied to each top-level block) */
.pc-moving {
    transition: transform var(--pc-dur, 1.1s) cubic-bezier(0.55, 0, 1, 0.45) var(--pc-delay, 0s),
                opacity var(--pc-dur, 1.1s) ease-in var(--pc-delay, 0s);
}
.pc-moving.pc-rebuild { transition-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1.1), ease-out; }
.pc-fall { transform: translateY(120vh) rotate(var(--pc-r, 0deg)); }
.pc-rug { transform: translateY(110vh); }
.pc-stashed {
    transform: translate(var(--pc-tx, 0), var(--pc-ty, 0)) scale(0.02);
    opacity: 0;
}

/* git revert: the whole page flips over and back */
.pc-flip { animation: pc-flip 3.4s ease-in-out both; }
@keyframes pc-flip {
    0% { transform: rotate(0); }
    25%, 70% { transform: rotate(180deg); }
    100% { transform: rotate(0); }
}

/* friday deploy */
.pc-shake { animation: pc-shake 0.3s linear 5; }
@keyframes pc-shake {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-8px, 3px) rotate(-0.6deg); }
    40% { transform: translate(7px, -4px) rotate(0.5deg); }
    60% { transform: translate(-5px, -2px); }
    80% { transform: translate(6px, 4px) rotate(-0.4deg); }
}
.pc-siren {
    position: fixed;
    inset: 0;
    z-index: 9600;
    pointer-events: none;
    animation: pc-siren 0.8s steps(1) infinite;
}
@keyframes pc-siren {
    0% { box-shadow: inset 0 0 0 10px #e5383b, inset 0 0 120px rgba(229, 56, 59, 0.6); }
    50% { box-shadow: inset 0 0 0 10px #1d4ed8, inset 0 0 120px rgba(29, 78, 216, 0.6); }
}

/* party */
.pc-party { animation: pc-hue 1.2s linear infinite; }
@keyframes pc-hue { to { filter: hue-rotate(360deg); } }

/* coffee, confetti */
.pc-rain {
    position: fixed;
    inset: 0;
    z-index: 9600;
    overflow: hidden;
    pointer-events: none;
}
.pc-drop {
    position: absolute;
    top: -60px;
    line-height: 1;
    animation: pc-drop var(--pc-dur, 3s) cubic-bezier(0.4, 0, 0.8, 0.6) var(--pc-delay, 0s) both;
}
.pc-confetti { width: 9px; height: 15px; border-radius: 2px; }
@keyframes pc-drop {
    from { transform: translate(0, 0) rotate(0); }
    to { transform: translate(var(--pc-drift, 0), calc(100vh + 120px)) rotate(var(--pc-spin, 360deg)); }
}

/* hodl: a rocket crosses the screen */
.pc-rocket {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 9600;
    font-size: 72px;
    line-height: 1;
    pointer-events: none;
    animation: pc-rocket 2.4s cubic-bezier(0.5, 0, 0.9, 0.7) both;
}
@keyframes pc-rocket {
    from { transform: translate(-100px, 100px); }
    to { transform: translate(calc(100vw + 100px), calc(-100vh - 100px)); }
}

/* Centered messages: git blame, rug pull */
.pc-flash {
    position: fixed;
    inset: 0;
    z-index: 9600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    transition: opacity 0.4s;
}
.pc-flash p {
    margin: 0;
    padding: 16px 24px;
    background: #000;
    color: #fff;
    font: bold 28px/1.3 monospace;
    text-align: center;
    white-space: pre-line;
    border: 3px solid #e5383b;
    animation: pc-pop 0.35s cubic-bezier(0.3, 1.6, 0.6, 1) both;
}
.pc-blame p { font-size: 40px; animation: pc-pop 0.35s cubic-bezier(0.3, 1.6, 0.6, 1) both, pc-wiggle 0.5s 0.4s ease-in-out 3; }
@keyframes pc-pop { from { transform: scale(0.3); opacity: 0; } }
@keyframes pc-wiggle {
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* git stash: the pop button */
.pc-stash-box {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9600;
    padding: 10px 14px;
    background: #ffe8a3;
    color: #000;
    font: bold 15px monospace;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
    cursor: pointer;
    animation: pc-pop 0.35s cubic-bezier(0.3, 1.6, 0.6, 1) both;
}

/* invest: the portfolio ticker */
.pc-ticker {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9600;
    min-width: 220px;
    padding: 12px 16px;
    background: #000;
    color: #00e05a;
    font: 14px/1.3 monospace;
    border: 2px solid #00e05a;
    pointer-events: none;
    transition: opacity 0.4s;
    animation: pc-pop 0.35s cubic-bezier(0.3, 1.6, 0.6, 1) both;
}
.pc-ticker p { margin: 0; }
.pc-ticker-label { font-size: 12px; opacity: 0.8; }
.pc-ticker-value { font-size: 26px; font-weight: bold; }
.pc-up { color: #00e05a; }
.pc-down { color: #ff4d4f; }
.pc-ticker.pc-crash { color: #ff4d4f; border-color: #ff4d4f; animation: pc-shake 0.3s linear 3; }

/* merge conflict */
.pc-conflict-marker {
    max-width: 900px;
    margin: 0 auto;
    padding: 4px 12px;
    font: bold 14px monospace;
    color: #000;
}
.pc-ours-marker { background: #9be9a8; }
.pc-mid-marker { background: #ddd; }
.pc-theirs-marker { background: #9ecbff; }
.pc-ours { outline: 3px solid #2da44e; outline-offset: -3px; }
.pc-theirs { outline: 3px solid #0969da; outline-offset: -3px; }
.pc-conflict-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 900px;
    margin: 8px auto 24px;
    padding: 0 16px;
}

@media (prefers-reduced-motion: reduce) {
    /* Fades instead of movement */
    .pc-fall, .pc-rug { transform: none; opacity: 0; }
    .pc-stashed { transform: none; }
    .pc-flip, .pc-shake, .pc-party, .pc-ticker.pc-crash { animation: none; }
    .pc-siren { animation: none; box-shadow: inset 0 0 0 10px #e5383b; }
    .pc-flash p, .pc-blame p, .pc-stash-box, .pc-ticker { animation: none; }
}
