diff --git a/.idea/.idea.linuxdistrosbuttheyarebreedable/.idea/workspace.xml b/.idea/.idea.linuxdistrosbuttheyarebreedable/.idea/workspace.xml
index 030042e..b2f9754 100644
--- a/.idea/.idea.linuxdistrosbuttheyarebreedable/.idea/workspace.xml
+++ b/.idea/.idea.linuxdistrosbuttheyarebreedable/.idea/workspace.xml
@@ -11,128 +11,63 @@
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
+
+
-
-
+
+
-
-
-
-
+
+
+
+
+
-
-
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -177,6 +112,7 @@
+
@@ -208,7 +144,6 @@
-
{}
{
@@ -221,23 +156,23 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -250,34 +185,37 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
"associatedIndex": 8,
"fromUser": false
@@ -662,7 +600,6 @@
-
@@ -687,7 +624,8 @@
-
+
+
diff --git a/Assets/Data/Distros/Arch.asset b/Assets/Data/Distros/Arch.asset
index 655e29f..6685dca 100644
--- a/Assets/Data/Distros/Arch.asset
+++ b/Assets/Data/Distros/Arch.asset
@@ -17,8 +17,8 @@ MonoBehaviour:
primaryLanguage: 0
secondaryLanguage: 2
passive: {fileID: 11400000, guid: aa100000000000000000000000000001, type: 2}
- description: 'She uses Arch, btw. Her love language is linking the wiki, her desktop is a r/unixporn post, and her idea of a red flag is a preinstalled window manager. You can fix her. The instructions are on page 37.'
- playstyleSummary: volatile C/Rust tempo. every played card adds btw, which makes C and Rust hits bigger until the turn ends.
+ description: 'Arch is a lean rolling system assembled one deliberate package at a time. On the fractured network, its operators turn that ownership into momentum: every played card adds btw damage to C and Rust, while one rolling-release recovery per wave can leave a fatal crash at 1 Uptime.'
+ playstyleSummary: Build btw with every card, then cash that momentum into stronger C and Rust hits before the turn ends.
languageBlurbs:
- lang: 0
blurb: sharp native damage with a higher crit rate and occasional segfault recoil.
diff --git a/Assets/Data/Distros/Fedora.asset b/Assets/Data/Distros/Fedora.asset
index 6ee56e0..58e69e9 100644
--- a/Assets/Data/Distros/Fedora.asset
+++ b/Assets/Data/Distros/Fedora.asset
@@ -17,8 +17,8 @@ MonoBehaviour:
primaryLanguage: 2
secondaryLanguage: 8
passive: {fileID: 11400000, guid: ded62c69f70d38a49b21972d857df4e2, type: 2}
- description: 'She wears a red hat and calls production her test environment. Every date is early access; every breakup gets a bug report. You liked that new feature? She was daily-driving it two kernel panics ago.'
- playstyleSummary: high-tempo gambler. her first play each turn is pushed hard, but bleeding edge bites back. rust cards are her safety net.
+ description: 'Fedora is where new kernels and toolchains meet real hardware before the rest of the fleet adopts them. Its surviving test nodes still run ahead of the stable mirrors; Bleeding Edge makes the first card each turn cheaper and stronger, with a crash risk that rises until the experiment finally fails.'
+ playstyleSummary: Push the first play of each turn for speed and damage, then use reliable Rust cards to contain the growing crash risk.
languageBlurbs:
- lang: 2
blurb: guaranteed damage that never misses; overkill turns to shield.
diff --git a/Assets/Data/Distros/Gentoo.asset b/Assets/Data/Distros/Gentoo.asset
index 0d9a3ab..8332583 100644
--- a/Assets/Data/Distros/Gentoo.asset
+++ b/Assets/Data/Distros/Gentoo.asset
@@ -17,8 +17,8 @@ MonoBehaviour:
primaryLanguage: 6
secondaryLanguage: 0
passive: {fileID: 11400000, guid: b821fa56a5034b9bbd3a000000000102, type: 2}
- description: 'She wants a slow-burn romance. The burn is her CPU and the slow is emerge --world. Bring the extended editions, a cooling pad, and your own USE flags. By the third date, Firefox might be ready.'
- playstyleSummary: "Compile across rounds; stage Haskell operations or dispatch C hits as optimization grows."
+ description: 'Gentoo treats the host as source code rather than a finished appliance. The old build farms now compile defenses for whatever hardware is still alive; emerge --world starts each wave below full strength, then raises direct card damage as completed rounds advance Compilation.'
+ playstyleSummary: "Accept a slow opening, then stage Haskell operations or dispatch C hits as Compilation improves across rounds."
languageBlurbs:
- lang: 6
blurb: "Lazy Stack snapshots up to x2.5 damage and Shield; resolves last-in-first-out."
diff --git a/Assets/Data/Distros/Mint.asset b/Assets/Data/Distros/Mint.asset
index b5ec4ca..f225b10 100644
--- a/Assets/Data/Distros/Mint.asset
+++ b/Assets/Data/Distros/Mint.asset
@@ -17,8 +17,8 @@ MonoBehaviour:
primaryLanguage: 3
secondaryLanguage: 4
passive: {fileID: 11400000, guid: d97481a7d54be2045a96165d3977c980, type: 2}
- description: 'The cozy-game girlfriend of Linux. She resurrected your old laptop, put the Start menu back, and made tea while everyone else argued about Wayland. Her power fantasy is a printer that works on the first try.'
- playstyleSummary: zero-variance comfort. every number lands at its ceiling, so you always know exactly what a turn does -- at the cost of a high-roll upside.
+ description: 'Mint keeps old workstations useful and their operators out of the command line unless trouble demands it. Its known-good desktop images became shelters after the Panic; It Just Works forces every random value to its maximum, giving up critical hits and damage multipliers for results you can trust.'
+ playstyleSummary: Every random value lands at its ceiling. Plan exact turns without critical hits or damage multipliers.
languageBlurbs:
- lang: 3
blurb: cheap, flexible cards that resolve at end of turn.
diff --git a/Assets/Data/Distros/NixOS.asset b/Assets/Data/Distros/NixOS.asset
index b9cef93..ad00f0d 100644
--- a/Assets/Data/Distros/NixOS.asset
+++ b/Assets/Data/Distros/NixOS.asset
@@ -17,8 +17,8 @@ MonoBehaviour:
primaryLanguage: 6
secondaryLanguage: 9
passive: {fileID: 11400000, guid: b7fb0d7714cd44af9554d3fe8df88081, type: 2}
- description: 'She can fix you, declaratively. Your entire relationship is in a flake, the anniversary is pinned, and that argument never happened in the previous generation. Her dotfiles have lore. You will be quizzed.'
- playstyleSummary: "Switch CPU governors tactically. Stage Haskell effects or maintain Go goroutines; apply the right policy at resolution."
+ description: 'NixOS can rebuild a host from a declaration and return to the previous generation when reality disagrees. That made its archives invaluable when configuration drift consumed whole racks; nixos-rebuild switch spends a Cycle to favor damage, Shield, or a balanced governor before queued effects resolve.'
+ playstyleSummary: "Switch CPU governors before effects resolve: performance for damage, powersave for Shield, or schedutil for balance."
languageBlurbs:
- lang: 6
blurb: "Snapshot stack depth, then switch governor before the effects resolve."
diff --git a/Assets/Data/Distros/Ubuntu.asset b/Assets/Data/Distros/Ubuntu.asset
index 76d35b5..2b05ef6 100644
--- a/Assets/Data/Distros/Ubuntu.asset
+++ b/Assets/Data/Distros/Ubuntu.asset
@@ -17,8 +17,8 @@ MonoBehaviour:
primaryLanguage: 3
secondaryLanguage: 4
passive: {fileID: 11400000, guid: 19deb73cec3d5dc42a5cc336222ce9df, type: 2}
- description: 'She brought a bootable USB to the meet-cute and had your Wi-Fi working before the opening credits. Everyone''s first Linux crush. Things are getting serious: she wants you to meet her Snaps and discuss extended kernel support.'
- playstyleSummary: an accessible engine that never runs dry -- cheap python cards and a passive that always finds you the right package.
+ description: 'Ubuntu is the recovery image most operators learned first: broad hardware support, familiar tools, and a package index built to find the practical answer. Its mirrors brought thousands of silent hosts back after the Panic; in combat, sudo apt update replaces a blind draw with a choice from the top of the deck.'
+ playstyleSummary: Use cheap Python cards to keep the engine moving, then choose the better of the next two draws each turn.
languageBlurbs:
- lang: 3
blurb: cheap, flexible cards that resolve at end of turn.
diff --git a/Assets/Data/Passives/AptUpdate.asset b/Assets/Data/Passives/AptUpdate.asset
index a6d3beb..0ffb1f8 100644
--- a/Assets/Data/Passives/AptUpdate.asset
+++ b/Assets/Data/Passives/AptUpdate.asset
@@ -15,5 +15,5 @@ MonoBehaviour:
id: ubuntu_apt_update
displayName: sudo apt update
rulesText: instead of your normal turn draw, choose one of the top 2 cards of your draw pile to add to your hand. the others stay in order.
- flavorText: 'Refresh the index before choosing your next dependency.'
+ flavorText: 'The mirrors survived in pieces, but the index still knows what is available. Check the next packages and install the one this incident needs.'
designNotes: replaces normal turn draw with a mandatory card choice; top 2 at V1, top 3 at V2, top 4 at V4; V4 discounts the chosen card by 1 this turn. Opening hand unchanged. Respect RAM and preserve unchosen draw order.
diff --git a/Assets/Data/Passives/BleedingEdge.asset b/Assets/Data/Passives/BleedingEdge.asset
index ade6ced..9b357b3 100644
--- a/Assets/Data/Passives/BleedingEdge.asset
+++ b/Assets/Data/Passives/BleedingEdge.asset
@@ -15,5 +15,5 @@ MonoBehaviour:
id: fedora_bleeding_edge
displayName: Bleeding Edge
rulesText: the first card you play each turn costs 1 less and deals +50%, but may crash (do nothing). crash chance rises each turn it doesn't happen and resets when it does.
- flavorText: 'The speedup is real. So is the open issue describing the crash.'
+ flavorText: 'Fedora ships the next kernel straight to the battlefield. The first job runs faster and hits harder; every clean turn makes the eventual crash more likely.'
designNotes: applies discount+damage mult to first-card-of-turn; escalating crash probability with reset-on-trigger; interacts with Fedora cards flagged crash-immune and with rawhide.
diff --git a/Assets/Data/Passives/EmergeWorld.asset b/Assets/Data/Passives/EmergeWorld.asset
index 6627d7c..baa146f 100644
--- a/Assets/Data/Passives/EmergeWorld.asset
+++ b/Assets/Data/Passives/EmergeWorld.asset
@@ -15,5 +15,5 @@ MonoBehaviour:
id: gentoo_emerge_world
displayName: emerge --world
rulesText: "Compilation starts at 0 each wave and increases after each completed round, up to 4. Direct card damage at levels 0/1/2/3/4 is 85%/100%/110%/120%/130%. Deferred damage uses the level at resolution."
- flavorText: 'Slow start. Better code each round. The build is the strategy.'
+ flavorText: 'A generic binary gets the host running. Each completed round gives Gentoo time to compile something faster for the machine that survived.'
designNotes: "Independent wave state. Version upgrades are cumulative: ccache, precompiled headers, LTO, -O3 -march=native. Excludes recoil, DOT, package damage and repeated spill scaling."
diff --git a/Assets/Data/Passives/IUseArchBtw.asset b/Assets/Data/Passives/IUseArchBtw.asset
index 0a1bbd2..5a40200 100644
--- a/Assets/Data/Passives/IUseArchBtw.asset
+++ b/Assets/Data/Passives/IUseArchBtw.asset
@@ -15,5 +15,5 @@ MonoBehaviour:
id: arch_i_use_arch_btw
displayName: I use Arch, btw
rulesText: Each card played adds 1 btw until end of turn. C and Rust damage gains +1 per btw. Once per wave, lethal uptime sets Arch to 1 instead and clears btw.
- flavorText: 'Each command adds confidence. Eventually the confidence becomes damage, btw.'
+ flavorText: 'Every played command is another claim of ownership. btw stacks sharpen C and Rust for the turn, and the latest recovery image can rescue one fatal mistake per wave.'
designNotes: V1 base passive. Increment btw before resolving each played card. End of TURN resets btw unless Arch has systemd equipped on-distro. First lethal damage each WAVE consumes rolling-release save, sets uptime to 1, clears btw, and logs a recovery beat.
diff --git a/Assets/Data/Passives/ItJustWorks.asset b/Assets/Data/Passives/ItJustWorks.asset
index 46294d2..fd036c5 100644
--- a/Assets/Data/Passives/ItJustWorks.asset
+++ b/Assets/Data/Passives/ItJustWorks.asset
@@ -14,6 +14,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
id: mint_it_just_works
displayName: It Just Works
- rulesText: mint's random values always resolve at maximum. in exchange, mint cannot crit and ignores damage multipliers -- her numbers are always the ceiling, never above it.
- flavorText: 'Predictable results. A feature people keep mistaking for luck.'
+ rulesText: Mint's random values always resolve at maximum. In exchange, Mint cannot crit and ignores damage multipliers -- its numbers are always the ceiling, never above it.
+ flavorText: 'Mint follows the known-good path. Every random value reaches its ceiling, and nothing exceeds the specification through criticals or multipliers.'
designNotes: force-max on every RNG roll routed through the combat RNG chokepoint; disable crit and damage-mult application for Mint; requires combat engine to centralize randomness + multipliers.
diff --git a/Assets/Data/Passives/NixRebuildSwitch.asset b/Assets/Data/Passives/NixRebuildSwitch.asset
index f5238f6..3f32000 100644
--- a/Assets/Data/Passives/NixRebuildSwitch.asset
+++ b/Assets/Data/Passives/NixRebuildSwitch.asset
@@ -15,5 +15,5 @@ MonoBehaviour:
id: nixos_rebuild_switch
displayName: nixos-rebuild switch
rulesText: "Once per turn, pay 1 Cycle to switch governor. performance: +20% card damage, -25% card Shield. powersave: -20% card damage, +30% card Shield. schedutil: +5% both. Start each wave in schedutil. Live modifiers apply when effects resolve."
- flavorText: 'Same workload, different policy. Pick what matters before the effects resolve.'
+ flavorText: 'The build stays reproducible; only the policy changes. Choose performance, powersave, or schedutil before pending work resolves.'
designNotes: "CPU governor names are used as gameplay metaphors. V2-V5 upgrades are cumulative."
diff --git a/Assets/Resources/CombatScene.uss b/Assets/Resources/CombatScene.uss
index 6e92d6a..a2ae388 100644
--- a/Assets/Resources/CombatScene.uss
+++ b/Assets/Resources/CombatScene.uss
@@ -2208,7 +2208,6 @@
.kernel-ui #TutorialStepTitle { white-space: normal; font-size: var(--type-body); margin-bottom: 8px; flex-shrink: 0; }
.kernel-ui #TutorialStepCount { color: rgb(153, 239, 206); }
.kernel-ui .tutorial-callout Button { white-space: normal; min-height: 32px; flex-shrink: 0; margin-top: 8px; }
-.tutorial-guided .runtime-hint { display: none; }
.kernel-ui.narrow.tutorial-card-focus .turn-panel { display: none; }
.kernel-ui.narrow.tutorial-card-focus .hand-panel { width: 100%; }
.tutorial-shop-highlight { padding: 8px; margin-bottom: 12px; border-width: 2px; border-color: rgb(153, 239, 206); }
diff --git a/Assets/Resources/KernelTheme.uss b/Assets/Resources/KernelTheme.uss
index 78e8aa2..a6c0568 100644
--- a/Assets/Resources/KernelTheme.uss
+++ b/Assets/Resources/KernelTheme.uss
@@ -189,7 +189,7 @@
.kernel-ui .unit-info-section .detail-section-title { flex-shrink: 0; margin: 0 0 12px; padding-bottom: 8px; }
.kernel-ui .unit-info-section .kv-row { flex-shrink: 0; margin: 0 0 12px; overflow: visible; }
.kernel-ui .unit-info-section .collection-detail-description { flex-shrink: 0; margin: 0; white-space: normal; }
-.kernel-ui .unit-passive-section { margin-top: 24px; margin-bottom: 12px; }
+.kernel-ui .unit-passive-section { margin-top: var(--space-4); margin-bottom: var(--space-3); }
.kernel-ui .unit-info-section .flavor-text { flex-shrink: 0; margin: 12px 0 0; white-space: normal; }
.kernel-ui .collection-row,
.kernel-ui .unit-overview-row,
@@ -224,6 +224,12 @@
.kernel-ui .settings-description,
.kernel-ui .settings-help { color: var(--kp-muted); font-size: var(--type-body); white-space: normal; margin-top: 8px; }
.kernel-ui .settings-help { margin: var(--space-2) 0 var(--space-4); }
+.kernel-ui .settings-slider-control { width: 300px; min-width: 220px; flex-direction: row; align-items: center; margin-left: var(--space-3); }
+.kernel-ui .settings-volume-slider { flex-grow: 1; min-width: 150px; height: 34px; }
+.kernel-ui .settings-volume-slider .unity-base-slider__tracker { height: 4px; background-color: var(--kp-border); }
+.kernel-ui .settings-volume-slider .unity-base-slider__dragger { width: 14px; height: 20px; background-color: var(--kp-amber); border-width: 1px; border-color: var(--kp-bg); }
+.kernel-ui .settings-volume-slider .unity-base-slider__dragger-border { display: none; }
+.kernel-ui .settings-slider-value { width: 64px; margin-left: var(--space-2); color: var(--kp-amber); -unity-text-align: middle-right; white-space: nowrap; }
/* Shared content primitives: bounded rows, contextual navigation, and readable data. */
.kernel-ui .collection-actions,
@@ -232,6 +238,7 @@
.kernel-ui .collection-context { padding: var(--space-2) 0 0; }
.kernel-ui .collection-detail > .unity-scroll-view__content-viewport > .unity-scroll-view__content-container { padding: 0 var(--space-2) var(--space-4) 0; flex-grow: 0; }
.kernel-ui .collection-detail-full > .unity-scroll-view__content-viewport > .unity-scroll-view__content-container { flex-grow: 0; }
+.kernel-ui .collection-detail-full > .unity-scroll-view__content-viewport > .unity-scroll-view__content-container { justify-content: flex-start; }
.kernel-ui .collection-list .unity-scroll-view__content-container { min-width: 0; }
.kernel-ui .unit-detail-header { flex-direction: row; align-items: flex-start; margin-bottom: var(--space-2); }
.kernel-ui .unit-detail-header .unit-overview-meta { margin-top: var(--space-2); }
@@ -347,7 +354,8 @@
.kernel-ui .starter-dialog,
.kernel-ui .root-credit-dialog,
.kernel-ui .package-equip-dialog,
-.kernel-ui .five-star-selector-dialog { width: 88%; max-width: 1000px; min-width: 0; max-height: 96%; border-width: 2px 1px 1px; border-color: var(--kp-border); border-top-color: var(--kp-amber); background-color: var(--kp-panel); padding: 20px; scale: 1 1; }
+.kernel-ui .five-star-selector-dialog,
+.kernel-ui .gacha-pull-history-dialog { width: 88%; max-width: 1000px; min-width: 0; max-height: 96%; border-width: 2px 1px 1px; border-color: var(--kp-border); border-top-color: var(--kp-amber); background-color: var(--kp-panel); padding: 20px; scale: 1 1; }
.kernel-ui .starter-title { font-size: 22px; color: var(--kp-text); }
.kernel-ui .starter-instruction { white-space: normal; color: var(--kp-muted); }
.kernel-ui .starter-options { flex-wrap: wrap; }
@@ -484,17 +492,8 @@
.kernel-ui .terminal-stat-value.compilation-value { flex-grow: 0; flex-shrink: 0; }
.kernel-ui .terminal-stat-row.turn-stat-row { margin-bottom: 4px; }
.kernel-ui .terminal-stat-key.turn-stat-label { width: 72px; margin-right: 8px; }
-.kernel-ui .combat-packages { flex-shrink: 0; min-width: 0; width: 100%; padding: 10px 0 0; margin-top: 10px; border-top-width: 1px; border-top-color: var(--kp-border-subtle); }
-.kernel-ui .package-loadout-title { font-size: var(--type-meta); color: var(--kp-text-dim); margin-bottom: 6px; }
-.kernel-ui .package-readiness-strip { flex-direction: column; min-width: 0; }
-.kernel-ui .package-readiness-chip { flex-direction: row; align-items: center; flex-shrink: 0; min-width: 0; max-width: 100%; overflow: hidden; padding: 4px 0; margin: 0 0 3px; border-width: 0; border-bottom-width: 1px; border-color: var(--kp-border-subtle); }
-.kernel-ui .package-readiness-copy { flex-grow: 1; flex-shrink: 1; min-width: 0; }
-.kernel-ui .package-readiness-chip:focus { border-color: var(--kp-text); background-color: var(--kp-hover); }
.kernel-ui .card-chip:focus { border-color: var(--kp-text); background-color: var(--kp-hover); }
-.kernel-ui .package-readiness-chip .package-rarity { margin-right: 6px; flex-shrink: 0; }
-.kernel-ui .package-readiness-name { font-size: var(--type-meta); color: var(--kp-text); margin-right: 6px; min-width: 0; flex-shrink: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
-.kernel-ui .package-readiness-state { font-size: var(--type-meta); color: var(--kp-cyan); min-width: 0; max-width: 100%; flex-shrink: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
-.kernel-ui .package-activation { font-size: var(--type-meta); color: var(--kp-success); min-width: 0; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
+.kernel-ui .package-activation { width: 100%; margin-top: 6px; padding-top: 5px; border-top-width: 1px; border-top-color: var(--kp-border-subtle); font-size: var(--type-meta); color: var(--kp-success); min-width: 0; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kernel-ui .software-live-preview { margin-top: 8px; padding-top: 6px; border-top-width: 1px; border-top-color: var(--kp-border-subtle); color: var(--kp-cyan); font-size: var(--type-meta); white-space: normal; flex-shrink: 0; }
.kernel-ui .software-live-crit { margin-top: 2px; color: var(--kp-muted); font-size: var(--type-meta); white-space: normal; flex-shrink: 0; }
.distro-nixos { --kp-distro: #7dc7f5; }
@@ -790,6 +789,7 @@
.kernel-ui.narrow .settings-row { flex-direction: column; align-items: stretch; }
.kernel-ui.narrow .settings-copy { flex-basis: auto; width: 100%; }
.kernel-ui.narrow .settings-toggle { align-self: flex-start; margin: var(--space-3) 0 0; }
+.kernel-ui.narrow .settings-slider-control { width: 100%; min-width: 0; margin: var(--space-3) 0 0; }
.kernel-ui.narrow .screen-frame-hint { font-size: var(--type-meta); }
.kernel-ui.narrow .gacha-banner-row { flex-basis: 80px; flex-grow: 1; min-height: 80px; padding: var(--space-2); }
.kernel-ui.narrow .gacha-detail-title { white-space: normal; font-size: var(--type-title); }
@@ -869,15 +869,15 @@
.kernel-ui .peek-card .software-footer { display: none; }
.kernel-ui .peek-card .software-header { padding: 4px; }
.kernel-ui .peek-card .software-name { font-size: var(--type-meta); padding: 4px; }
-.kernel-ui .runtime-hint { position: absolute; padding: 10px 12px; margin: 0; border-width: 1px; border-color: var(--kp-cyan); background-color: #16201b; color: var(--kp-text); font-size: var(--type-body); white-space: normal; }
.kernel-ui .bottom-layout.confirming { height: 340px; }
.kernel-ui.narrow .bottom-layout.confirming { height: auto; }
/* Combat refinement: content-sized tactical region, persistent readable buffer. */
.kernel-ui .combat-workspace { flex-grow: 0; flex-shrink: 1; }
.kernel-ui .combat-workspace > .unity-scroll-view__content-viewport > .unity-scroll-view__content-container { flex-grow: 0; }
-.kernel-ui .bottom-layout { height: auto; flex-basis: 260px; flex-grow: 1; flex-shrink: 0; min-height: 260px; max-height: 380px; }
-.kernel-ui.short-screen .bottom-layout { height: auto; flex-basis: 235px; min-height: 235px; max-height: 285px; }
+.kernel-ui .bottom-layout { height: auto; flex-basis: 330px; flex-grow: 0; flex-shrink: 0; min-height: 330px; max-height: 420px; margin-top: auto; }
+.kernel-ui.short-screen .bottom-layout { height: auto; flex-basis: 310px; min-height: 310px; max-height: 350px; }
+.kernel-ui.very-short-screen .bottom-layout { flex-basis: 235px; min-height: 235px; max-height: 285px; }
.kernel-ui .bottom-layout.confirming { height: auto; min-height: 340px; }
.kernel-ui .enemy-row { align-items: flex-start; }
.kernel-ui .enemy-card { flex-grow: 0; flex-shrink: 0; }
@@ -887,7 +887,6 @@
.kernel-ui .enemy-card .intent-panel { min-height: 48px; }
.kernel-ui .enemy-card .process-state { margin-bottom: 2px; }
.kernel-ui .process-intent-slot { min-height: 48px; }
-.kernel-ui .process-behavior { color: var(--kp-muted); white-space: normal; font-size: var(--type-meta); min-height: 0; margin-top: var(--space-1); }
.kernel-ui .scheduler { padding-top: 4px; padding-bottom: 4px; flex-direction: row; flex-wrap: wrap; }
.kernel-ui .scheduler .panel-header { width: 100%; flex-wrap: wrap; }
.kernel-ui .scheduler .track-zone { width: 100%; min-width: 0; }
@@ -932,13 +931,21 @@
.kernel-ui .hand-card:focus { border-bottom-width: 3px; border-bottom-color: var(--kp-text); }
.kernel-ui .journal-scroll { max-height: 110px; }
.kernel-ui .combat-journal .unity-foldout__text { font-size: var(--type-meta); }
-.kernel-ui .combat-journal { margin-top: auto; }
+.kernel-ui .combat-journal { margin-top: 0; }
.kernel-ui .journal-entry { font-size: var(--type-meta); white-space: normal; color: var(--kp-muted); margin: 2px 0; }
.kernel-ui .journal-damage { color: var(--kp-danger); }
.kernel-ui .journal-shield { color: var(--kp-cyan); }
.kernel-ui .journal-heal { color: var(--kp-success); }
.kernel-ui .journal-status { color: var(--kp-lang-haskell); }
.kernel-ui .journal-operation { color: var(--kp-amber); }
+.kernel-ui .journal-action-results { margin-top: 5px; padding-top: 4px; border-top-width: 1px; border-top-color: var(--kp-border-subtle); }
+.kernel-ui .journal-action-result { flex-shrink: 0; margin: 1px 0; }
+.kernel-ui .journal-action-result > Toggle { min-height: 20px; margin: 0; padding: 1px 0; }
+.kernel-ui .journal-action-result .unity-foldout__text { color: var(--kp-muted); font-size: var(--type-meta); white-space: normal; }
+.kernel-ui .journal-action-active .unity-foldout__text { color: var(--kp-amber); }
+.kernel-ui .journal-action-detail,
+.kernel-ui .journal-action-damage { margin: 2px 0 2px 18px; font-size: var(--type-meta); white-space: normal; color: var(--kp-muted); }
+.kernel-ui .journal-action-damage { color: var(--kp-cyan); }
.kernel-ui .process-restarting:disabled { opacity: 1; }
.kernel-ui .process-restarting .process-terminated { color: var(--kp-lang-haskell); }
.kernel-ui .process-terminated { white-space: normal; }
@@ -974,3 +981,212 @@
.kernel-ui.short-screen .gacha-art-shell,
.kernel-ui.short-screen .gacha-art-card .ascii-art { height: 65px; }
.kernel-ui.short-screen .gacha-hero-title { display: none; }
+
+/* Terminal interaction pass: command rows and editor-like buffers. */
+.kernel-ui .terminal-button,
+.kernel-ui .primary-action,
+.kernel-ui .secondary-action,
+.kernel-ui .repository-action {
+ border-width: 0 0 1px 2px;
+ border-left-color: var(--kp-border-strong);
+ border-bottom-color: var(--kp-border-subtle);
+ background-color: transparent;
+ color: var(--kp-text);
+ -unity-text-align: middle-left;
+}
+.kernel-ui .terminal-button:hover,
+.kernel-ui .primary-action:hover,
+.kernel-ui .secondary-action:hover,
+.kernel-ui .repository-action:hover,
+.kernel-ui .terminal-button:focus,
+.kernel-ui .primary-action:focus,
+.kernel-ui .secondary-action:focus,
+.kernel-ui .repository-action:focus {
+ border-left-color: var(--kp-amber);
+ background-color: var(--kp-hover);
+ color: var(--kp-amber);
+}
+.kernel-ui .terminal-button:disabled,
+.kernel-ui .primary-action:disabled,
+.kernel-ui .secondary-action:disabled,
+.kernel-ui .repository-action:disabled {
+ border-left-color: var(--kp-border-subtle);
+ background-color: transparent;
+ color: var(--kp-muted);
+ opacity: 0.55;
+}
+
+.kernel-ui .screen-frame-header { border-top-width: 1px; border-top-color: var(--kp-cyan); }
+.kernel-ui .screen-frame-title { color: var(--kp-cyan); }
+.kernel-ui .screen-frame-footer { background-color: var(--kp-bg-deep); }
+
+.kernel-ui .software-card {
+ border-width: 1px 0 1px 3px;
+ border-left-color: var(--software-ink);
+ border-top-color: var(--kp-border-subtle);
+ border-bottom-color: var(--kp-border-subtle);
+}
+.kernel-ui .software-code-line { flex-direction: row; align-items: flex-start; min-width: 0; }
+.kernel-ui .software-line-number {
+ width: 24px;
+ min-width: 24px;
+ color: var(--kp-primary-dim);
+ -unity-text-align: upper-right;
+ margin-right: 8px;
+ flex-shrink: 0;
+}
+.kernel-ui .software-code-line .software-effect,
+.kernel-ui .software-code-line .software-conditions { flex-grow: 1; min-width: 0; }
+
+.kernel-ui .combat-command-prompt {
+ flex-shrink: 0;
+ min-height: 34px;
+ padding: 7px 18px;
+ border-width: 0 0 1px 2px;
+ border-left-color: var(--kp-cyan);
+ border-bottom-color: var(--kp-border);
+ background-color: var(--kp-bg-deep);
+ color: var(--kp-cyan);
+ -unity-font-style: bold;
+ white-space: normal;
+}
+.kernel-ui.combat-awaiting-target .combat-command-prompt { border-left-color: var(--kp-amber); color: var(--kp-amber); }
+.kernel-ui.combat-resolving .hand-panel,
+.kernel-ui.combat-resolving .turn-panel,
+.kernel-ui.combat-awaiting-target .hand-panel { opacity: 0.52; }
+.kernel-ui.combat-awaiting-target .process-panel { border-top-color: var(--kp-amber); }
+
+.kernel-ui .settings-config-comment { color: var(--kp-primary-dim); margin-bottom: 8px; white-space: normal; }
+.kernel-ui .settings-label { color: var(--kp-cyan); }
+.kernel-ui .settings-description { color: var(--kp-primary-dim); }
+.kernel-ui .settings-slider-value { color: var(--kp-amber); min-width: 150px; }
+
+.kernel-ui .collection-tab { border-width: 0 0 1px 2px; border-left-color: transparent; }
+.kernel-ui .collection-tab.selected { border-left-color: var(--kp-cyan); border-bottom-color: var(--kp-border-subtle); background-color: var(--kp-hover); }
+
+.kernel-ui .run-archive-table { width: 100%; color: var(--kp-text); white-space: normal; padding: 8px 10px; border-left-width: 2px; border-left-color: var(--kp-cyan); background-color: var(--kp-bg-deep); }
+.kernel-ui .run-archive-columns { color: var(--kp-primary-dim); }
+.kernel-ui .repository-command-heading { color: var(--kp-cyan); border-bottom-color: var(--kp-border); }
+.kernel-ui .repository-primary-command { border-left-color: var(--kp-amber); color: var(--kp-amber); -unity-font-style: bold; }
+.kernel-ui .gacha-pull-history-dialog.is-empty {
+ height: 145px;
+ min-height: 145px;
+ max-height: 145px;
+}
+
+/* The unit roster is intentionally a dense `ls -lah` table, overriding the
+ older responsive card layout retained for the other collection lists. */
+.kernel-ui .unit-overview-row {
+ width: 100%;
+ min-width: 0;
+ min-height: 52px;
+ height: auto;
+ flex-direction: column;
+ align-items: stretch;
+}
+.kernel-ui .unit-overview-row .unit-ls-line {
+ width: 100%;
+ min-width: 0;
+ flex-grow: 1;
+ white-space: nowrap;
+ font-size: var(--type-meta);
+ -unity-text-align: middle-left;
+}
+.kernel-ui .unit-overview-roster { flex-grow: 0; flex-shrink: 0; justify-content: flex-start; }
+.kernel-ui .unit-loadout-line { color: var(--kp-muted); font-size: var(--type-meta); }
+
+/* Configuration screens read as files, not preference cards. */
+.kernel-ui .settings-config-file { max-width: 860px; }
+.kernel-ui .settings-config-path { color: var(--kp-text); -unity-font-style: bold; margin-bottom: 2px; }
+.kernel-ui .settings-config-file .settings-config-comment { margin: 0 0 10px; }
+.kernel-ui .settings-config-file .settings-config-line {
+ min-height: 34px; padding: 2px 0; justify-content: flex-start;
+ border-width: 0; background-color: transparent;
+}
+.kernel-ui .settings-config-key { width: 170px; min-width: 170px; flex-grow: 0; flex-shrink: 0; color: var(--kp-text); }
+.kernel-ui .settings-assignment { width: 24px; min-width: 24px; color: var(--kp-muted); }
+.kernel-ui .settings-config-value { flex-grow: 0; flex-shrink: 1; min-width: 0; }
+.kernel-ui .settings-config-file .settings-description { margin: 0 0 7px 194px; color: var(--kp-primary-dim); }
+.kernel-ui .settings-config-file .settings-choice {
+ min-height: 28px; height: 28px; padding: 2px 8px; margin: 0;
+ border-width: 0; background-color: transparent; color: var(--kp-amber);
+ -unity-text-align: middle-left;
+}
+.kernel-ui .settings-config-file .settings-choice:hover,
+.kernel-ui .settings-config-file .settings-choice:focus { background-color: var(--kp-hover); color: var(--kp-amber); }
+.kernel-ui .settings-config-file .settings-slider-control { flex-direction: row; align-items: center; flex-grow: 1; }
+.kernel-ui .settings-config-file .settings-volume-slider { width: 220px; min-width: 120px; margin-right: 12px; }
+.kernel-ui .settings-config-file .settings-slider-value { min-width: 150px; white-space: nowrap; }
+.kernel-ui .settings-config-help { color: var(--kp-primary-dim); white-space: normal; }
+.kernel-ui.narrow .settings-config-key { width: 126px; min-width: 126px; }
+.kernel-ui.narrow .settings-config-file .settings-description { margin-left: 150px; }
+.kernel-ui.narrow .settings-volume-line { flex-wrap: wrap; }
+
+/* Shell-history archive: fixed columns and command links, not button cards. */
+.kernel-ui .run-archive-actions { width: 100%; max-width: 980px; }
+.kernel-ui .run-archive-columns,
+.kernel-ui .run-archive-table-row { white-space: nowrap; font-size: var(--type-body); }
+.kernel-ui .run-archive-columns { padding: 5px 8px; border-bottom-width: 1px; border-bottom-color: var(--kp-border); }
+.kernel-ui .run-archive-table-row { width: 100%; padding: 4px 8px; color: var(--kp-text); background-color: transparent; }
+.kernel-ui .run-archive-table-row:hover { background-color: var(--kp-hover); }
+.kernel-ui .run-archive-empty { padding: 10px 8px; color: var(--kp-amber); }
+.kernel-ui .run-archive-section-label { margin-top: 18px; color: var(--kp-primary-dim); }
+.kernel-ui .run-archive-commands { flex-direction: row; flex-wrap: wrap; margin-top: 8px; }
+.kernel-ui .run-archive-actions .run-archive-command {
+ width: auto; min-width: 0; min-height: 28px; height: auto; margin: 0 18px 4px 0; padding: 3px 0;
+ border-width: 0; background-color: transparent; color: var(--kp-cyan); -unity-text-align: middle-left;
+}
+.kernel-ui .run-archive-actions .run-archive-command:hover,
+.kernel-ui .run-archive-actions .run-archive-command:focus { background-color: var(--kp-hover); color: var(--kp-amber); }
+
+/* Repository command groups and one unmistakable recommended next action. */
+.kernel-ui .repository-package-operations { margin-top: 14px; padding-top: 8px; border-top-width: 1px; border-top-color: var(--kp-border); }
+.kernel-ui .repository-section-label { color: var(--kp-text); border-width: 0; padding: 0; margin-bottom: 4px; }
+.kernel-ui .repository-command-heading { border-width: 0; padding: 0; margin: 0 0 10px; color: var(--kp-cyan); }
+.kernel-ui .repository-footer { align-items: stretch; }
+.kernel-ui .repository-footer-group { min-width: 0; padding: 5px 8px; }
+.kernel-ui .repository-package-controls { width: 210px; flex-shrink: 0; margin-right: 14px; border-right-width: 1px; border-right-color: var(--kp-border); }
+.kernel-ui .repository-footer-label { margin: 0 0 4px; color: var(--kp-muted); font-size: var(--type-meta); }
+.kernel-ui .repository-footer .repository-reroll-action { width: auto; height: 30px; margin: 0; padding: 3px 8px; border-color: var(--kp-border); color: var(--kp-muted); }
+.kernel-ui .repository-leave-block { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; }
+.kernel-ui .repository-leave-block .repository-recommended-label { width: 100%; color: var(--kp-amber); }
+.kernel-ui .repository-footer .repository-recommended-action {
+ flex-grow: 1; min-width: 240px; height: 42px; margin-right: 12px;
+ border-width: 1px 1px 1px 3px; border-color: var(--kp-amber);
+ background-color: var(--kp-action); color: var(--kp-amber); -unity-font-style: bold;
+}
+.kernel-ui .repository-footer .repository-recommended-action:hover,
+.kernel-ui .repository-footer .repository-recommended-action:focus { background-color: var(--kp-amber); color: var(--kp-bg); }
+.kernel-ui .repository-footer .repository-save-action { flex-grow: 0; width: 170px; height: 30px; border-color: var(--kp-border); color: var(--kp-muted); }
+.kernel-ui .repository-footer .repository-banked-hint { width: 100%; -unity-text-align: middle-left; }
+.kernel-ui.narrow .repository-package-controls { width: 100%; margin: 0 0 6px; border-right-width: 0; border-bottom-width: 1px; border-bottom-color: var(--kp-border); }
+
+/* Modals are terminal panes anchored inside the shell. */
+.kernel-ui .modal-overlay { align-items: flex-start; justify-content: flex-start; padding: 6% 8%; }
+.kernel-ui .terminal-pane {
+ min-width: 0; height: auto; max-height: 86%; flex-grow: 0;
+ padding: 0 14px 12px; border-width: 1px; border-top-width: 2px;
+ border-color: var(--kp-border); border-top-color: var(--kp-amber); background-color: var(--kp-bg-solid);
+}
+.kernel-ui .terminal-pane-titlebar {
+ min-height: 34px; margin: 0 -14px 10px; padding: 7px 12px;
+ border-bottom-width: 1px; border-bottom-color: var(--kp-border);
+ background-color: var(--kp-panel); color: var(--kp-text);
+}
+.kernel-ui .terminal-pane.dialog-scroll { height: auto; flex-grow: 0; }
+.kernel-ui .gacha-pull-history-dialog.terminal-pane { height: 78%; }
+.kernel-ui .gacha-pull-history-dialog.terminal-pane.is-empty { height: 145px; }
+.kernel-ui .package-equip-dialog.terminal-pane { height: 74%; }
+.kernel-ui .run-history-dialog.terminal-pane { height: 82%; }
+.kernel-ui .run-history-dialog.terminal-pane.is-empty { width: 560px; height: auto; max-height: 220px; }
+.kernel-ui .run-history-entry { padding: 8px; border-bottom-width: 1px; border-bottom-color: var(--kp-border); }
+.kernel-ui .daily-quest-dialog.terminal-pane { width: 760px; height: 82%; max-height: 620px; }
+.kernel-ui .daily-quest-dialog .daily-detail-header.terminal-pane-titlebar { padding-bottom: 7px; }
+.kernel-ui .daily-cron-entry { color: var(--kp-primary-dim); font-size: var(--type-meta); }
+.kernel-ui .daily-exit-status { color: var(--kp-muted); font-size: var(--type-meta); }
+.kernel-ui .daily-quest-complete .daily-exit-status { color: var(--kp-success); }
+.kernel-ui .daily-quest-completion-bonus .terminal-body { white-space: normal; }
+.kernel-ui.narrow .modal-overlay { padding: 4%; }
+.kernel-ui.narrow .terminal-pane,
+.kernel-ui.narrow .daily-quest-dialog.terminal-pane { width: 92%; max-width: 92%; }
+.kernel-ui .modal-overlay.daily-quest-overlay { align-items: center; justify-content: center; }
diff --git a/Assets/Resources/TerminalProgram.uss b/Assets/Resources/TerminalProgram.uss
new file mode 100644
index 0000000..147e974
--- /dev/null
+++ b/Assets/Resources/TerminalProgram.uss
@@ -0,0 +1,305 @@
+/*
+ * Terminal Program UI
+ *
+ * The scene sheets own geometry and the theme owns colors. This final component
+ * layer gives every screen the same program vocabulary: prompt tokens, tmux-like
+ * pane chrome, process rows, command links, and a deliberately different narrow
+ * combat composition.
+ */
+
+/* Syntax roles ------------------------------------------------------------ */
+.kernel-ui .syntax-prompt { color: var(--kp-success); }
+.kernel-ui .syntax-command { color: var(--kp-cyan); -unity-font-style: bold; }
+.kernel-ui .syntax-argument { color: var(--kp-text); }
+.kernel-ui .syntax-option { color: var(--kp-amber); }
+.kernel-ui .syntax-path { color: var(--kp-beneficial); }
+.kernel-ui .syntax-number { color: var(--kp-lang-javascript); }
+.kernel-ui .syntax-comment { color: var(--kp-primary-dim); }
+.kernel-ui .syntax-output { color: var(--kp-muted); }
+.kernel-ui .syntax-warning { color: var(--kp-warning); }
+.kernel-ui .syntax-error { color: var(--kp-danger); }
+
+/* The command line is the stable interaction anchor in combat. */
+.kernel-ui .combat-command-prompt {
+ flex-direction: row;
+ align-items: center;
+ flex-wrap: wrap;
+ flex-grow: 1;
+ min-width: 320px;
+ min-height: 28px;
+ margin-left: 8px;
+ padding: 2px 8px;
+ border-width: 0 0 0 2px;
+ border-left-color: var(--kp-cyan);
+ background-color: var(--kp-bg-deep);
+ white-space: normal;
+}
+
+.kernel-ui .combat-command-prompt > Label { margin-right: 9px; }
+.kernel-ui .combat-command-prompt .syntax-output {
+ flex-grow: 1;
+ min-width: 140px;
+ -unity-text-align: middle-right;
+}
+
+.kernel-ui.combat-awaiting-target .combat-command-prompt { border-left-color: var(--kp-amber); }
+.kernel-ui.combat-awaiting-target .combat-command-prompt .syntax-command,
+.kernel-ui.combat-awaiting-target .combat-command-prompt .syntax-argument { color: var(--kp-amber); }
+.kernel-ui.combat-resolving .combat-command-prompt { border-left-color: var(--kp-lang-haskell); }
+
+/* Process monitor --------------------------------------------------------- */
+.kernel-ui .process-table-header,
+.kernel-ui .process-row-primary {
+ width: 100%;
+ min-width: 0;
+ flex-direction: row;
+ align-items: center;
+}
+
+.kernel-ui .process-table-header {
+ min-height: 28px;
+ padding: 4px 8px;
+ border-width: 0 0 1px;
+ border-bottom-color: var(--kp-border-strong);
+ background-color: var(--kp-panel-track);
+}
+
+.kernel-ui .process-column {
+ flex-shrink: 0;
+ color: var(--kp-primary-dim);
+ font-size: var(--type-meta);
+ -unity-font-style: bold;
+ white-space: nowrap;
+}
+
+.kernel-ui .process-col-pid { width: 6%; min-width: 50px; }
+.kernel-ui .process-col-state { width: 15%; min-width: 100px; }
+.kernel-ui .process-col-name { width: 25%; min-width: 150px; flex-grow: 0; flex-shrink: 1; }
+.kernel-ui .process-col-uptime { width: 16%; min-width: 100px; }
+.kernel-ui .process-col-shield { width: 8%; min-width: 45px; }
+.kernel-ui .process-col-intent { width: 17%; min-width: 110px; }
+.kernel-ui .process-col-result { width: 13%; min-width: 60px; }
+
+.kernel-ui .enemy-row {
+ width: 100%;
+ flex-direction: column;
+ flex-wrap: nowrap;
+ align-items: stretch;
+}
+
+.kernel-ui .enemy-card {
+ width: 100%;
+ min-height: 52px;
+ margin: 0;
+ padding: 0;
+ flex-shrink: 0;
+ border-width: 0 0 1px 3px;
+ border-left-color: transparent;
+ border-bottom-color: var(--kp-border-subtle);
+ background-color: transparent;
+ -unity-text-align: middle-left;
+}
+
+.kernel-ui .enemy-card:hover,
+.kernel-ui .enemy-card:focus {
+ border-left-color: var(--kp-text);
+ border-bottom-color: var(--kp-border-strong);
+ background-color: var(--kp-hover);
+}
+
+.kernel-ui .enemy-card-targeted,
+.kernel-ui .enemy-targetable:focus {
+ border-left-color: var(--kp-amber);
+ background-color: var(--kp-panel-targeted);
+}
+
+.kernel-ui .enemy-targetable { border-top-width: 0; border-left-color: var(--kp-amber); }
+.kernel-ui .process-row-primary { min-height: 50px; padding: 5px 8px; }
+.kernel-ui .process-pid { color: var(--kp-primary-dim); font-size: var(--type-meta); }
+.kernel-ui .process-state { color: var(--kp-success); font-size: var(--type-meta); margin: 0; min-height: 0; }
+.kernel-ui .enemy-name { color: var(--kp-text); font-size: var(--type-body); min-height: 0; margin: 0; white-space: normal; }
+
+.kernel-ui .process-col-uptime.meter-block { margin: 0; padding-right: 16px; }
+.kernel-ui .process-col-uptime .meter-head { margin-bottom: 2px; }
+.kernel-ui .process-col-uptime .metric-label { display: none; }
+.kernel-ui .process-col-uptime .metric-value { font-size: var(--type-meta); }
+.kernel-ui .process-col-uptime .meter-track { height: 5px; border-width: 0; }
+.kernel-ui .process-col-shield { color: var(--kp-cyan); font-size: var(--type-meta); min-height: 0; }
+
+.kernel-ui .process-col-intent.process-intent-slot { min-height: 0; }
+.kernel-ui .process-col-intent .intent-panel {
+ min-height: 0;
+ margin: 0;
+ padding: 0;
+ border-width: 0;
+ background-color: transparent;
+}
+.kernel-ui .process-col-intent .intent-heading { justify-content: flex-start; }
+.kernel-ui .process-col-intent .intent-label { display: none; }
+.kernel-ui .process-col-intent .intent-value { font-size: var(--type-section); }
+.kernel-ui .process-col-intent .intent-description { font-size: var(--type-meta); }
+
+.kernel-ui .process-result {
+ min-height: 20px;
+ color: var(--kp-muted);
+ font-size: var(--type-meta);
+ -unity-font-style: bold;
+ white-space: normal;
+}
+.kernel-ui .process-result-damage,
+.kernel-ui .process-result-kill { color: var(--kp-danger); }
+.kernel-ui .process-result-shield { color: var(--kp-cyan); }
+.kernel-ui .process-result-heal { color: var(--kp-success); }
+.kernel-ui .process-result-status { color: var(--kp-warning); }
+
+.kernel-ui .process-row-detail {
+ display: none;
+ width: 100%;
+ min-width: 0;
+ flex-direction: row;
+ flex-wrap: wrap;
+ padding: 0 8px 7px 270px;
+ color: var(--kp-muted);
+ font-size: var(--type-meta);
+}
+.kernel-ui .enemy-card:hover .process-row-detail,
+.kernel-ui .enemy-card:focus .process-row-detail,
+.kernel-ui .enemy-card-targeted .process-row-detail { display: flex; }
+.kernel-ui .enemy-card:hover .process-row-detail-empty,
+.kernel-ui .enemy-card:focus .process-row-detail-empty,
+.kernel-ui .enemy-card-targeted .process-row-detail-empty { display: none; }
+.kernel-ui .process-row-detail > * { margin-right: 12px; }
+
+/* Progressive disclosure keeps the default playfield focused on decisions. */
+.kernel-ui .scheduler-idle .track-zone { display: none; }
+.kernel-ui .scheduler-idle .panel-header { margin-bottom: 0; }
+.kernel-ui .hand-card .software-line-number { display: none; }
+.kernel-ui .hand-card .software-live-preview,
+.kernel-ui .hand-card .software-live-crit { display: none; }
+.kernel-ui .hand-card:focus .software-live-preview,
+.kernel-ui .hand-card:focus .software-live-crit,
+.kernel-ui .hand-card-selected .software-live-preview,
+.kernel-ui .hand-card-selected .software-live-crit { display: flex; }
+
+/* Repository manifests show the decisive first sentence until details are requested. */
+.kernel-ui .repository-card-collapsible .software-conditions { display: none; }
+.kernel-ui .repository-card-collapsible.repository-card-expanded .software-conditions { display: flex; }
+.kernel-ui .repository-rules-toggle {
+ width: 100%;
+ min-height: 28px;
+ margin: 5px 0 0;
+ padding: 3px 7px;
+ border-width: 0 0 0 2px;
+ border-left-color: var(--kp-border-strong);
+ background-color: transparent;
+ color: var(--kp-muted);
+ font-size: var(--type-meta);
+ -unity-text-align: middle-left;
+}
+.kernel-ui .repository-rules-toggle:hover,
+.kernel-ui .repository-rules-toggle:focus,
+.kernel-ui .repository-rules-toggle.expanded { color: var(--kp-cyan); border-left-color: var(--kp-cyan); }
+
+/* Narrow combat is a pane switcher, not a compressed desktop. */
+.kernel-ui .combat-pane-tabs { display: none; }
+.kernel-ui.narrow .combat-pane-tabs {
+ display: flex;
+ flex-direction: row;
+ flex-shrink: 0;
+ min-height: 34px;
+ border-bottom-width: 1px;
+ border-bottom-color: var(--kp-border);
+ background-color: var(--kp-panel-track);
+}
+.kernel-ui .combat-pane-tab {
+ flex-grow: 1;
+ flex-basis: 0;
+ min-width: 0;
+ min-height: 34px;
+ margin: 0;
+ padding: 5px 3px;
+ border-width: 0 0 2px;
+ border-bottom-color: transparent;
+ background-color: transparent;
+ color: var(--kp-muted);
+ font-size: var(--type-meta);
+ -unity-text-align: middle-center;
+}
+.kernel-ui .combat-pane-tab.selected {
+ color: var(--kp-amber);
+ border-bottom-color: var(--kp-amber);
+ background-color: var(--kp-hover);
+}
+
+.kernel-ui.narrow.combat-pane-filtered.combat-pane-processes .scheduler,
+.kernel-ui.narrow.combat-pane-filtered.combat-pane-processes .bottom-layout,
+.kernel-ui.narrow.combat-pane-filtered.combat-pane-processes .combat-journal,
+.kernel-ui.narrow.combat-pane-filtered.combat-pane-scheduler .combat-workspace,
+.kernel-ui.narrow.combat-pane-filtered.combat-pane-scheduler .bottom-layout,
+.kernel-ui.narrow.combat-pane-filtered.combat-pane-scheduler .combat-journal,
+.kernel-ui.narrow.combat-pane-filtered.combat-pane-hand .combat-workspace,
+.kernel-ui.narrow.combat-pane-filtered.combat-pane-hand .scheduler,
+.kernel-ui.narrow.combat-pane-filtered.combat-pane-hand .combat-journal,
+.kernel-ui.narrow.combat-pane-filtered.combat-pane-log .combat-workspace,
+.kernel-ui.narrow.combat-pane-filtered.combat-pane-log .scheduler,
+.kernel-ui.narrow.combat-pane-filtered.combat-pane-log .bottom-layout { display: none; }
+
+.kernel-ui.narrow.combat-pane-scheduler .scheduler,
+.kernel-ui.narrow.combat-pane-log .combat-journal,
+.kernel-ui.narrow.combat-pane-hand .bottom-layout { flex-grow: 1; min-height: 0; }
+.kernel-ui.narrow.combat-pane-log .combat-journal { flex-direction: column; }
+.kernel-ui.narrow.combat-pane-log .journal-scroll { flex-grow: 1; max-height: none; }
+.kernel-ui.narrow.combat-pane-hand .bottom-layout { height: auto; }
+.kernel-ui.narrow.combat-pane-hand .hand-panel { height: auto; flex-grow: 1; }
+
+.kernel-ui.narrow .combat-command-prompt {
+ width: 100%;
+ min-width: 0;
+ margin: 4px 0 0;
+ padding: 2px 6px;
+}
+.kernel-ui.narrow .combat-command-prompt .syntax-output {
+ display: none;
+ min-width: 0;
+ -unity-text-align: middle-left;
+}
+.kernel-ui.short-screen .combat-command-prompt { display: none; }
+.kernel-ui.narrow .process-table-header .process-col-uptime,
+.kernel-ui.narrow .process-table-header .process-col-shield,
+.kernel-ui.narrow .process-table-header .process-col-intent,
+.kernel-ui.narrow .process-table-header .process-col-result { display: none; }
+.kernel-ui.narrow .process-col-pid { width: 50px; min-width: 50px; }
+.kernel-ui.narrow .process-col-state { width: 84px; min-width: 84px; }
+.kernel-ui.narrow .process-col-name { min-width: 0; }
+.kernel-ui.narrow .process-row-primary { flex-wrap: wrap; }
+.kernel-ui.narrow .process-row-primary .process-col-uptime {
+ width: 48%;
+ min-width: 120px;
+ margin: 5px 2% 0 134px;
+}
+.kernel-ui.narrow .process-row-primary .process-col-shield { width: 22%; min-width: 70px; margin-top: 5px; }
+.kernel-ui.narrow .process-row-primary .process-col-intent { width: 28%; min-width: 82px; margin-top: 5px; }
+.kernel-ui.narrow .process-row-primary .process-col-result { width: 100%; min-width: 0; padding-left: 134px; }
+.kernel-ui.narrow .process-row-detail { padding-left: 8px; }
+
+/* Terminal result screens ------------------------------------------------- */
+.kernel-ui .death-content {
+ border-width: 1px 0 0 3px;
+ border-left-color: var(--kp-danger);
+ border-top-color: var(--kp-border);
+ background-color: var(--kp-bg-solid);
+}
+.kernel-ui .run-victory .death-content { border-left-color: var(--kp-success); }
+.kernel-ui .death-eyebrow { color: var(--kp-cyan); }
+.kernel-ui .death-exit-code { color: var(--kp-warning); margin-bottom: 8px; white-space: normal; }
+.kernel-ui .run-victory .death-exit-code { color: var(--kp-success); }
+.kernel-ui .death-return-action { -unity-text-align: middle-left; }
+.kernel-ui.short-screen .death-content { padding: 12px; }
+.kernel-ui.short-screen .death-report-header { margin-bottom: 7px; }
+.kernel-ui.short-screen .death-content .overlay-title { font-size: 30px; margin-bottom: 4px; }
+.kernel-ui.short-screen .death-session { margin-bottom: 8px; }
+.kernel-ui.short-screen .death-wave-stats { margin-bottom: 8px; padding-top: 7px; padding-bottom: 7px; }
+.kernel-ui.short-screen .death-rewards { padding-bottom: 6px; }
+.kernel-ui.short-screen .death-next-run { margin-top: 5px; }
+.kernel-ui.short-screen .death-return-action { margin-top: 8px; min-height: 36px; }
+
diff --git a/Assets/Scripts/Meta/DailyQuests.cs b/Assets/Scripts/Meta/DailyQuests.cs
index 94d9184..0a1c9aa 100644
--- a/Assets/Scripts/Meta/DailyQuests.cs
+++ b/Assets/Scripts/Meta/DailyQuests.cs
@@ -26,13 +26,24 @@ namespace KernelPanic.Meta
/// One persistent, rolling 24-hour window. All time comes from the caller for deterministic tests.
public static class DailyQuests
{
- public const int Count = 3;
+ public const int Count = 5;
+ public const int CompletionBonusBandwidth = 250;
+ public const int CompletionBonusEntropy = 125;
+ public const int CompletionBonusCommits = 2;
public const long PeriodTicks = TimeSpan.TicksPerDay;
public static readonly IReadOnlyList Pool = Array.AsReadOnly((DailyQuestKind[])Enum.GetValues(typeof(DailyQuestKind)));
- private static readonly DailyQuestKind[] LegacySelection = { DailyQuestKind.Waves, DailyQuestKind.Cards, DailyQuestKind.Damage };
+ private const int CompletionBonusBit = 1 << 8;
+ private static readonly DailyQuestKind[] FallbackSelection =
+ {
+ DailyQuestKind.Waves,
+ DailyQuestKind.Cards,
+ DailyQuestKind.Damage,
+ DailyQuestKind.BlockDamage,
+ DailyQuestKind.NativeCards
+ };
public static IReadOnlyList Active(DailyQuestState state) =>
- ValidSelection(state.selectedQuests) ? state.selectedQuests : LegacySelection;
+ ValidSelection(state.selectedQuests) ? state.selectedQuests : FallbackSelection;
public static bool IsActive(DailyQuestState state, DailyQuestKind kind)
{
@@ -51,6 +62,28 @@ namespace KernelPanic.Meta
return true;
}
+ private static bool EnsureFiveQuestSelection(DailyQuestState state)
+ {
+ if (ValidSelection(state.selectedQuests)) return false;
+ var expanded = new List(Count);
+ if (state.selectedQuests != null)
+ {
+ foreach (var kind in state.selectedQuests)
+ {
+ if (!Enum.IsDefined(typeof(DailyQuestKind), kind) || expanded.Contains(kind)) continue;
+ expanded.Add(kind);
+ if (expanded.Count == Count) break;
+ }
+ }
+ foreach (var kind in Pool)
+ {
+ if (!expanded.Contains(kind)) expanded.Add(kind);
+ if (expanded.Count == Count) break;
+ }
+ state.selectedQuests = expanded.ToArray();
+ return true;
+ }
+
private static void PickQuests(DailyQuestState state)
{
if (state.selectionSeed == 0)
@@ -101,6 +134,20 @@ namespace KernelPanic.Meta
_ => throw new ArgumentOutOfRangeException(nameof(kind))
};
+ // Commits are earned by objectives that represent sustained play or a run milestone.
+ public static int CommitReward(DailyQuestKind kind) => kind switch
+ {
+ DailyQuestKind.Waves => 1,
+ DailyQuestKind.ShieldDamage => 1,
+ DailyQuestKind.SurviveRounds => 1,
+ DailyQuestKind.WaveFive => 2,
+ DailyQuestKind.Cards => 0,
+ DailyQuestKind.NativeCards => 0,
+ DailyQuestKind.Damage => 0,
+ DailyQuestKind.BlockDamage => 0,
+ _ => throw new ArgumentOutOfRangeException(nameof(kind))
+ };
+
public static string Description(DailyQuestKind kind) => kind switch
{
DailyQuestKind.Waves => "Clear 3 waves",
@@ -130,19 +177,25 @@ namespace KernelPanic.Meta
public static bool Claimed(DailyQuestState state, DailyQuestKind kind) =>
(state.claimedMask & (1 << (int)kind)) != 0;
+ public static bool CompletionBonusClaimed(DailyQuestState state) =>
+ (state.claimedMask & CompletionBonusBit) != 0;
+
+ public static bool AllClaimed(DailyQuestState state)
+ {
+ foreach (var kind in Active(state)) if (!Claimed(state, kind)) return false;
+ return true;
+ }
+
public static bool Refresh(DailyQuestState state, DateTime utcNow)
{
long now = utcNow.ToUniversalTime().Ticks;
if (state.refreshAtUtcTicks > now && state.refreshAtUtcTicks <= DateTime.MaxValue.Ticks)
{
- if (ValidSelection(state.selectedQuests)) return false;
- // Schema 7 had three fixed quests. Preserve that day's progress and rewards.
- state.selectedQuests = (DailyQuestKind[])LegacySelection.Clone();
- return true;
+ // Expand older three-task periods in place so their progress and claims survive migration.
+ return EnsureFiveQuestSelection(state);
}
// Advance by whole periods, retaining the original reset time even after days away.
- if (state.refreshAtUtcTicks > 0 && !ValidSelection(state.selectedQuests))
- state.selectedQuests = (DailyQuestKind[])LegacySelection.Clone();
+ if (state.refreshAtUtcTicks > 0) EnsureFiveQuestSelection(state);
state.refreshAtUtcTicks = state.refreshAtUtcTicks > 0 && state.refreshAtUtcTicks <= now
? state.refreshAtUtcTicks + ((now - state.refreshAtUtcTicks) / PeriodTicks + 1) * PeriodTicks
: now + PeriodTicks;
@@ -181,11 +234,22 @@ namespace KernelPanic.Meta
if (!Enum.IsDefined(typeof(DailyQuestKind), kind) || !IsActive(data.dailyQuests, kind) || data.dailyQuests.refreshAtUtcTicks != expectedRefresh
|| Claimed(data.dailyQuests, kind) || Progress(data.dailyQuests, kind) < Target(kind)) return false;
var reward = Reward(kind);
- if (data.bandwidthBalance > int.MaxValue - reward.Bandwidth
- || data.entropyBalance > int.MaxValue - reward.Entropy) return false;
- data.dailyQuests.claimedMask |= 1 << (int)kind;
- data.bandwidthBalance += reward.Bandwidth;
- data.entropyBalance += reward.Entropy;
+ int commits = CommitReward(kind);
+ int questBit = 1 << (int)kind;
+ int nextMask = data.dailyQuests.claimedMask | questBit;
+ bool awardsCompletionBonus = !CompletionBonusClaimed(data.dailyQuests);
+ foreach (var activeKind in Active(data.dailyQuests))
+ awardsCompletionBonus &= (nextMask & (1 << (int)activeKind)) != 0;
+ int bandwidth = reward.Bandwidth + (awardsCompletionBonus ? CompletionBonusBandwidth : 0);
+ int entropy = reward.Entropy + (awardsCompletionBonus ? CompletionBonusEntropy : 0);
+ int totalCommits = commits + (awardsCompletionBonus ? CompletionBonusCommits : 0);
+ if (data.bandwidthBalance > int.MaxValue - bandwidth
+ || data.entropyBalance > int.MaxValue - entropy
+ || data.commitsBalance > int.MaxValue - totalCommits) return false;
+ data.dailyQuests.claimedMask = nextMask | (awardsCompletionBonus ? CompletionBonusBit : 0);
+ data.bandwidthBalance += bandwidth;
+ data.entropyBalance += entropy;
+ data.commitsBalance += totalCommits;
return true;
}
diff --git a/Assets/Scripts/Meta/GachaBannerState.cs b/Assets/Scripts/Meta/GachaBannerState.cs
index f3ca6cb..bcd8281 100644
--- a/Assets/Scripts/Meta/GachaBannerState.cs
+++ b/Assets/Scripts/Meta/GachaBannerState.cs
@@ -32,4 +32,32 @@ namespace KernelPanic.Meta
guaranteedDistroIds ??= new List();
}
}
+
+ /// Persistent, bounded receipt rendered by git log --pulls.
+ [Serializable]
+ public sealed class GachaPullHistoryEntry
+ {
+ public string pulledUtc;
+ public string bannerId;
+ public int currencySpent;
+ public int entropySpent;
+ public List rewards = new();
+
+ public void EnsureLists()
+ {
+ rewards ??= new List();
+ }
+ }
+
+ [Serializable]
+ public sealed class GachaPullHistoryRewardEntry
+ {
+ public int stars;
+ public string displayName;
+ public GachaRewardType rewardType;
+ public PullOutcomeKind outcomeKind;
+ public int duplicateValue;
+ public bool guaranteed;
+ public bool pityTriggered;
+ }
}
diff --git a/Assets/Scripts/Meta/GachaService.cs b/Assets/Scripts/Meta/GachaService.cs
index 3a854aa..f31e798 100644
--- a/Assets/Scripts/Meta/GachaService.cs
+++ b/Assets/Scripts/Meta/GachaService.cs
@@ -17,7 +17,11 @@ namespace KernelPanic.Meta
public const int BeginnerTenPullCost = 8;
public const int StandardSinglePullCost = 1;
public const int StandardTenPullCost = 10;
+ public const int LimitedSinglePullCost = 1;
+ public const int LimitedTenPullCost = 10;
public const int StandardFiveStarSelectorInterval = 200;
+ public const int MaxPullHistoryEntries = 100;
+ public const string LimitedFeaturedFiveStarDistroId = "nixos";
public const int FourStarHardPity = 10;
public const int FiveStarSoftPityStart = 66;
public const int FiveStarHardPity = 80;
@@ -32,10 +36,12 @@ namespace KernelPanic.Meta
private const double LimitedStandardFiveStarChance = 1d / 3d;
private readonly List _bannerPool = new();
+ private readonly List _pullHistory = new();
private readonly Dictionary _currencyBalances = new();
private readonly Random _random;
private GachaBannerState _beginnerState = new(BeginnerBannerId);
private GachaBannerState _standardState = new(StandardBannerId);
+ private GachaBannerState _limitedState = new(LimitedBannerId);
public GachaService()
: this(new Random())
@@ -54,6 +60,8 @@ namespace KernelPanic.Meta
public IReadOnlyList BannerPool => _bannerPool;
public GachaBannerState BeginnerState => _beginnerState;
public GachaBannerState StandardState => _standardState;
+ public GachaBannerState LimitedState => _limitedState;
+ public IReadOnlyList PullHistory => _pullHistory;
public bool IsBeginnerBannerAvailable => !_beginnerState.exhausted && _beginnerState.totalPulls < BeginnerMaxPulls && _bannerPool.Count > 0;
public int PendingStandardFiveStarSelectors => Math.Max(0, _standardState.totalPulls / StandardFiveStarSelectorInterval - _standardState.fiveStarSelectorsClaimed);
@@ -86,6 +94,19 @@ namespace KernelPanic.Meta
_standardState.fiveStarPityCounter = Math.Max(0, _standardState.fiveStarPityCounter);
_standardState.fiveStarSelectorsClaimed = Math.Max(0, _standardState.fiveStarSelectorsClaimed);
+ _limitedState = data.limitedBannerState ?? new GachaBannerState(LimitedBannerId);
+ _limitedState.bannerId = LimitedBannerId;
+ _limitedState.EnsureLists();
+ _limitedState.pityCounter = Math.Max(0, _limitedState.pityCounter);
+ _limitedState.fiveStarPityCounter = Math.Max(0, _limitedState.fiveStarPityCounter);
+
+ _pullHistory.Clear();
+ for (int i = 0; i < data.gachaPullHistory.Count && i < MaxPullHistoryEntries; i++)
+ {
+ GachaPullHistoryEntry entry = CloneHistoryEntry(data.gachaPullHistory[i]);
+ if (entry != null) _pullHistory.Add(entry);
+ }
+
Changed?.Invoke();
}
@@ -101,6 +122,10 @@ namespace KernelPanic.Meta
data.commitsBalance = GetCurrencyBalance(GachaCurrencyType.StandardPull);
data.beginnerBannerState = CloneState(_beginnerState);
data.standardBannerState = CloneState(_standardState);
+ data.limitedBannerState = CloneState(_limitedState);
+ data.gachaPullHistory.Clear();
+ for (int i = 0; i < _pullHistory.Count && i < MaxPullHistoryEntries; i++)
+ data.gachaPullHistory.Add(CloneHistoryEntry(_pullHistory[i]));
}
public int GetCurrencyBalance(GachaCurrencyType currencyType)
@@ -235,7 +260,7 @@ namespace KernelPanic.Meta
return false;
}
}
- else if (bannerId != StandardBannerId)
+ else if (bannerId != StandardBannerId && bannerId != LimitedBannerId)
{
failureReason = $"banner '{bannerId}' not implemented yet";
return false;
@@ -271,6 +296,11 @@ namespace KernelPanic.Meta
return pullCount == 10 ? StandardTenPullCost : StandardSinglePullCost;
}
+ if (bannerId == LimitedBannerId)
+ {
+ return pullCount == 10 ? LimitedTenPullCost : LimitedSinglePullCost;
+ }
+
return pullCount;
}
@@ -370,6 +400,64 @@ namespace KernelPanic.Meta
return new GachaPullResult(true, StandardBannerId, GachaCurrencyType.StandardPull, commitSpend, entropySpent, rewards, null);
}
+ public GachaPullResult PerformLimitedPull(int pullCount, EntropyWallet wallet, PullPaymentSource source)
+ {
+ if (!CanAffordPull(pullCount, wallet, source, LimitedBannerId, out string failureReason))
+ {
+ return GachaPullResult.Failed(LimitedBannerId, failureReason);
+ }
+
+ if (!PayForPull(pullCount, wallet, source, LimitedBannerId, out int commitSpend, out int entropySpent, out failureReason))
+ {
+ return GachaPullResult.Failed(LimitedBannerId, failureReason);
+ }
+
+ List rewards = new();
+ for (int i = 0; i < pullCount; i++)
+ {
+ _limitedState.totalPulls++;
+ rewards.Add(RollLimitedReward(_limitedState));
+ }
+
+ Changed?.Invoke();
+ return new GachaPullResult(true, LimitedBannerId, GachaCurrencyType.StandardPull, commitSpend, entropySpent, rewards, null);
+ }
+
+ public void RecordPullHistory(GachaPullResult result, IReadOnlyList completedRewards, DateTime utcNow)
+ {
+ if (!result.Success || completedRewards == null || completedRewards.Count == 0)
+ {
+ return;
+ }
+
+ GachaPullHistoryEntry entry = new()
+ {
+ pulledUtc = utcNow.ToUniversalTime().ToString("O"),
+ bannerId = result.BannerId,
+ currencySpent = Math.Max(0, result.CurrencySpent),
+ entropySpent = Math.Max(0, result.EntropySpent)
+ };
+ for (int i = 0; i < completedRewards.Count; i++)
+ {
+ CompletedGachaReward reward = completedRewards[i];
+ entry.rewards.Add(new GachaPullHistoryRewardEntry
+ {
+ stars = reward.Stars,
+ displayName = reward.DisplayName,
+ rewardType = reward.RewardType,
+ outcomeKind = reward.OutcomeKind,
+ duplicateValue = reward.MergesAwarded,
+ guaranteed = reward.Guaranteed,
+ pityTriggered = reward.PityTriggered
+ });
+ }
+
+ _pullHistory.Insert(0, entry);
+ if (_pullHistory.Count > MaxPullHistoryEntries)
+ _pullHistory.RemoveRange(MaxPullHistoryEntries, _pullHistory.Count - MaxPullHistoryEntries);
+ Changed?.Invoke();
+ }
+
public int GetStandardFiveStarSelectorProgress()
{
return _standardState.totalPulls % StandardFiveStarSelectorInterval;
@@ -526,6 +614,50 @@ namespace KernelPanic.Meta
return GachaReward.Package(4, "4-star package", pityTriggered, false);
}
+ private GachaReward RollLimitedReward(GachaBannerState state)
+ {
+ if (TryRollFiveStar(state, out bool fiveStarPityTriggered))
+ {
+ if (!ResolveFeaturedTierIsDistro())
+ {
+ return GachaReward.Package(5, "5-star package", fiveStarPityTriggered, false);
+ }
+
+ bool featuredWasGuaranteed = state.featuredFiveStarGuaranteed;
+ bool useStandardPool = ResolveLimitedFiveStarUsesStandardPool(state);
+ DistroDefinition distro = useStandardPool
+ ? FindRandomBannerPoolDistroByStarsExcept(5, LimitedFeaturedFiveStarDistroId)
+ : FindBannerPoolDistroByStars(LimitedFeaturedFiveStarDistroId, 5) ?? FindRandomBannerPoolDistroByStars(5);
+ if (distro == null)
+ {
+ return GachaReward.Package(5, "5-star package", fiveStarPityTriggered, false);
+ }
+
+ return GachaReward.DistroReward(distro, 5, fiveStarPityTriggered, featuredWasGuaranteed,
+ featuredWasGuaranteed ? "feature-branch guarantee" : null);
+ }
+
+ bool pityTriggered = state.pityCounter >= FourStarHardPity - 1;
+ bool hitFourStar = pityTriggered || _random.NextDouble() < FourStarBaseChance;
+ if (!hitFourStar)
+ {
+ state.pityCounter++;
+ return GachaReward.Package(3, "3-star package", false, false);
+ }
+
+ state.pityCounter = 0;
+ if (ResolveFeaturedTierIsDistro())
+ {
+ DistroDefinition distro = FindLimitedFourStarDistro();
+ if (distro != null)
+ {
+ return GachaReward.DistroReward(distro, 4, pityTriggered, false);
+ }
+ }
+
+ return GachaReward.Package(4, "4-star package", pityTriggered, false);
+ }
+
private bool TryRollFiveStar(GachaBannerState state, out bool pityTriggered)
{
state ??= _beginnerState;
@@ -668,6 +800,35 @@ namespace KernelPanic.Meta
return eligible.Count == 0 ? null : eligible[_random.Next(eligible.Count)];
}
+ private DistroDefinition FindRandomBannerPoolDistroByStarsExcept(int stars, string excludedId)
+ {
+ List eligible = new();
+ for (int i = 0; i < _bannerPool.Count; i++)
+ {
+ DistroDefinition distro = _bannerPool[i];
+ if (distro != null && GetDistroStars(distro) == stars
+ && !string.Equals(distro.Id, excludedId, StringComparison.OrdinalIgnoreCase))
+ {
+ eligible.Add(distro);
+ }
+ }
+
+ return eligible.Count == 0 ? FindRandomBannerPoolDistroByStars(stars) : eligible[_random.Next(eligible.Count)];
+ }
+
+ private DistroDefinition FindLimitedFourStarDistro()
+ {
+ string[] featured = { "fedora", "ubuntu" };
+ List eligible = new();
+ for (int i = 0; i < featured.Length; i++)
+ {
+ DistroDefinition distro = FindBannerPoolDistroByStars(featured[i], 4);
+ if (distro != null) eligible.Add(distro);
+ }
+
+ return eligible.Count == 0 ? FindRandomBannerPoolDistroByStars(4) : eligible[_random.Next(eligible.Count)];
+ }
+
private static int GetDistroStars(DistroDefinition distro)
{
return DistroRarity.Stars(distro);
@@ -694,6 +855,35 @@ namespace KernelPanic.Meta
clone.guaranteedDistroIds.AddRange(state.guaranteedDistroIds);
return clone;
}
+
+ private static GachaPullHistoryEntry CloneHistoryEntry(GachaPullHistoryEntry source)
+ {
+ if (source == null || string.IsNullOrWhiteSpace(source.bannerId)) return null;
+ source.EnsureLists();
+ GachaPullHistoryEntry clone = new()
+ {
+ pulledUtc = source.pulledUtc,
+ bannerId = source.bannerId,
+ currencySpent = Math.Max(0, source.currencySpent),
+ entropySpent = Math.Max(0, source.entropySpent)
+ };
+ for (int i = 0; i < source.rewards.Count; i++)
+ {
+ GachaPullHistoryRewardEntry reward = source.rewards[i];
+ if (reward == null) continue;
+ clone.rewards.Add(new GachaPullHistoryRewardEntry
+ {
+ stars = Math.Max(3, reward.stars),
+ displayName = reward.displayName,
+ rewardType = reward.rewardType,
+ outcomeKind = reward.outcomeKind,
+ duplicateValue = Math.Max(0, reward.duplicateValue),
+ guaranteed = reward.guaranteed,
+ pityTriggered = reward.pityTriggered
+ });
+ }
+ return clone;
+ }
}
///
diff --git a/Assets/Scripts/Meta/SaveService.cs b/Assets/Scripts/Meta/SaveService.cs
index a48f0d1..8db2fc0 100644
--- a/Assets/Scripts/Meta/SaveService.cs
+++ b/Assets/Scripts/Meta/SaveService.cs
@@ -16,7 +16,7 @@ namespace KernelPanic.Meta
public sealed class SaveService
{
private const string SaveFileName = "kernel-panic-save.json";
- public const int CurrentSchemaVersion = 10;
+ public const int CurrentSchemaVersion = 11;
private static readonly object FileLock = new();
public string SavePath { get; }
@@ -300,6 +300,8 @@ namespace KernelPanic.Meta
public List bannerPoolIds = new();
public GachaBannerState beginnerBannerState = new(GachaService.BeginnerBannerId);
public GachaBannerState standardBannerState = new(GachaService.StandardBannerId);
+ public GachaBannerState limitedBannerState = new(GachaService.LimitedBannerId);
+ public List gachaPullHistory = new();
public LastRunLoadoutSaveEntry lastRunLoadout = new();
public List runBuildDrafts = new();
public string lastSetupDistroId;
@@ -344,6 +346,24 @@ namespace KernelPanic.Meta
standardBannerState ??= new GachaBannerState(GachaService.StandardBannerId);
standardBannerState.bannerId = GachaService.StandardBannerId;
standardBannerState.EnsureLists();
+ limitedBannerState ??= new GachaBannerState(GachaService.LimitedBannerId);
+ limitedBannerState.bannerId = GachaService.LimitedBannerId;
+ limitedBannerState.EnsureLists();
+ gachaPullHistory ??= new List();
+ for (int i = gachaPullHistory.Count - 1; i >= 0; i--)
+ {
+ GachaPullHistoryEntry entry = gachaPullHistory[i];
+ if (entry == null || string.IsNullOrWhiteSpace(entry.bannerId))
+ {
+ gachaPullHistory.RemoveAt(i);
+ continue;
+ }
+
+ entry.EnsureLists();
+ }
+ if (gachaPullHistory.Count > GachaService.MaxPullHistoryEntries)
+ gachaPullHistory.RemoveRange(GachaService.MaxPullHistoryEntries,
+ gachaPullHistory.Count - GachaService.MaxPullHistoryEntries);
lastRunLoadout ??= new LastRunLoadoutSaveEntry();
lastRunLoadout.EnsureLists();
runBuildDrafts ??= new List();
diff --git a/Assets/Scripts/Run/PlayerSmokeRunner.cs b/Assets/Scripts/Run/PlayerSmokeRunner.cs
index 666fbbc..fd07dff 100644
--- a/Assets/Scripts/Run/PlayerSmokeRunner.cs
+++ b/Assets/Scripts/Run/PlayerSmokeRunner.cs
@@ -216,14 +216,9 @@ namespace KernelPanic.Run
string originalBuild = BuildSignature(combat.RunConfig);
var view = FindFirstObjectByType();
var previewRoot = view.GetComponent().rootVisualElement;
- var executionPreview = previewRoot.Q