Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/views/break_escape/games/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<link rel="stylesheet" href="/break_escape/css/log-filter-minigame.css">
<link rel="stylesheet" href="/break_escape/css/drug-library-integrity-minigame.css">
<link rel="stylesheet" href="/break_escape/css/warranty-checklist-minigame.css">
<link rel="stylesheet" href="/break_escape/css/shredded-document-minigame.css">
<link rel="stylesheet" href="/break_escape/css/text-file-minigame.css">
<link rel="stylesheet" href="/break_escape/css/vpn-log-viewer-minigame.css">
<link rel="stylesheet" href="/break_escape/css/npc-barks.css">
Expand Down
223 changes: 223 additions & 0 deletions public/break_escape/css/shredded-document-minigame.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
/* ============================================================
Shredded Document Reconstruction Minigame (MG-B)
============================================================ */

.sdm-container {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}

.sdm-game-container {
display: flex;
flex-direction: column;
flex: 1;
overflow: hidden;
margin: 0 !important;
}

.sdm-container .minigame-close-button {
top: 0;
right: 0;
}

/* ── Outer panel ─────────────────────────────────────────── */

.sdm-panel {
display: flex;
flex-direction: column;
height: 100%;
background: #1a1a2e;
font-family: 'Press Start 2P', monospace;
}

/* ── Instruction bar ─────────────────────────────────────── */

.sdm-instruction {
padding: 8px 14px;
font-size: 7px;
color: #8a9bb5;
border-bottom: 2px solid #2a3a5a;
line-height: 1.6;
flex-shrink: 0;
}

/* ── Scrollable strip area ───────────────────────────────── */

.sdm-scroll {
flex: 1;
overflow-y: auto;
padding: 14px 20px;
}

/* ── Document title ──────────────────────────────────────── */

.sdm-doc-title {
font-size: 7px;
color: #4a6090;
letter-spacing: 1px;
text-align: center;
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 1px solid #2a3a5a;
}

/* ── Strip list ──────────────────────────────────────────── */

.sdm-strips-area {
display: flex;
flex-direction: column;
gap: 8px;
max-width: 720px;
margin: 0 auto;
padding: 0 8px;
}

/* ── Individual strip tile ───────────────────────────────── */

.sdm-strip {
position: relative;
display: flex;
align-items: center;
gap: 8px;
padding: 7px 10px;
background: #f5f0e8;
border-top: 1px dashed #b0a090;
border-bottom: 1px dashed #b0a090;
border-left: 3px solid #8a7a6a;
border-right: 3px solid #8a7a6a;
cursor: grab;
user-select: none;
overflow: hidden;
transform: rotate(var(--tilt, 0deg));
box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.22);
transition: opacity 0.1s;
min-height: 34px;
}

.sdm-strip:active {
cursor: grabbing;
}

/* Drag states */

.sdm-strip-dragging {
opacity: 0.45;
border-color: #6a82aa !important;
}

.sdm-insert-before::before,
.sdm-insert-after::after {
content: '';
position: absolute;
left: 0;
right: 0;
height: 3px;
background: #4a90d9;
border-radius: 2px;
z-index: 2;
}

.sdm-insert-before::before {
top: -6px;
}

.sdm-insert-after::after {
bottom: -6px;
}

/* Rotated strip — rotate the content wrapper, flip button stays upright */

.sdm-strip-content {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
min-width: 0;
}

.sdm-strip-rotated .sdm-strip-content {
transform: rotate(180deg);
}

/* Locked (completed) strip */

.sdm-strip-locked {
cursor: default;
border-color: #6a9a6a;
background: #f0f5f0;
}

/* ── Strip contents ──────────────────────────────────────── */

.sdm-drag-handle {
color: #b0a090;
font-size: 14px;
flex-shrink: 0;
line-height: 1;
}

.sdm-strip-text {
font-family: 'VT323', monospace;
font-size: 17px;
color: #1a1008;
line-height: 1.3;
flex: 1;
}

.sdm-strip-locked .sdm-strip-text {
color: #2a3a1a;
}

/* ── Flip button ─────────────────────────────────────────── */

.sdm-flip-btn {
font-family: 'Press Start 2P', monospace;
font-size: 9px;
background: #e8e0d0;
color: #5a4a3a;
border: 2px solid #b0a090;
padding: 3px 6px;
cursor: pointer;
flex-shrink: 0;
line-height: 1;
}

.sdm-flip-btn:hover {
background: #d8cfc0;
border-color: #8a7a6a;
}

/* ── Completed state ─────────────────────────────────────── */

.sdm-completed-banner {
padding: 10px 16px;
background: #062010;
border-bottom: 2px solid #00c853;
color: #00c853;
font-size: 7px;
letter-spacing: 1px;
flex-shrink: 0;
}

.sdm-success-reveal {
padding: 10px 16px;
background: #081808;
border-bottom: 2px solid #2a3a5a;
color: #c8ffcc;
font-family: 'VT323', monospace;
font-size: 16px;
line-height: 1.4;
flex-shrink: 0;
}

/* ── Empty state ─────────────────────────────────────────── */

.sdm-empty-state {
font-size: 7px;
color: #4a6090;
text-align: center;
padding: 24px 0;
}

3 changes: 3 additions & 0 deletions public/break_escape/js/minigames/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export { LogFilterMinigame } from './log-filter/log-filter-minigame.js';
export { DrugLibraryIntegrityMinigame } from './drug-library-integrity/drug-library-integrity-minigame.js';
export { CoverageDecisionFormMinigame } from './coverage-decision-form/coverage-decision-form-minigame.js';
export { WarrantyChecklistMinigame } from './warranty-checklist/warranty-checklist-minigame.js';
export { ShreddedDocumentMinigame } from './shredded-document/shredded-document-minigame.js';
export { CryptexMinigame } from './cryptex/cryptex-minigame.js';
export { CombinationMinigame } from './combination/combination-minigame.js';

Expand Down Expand Up @@ -120,6 +121,7 @@ import { LogFilterMinigame } from './log-filter/log-filter-minigame.js';
import { DrugLibraryIntegrityMinigame } from './drug-library-integrity/drug-library-integrity-minigame.js';
import { CoverageDecisionFormMinigame } from './coverage-decision-form/coverage-decision-form-minigame.js';
import { WarrantyChecklistMinigame } from './warranty-checklist/warranty-checklist-minigame.js';
import { ShreddedDocumentMinigame } from './shredded-document/shredded-document-minigame.js';
import { CryptexMinigame } from './cryptex/cryptex-minigame.js';
import { CombinationMinigame } from './combination/combination-minigame.js';

Expand Down Expand Up @@ -167,6 +169,7 @@ MinigameFramework.registerScene('log-filter', LogFilterMinigame);
MinigameFramework.registerScene('drug-library-integrity', DrugLibraryIntegrityMinigame);
MinigameFramework.registerScene('coverage-decision-form', CoverageDecisionFormMinigame);
MinigameFramework.registerScene('warranty-checklist', WarrantyChecklistMinigame);
MinigameFramework.registerScene('shredded-document', ShreddedDocumentMinigame);
MinigameFramework.registerScene('cryptex', CryptexMinigame);
MinigameFramework.registerScene('combination', CombinationMinigame);

Expand Down
Loading
Loading