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 @@ -52,6 +52,7 @@
<link rel="stylesheet" href="/break_escape/css/forensic-data-platform-minigame.css">
<link rel="stylesheet" href="/break_escape/css/ncsc-brief-minigame.css">
<link rel="stylesheet" href="/break_escape/css/scada-historian-minigame.css">
<link rel="stylesheet" href="/break_escape/css/coverage-decision-form-minigame.css">
<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">
Expand Down
220 changes: 220 additions & 0 deletions public/break_escape/css/coverage-decision-form-minigame.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
/* ── Coverage Decision Form — MG-05 sis03_cyber_insurance ────────────────── */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.cdf-wrap {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
min-height: 500px;
background: #0d1117;
color: #c9d1d9;
font-family: 'Courier New', Courier, monospace;
font-size: 14px;
box-sizing: border-box;
overflow: hidden;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.cdf-header {
display: flex;
flex-direction: column;
background: #1a233a;
padding: 10px 16px 8px;
border-bottom: 2px solid #334466;
flex-shrink: 0;
}
.cdf-header-top {
display: flex;
align-items: center;
justify-content: space-between;
}
.cdf-header-title {
font-size: 17px;
font-weight: bold;
color: #ffffff;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.cdf-header-sub {
font-size: 12px;
color: #8899cc;
margin-top: 2px;
letter-spacing: 0.03em;
}
.cdf-close-btn {
background: #1e2a44;
border: 1px solid #ffffff;
color: #ffffff;
font-family: inherit;
font-size: 14px;
cursor: pointer;
padding: 2px 8px;
letter-spacing: 0.05em;
flex-shrink: 0;
align-self: flex-start;
}
.cdf-close-btn:hover { background: #334466; }

/* ── Body ─────────────────────────────────────────────────────────────────── */
.cdf-body {
flex: 1;
overflow-y: auto;
padding: 16px 20px;
display: flex;
flex-direction: column;
gap: 14px;
min-height: 0;
}

/* ── Section block ────────────────────────────────────────────────────────── */
.cdf-section {
background: #0f1826;
border: 1px solid #334466;
padding: 12px 14px;
}
.cdf-section-title {
font-size: 13px;
font-weight: bold;
color: #f5a623;
text-transform: uppercase;
letter-spacing: 0.07em;
border-bottom: 1px solid #334466;
padding-bottom: 7px;
margin-bottom: 10px;
}
.cdf-section-desc {
font-size: 12px;
color: #6677aa;
margin-bottom: 10px;
line-height: 1.5;
}

/* ── Radio rows ───────────────────────────────────────────────────────────── */
.cdf-radio-row {
display: flex;
align-items: flex-start;
gap: 10px;
cursor: pointer;
padding: 5px 6px;
margin-bottom: 4px;
border: 1px solid transparent;
transition: background 0.15s, border-color 0.15s;
}
.cdf-radio-row:hover {
background: #131b2e;
border-color: #334466;
}
.cdf-radio-row input[type="radio"] {
margin-top: 2px;
accent-color: #f5a623;
flex-shrink: 0;
cursor: pointer;
width: 14px;
height: 14px;
}
.cdf-radio-row label {
color: #aabbdd;
font-size: 13px;
cursor: pointer;
line-height: 1.5;
}
.cdf-radio-row.cdf-selected {
background: #1a1a08;
border-color: #f5a623;
}
.cdf-radio-row.cdf-selected label {
color: #ffffff;
font-weight: bold;
}
.cdf-radio-sublabel {
font-size: 12px;
color: #556688;
font-weight: normal;
display: block;
margin-top: 1px;
}
.cdf-radio-row.cdf-selected .cdf-radio-sublabel {
color: #8899aa;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.cdf-footer {
background: #0f1826;
border-top: 2px solid #334466;
padding: 12px 20px;
flex-shrink: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.cdf-submit-btn {
background: #1a1a1a;
border: 1px solid #333333;
color: #555555;
font-family: inherit;
font-size: 14px;
cursor: not-allowed;
padding: 8px 16px;
letter-spacing: 0.04em;
text-align: center;
opacity: 0.6;
transition: all 0.2s;
width: 100%;
}
.cdf-submit-btn.cdf-ready {
background: #1a2e1a;
border-color: #44aa44;
color: #88ee88;
cursor: pointer;
opacity: 1;
}
.cdf-submit-btn.cdf-ready:hover {
background: #224422;
border-color: #66cc66;
color: #ffffff;
}
.cdf-submit-btn.cdf-done {
background: #001a1a;
border-color: #00c5cd;
color: #00c5cd;
cursor: default;
opacity: 1;
}

/* ── Outcome note (shown after submit) ───────────────────────────────────── */
.cdf-outcome-note {
display: none;
background: #0a1a0a;
border: 1px solid #446644;
padding: 10px 14px;
color: #aaddaa;
font-size: 13px;
line-height: 1.6;
}
.cdf-outcome-note.visible { display: block; }
.cdf-outcome-speaker {
color: #88ee88;
font-weight: bold;
margin-bottom: 4px;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.cdf-submitted-badge {
display: none;
color: #44cc44;
font-size: 12px;
letter-spacing: 0.05em;
text-align: center;
}
.cdf-submitted-badge.visible { display: block; }

/* ── Guard hint ───────────────────────────────────────────────────────────── */
.cdf-hint {
font-size: 12px;
color: #556688;
text-align: center;
letter-spacing: 0.03em;
}
.cdf-hint.hidden { display: none; }
Loading
Loading