You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

197 lines
7.9 KiB

/* ── CSS Custom Properties ── */
:root {
--bg: #161210;
--surface: #211a13;
--surface2: #2e2318;
--border: #7a5c18;
--text: #e8d5b0;
--text-muted: #9a7e56;
--accent: #c89030;
}
/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* ── Body ── */
body {
background: var(--bg);
color: var(--text);
font-family: Georgia, 'Times New Roman', serif;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* ── Header ── */
header {
background: var(--surface);
border-bottom: 2px solid var(--border);
padding: 14px 24px;
display: flex;
align-items: baseline;
gap: 16px;
flex-shrink: 0;
}
header h1 { font-size: 1.5rem; color: var(--accent); letter-spacing: 0.06em; }
header p { color: var(--text-muted); font-size: 0.85rem; font-style: italic; }
/* ── Body layout ── */
.layout { display: flex; flex: 1; overflow: hidden; }
/* ── Sidebar ── */
aside {
width: 0; min-width: 0;
background: var(--surface);
border-right: 0px solid var(--border);
overflow: hidden; flex-shrink: 0;
transition: width 0.25s ease, min-width 0.25s ease, border-width 0.25s ease;
}
.aside-header {
display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
aside h2 { color: var(--accent); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; }
.aside-close {
background: none; border: none; color: var(--text-muted); cursor: pointer;
font-size: 1.2rem; line-height: 1; padding: 0 2px; transition: color 0.15s;
}
.aside-close:hover { color: var(--text); }
.sidebar-toggle-btn {
margin-left: auto;
background: var(--surface2); border: 1px solid var(--border);
color: var(--text-muted); cursor: pointer; font-family: inherit;
font-size: 0.8rem; padding: 5px 12px; border-radius: 4px;
display: flex; align-items: center; gap: 5px; white-space: nowrap;
transition: color 0.15s, border-color 0.15s;
}
.sidebar-toggle-btn:hover { color: var(--text); border-color: var(--text-muted); }
.sidebar-overlay {
display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 99;
}
@media (max-width: 640px) {
.sidebar-overlay.active { display: block; }
#sidebar { position: fixed; top: 0; left: 0; height: 100%; z-index: 100; }
.aside-inner { height: 100%; overflow-y: auto; }
}
/* ── Condition cards ── */
.ccard { border-radius: 5px; padding: 10px 12px; margin-bottom: 9px; border: 1px solid; }
.ccard h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 5px; }
.ccard p { font-size: 0.76rem; line-height: 1.55; color: var(--text); }
.ccard .tag {
display: inline-block; margin-top: 6px;
font-size: 0.72rem; font-weight: bold; padding: 2px 7px; border-radius: 3px;
}
/* ── Main ── */
main { flex: 1; overflow: auto; padding: 20px 24px; }
/* ── Tabs ── */
.tab-bar { display: flex; gap: 6px; margin-bottom: 0; }
.tab-btn {
padding: 8px 22px; background: var(--surface2);
border: 1px solid var(--border); border-bottom-color: var(--border);
color: var(--text-muted); cursor: pointer; font-family: inherit;
font-size: 0.9rem; border-radius: 6px 6px 0 0;
transition: color 0.15s, background 0.15s;
}
.tab-btn.active {
background: var(--surface); color: var(--accent);
border-color: var(--accent); border-bottom-color: var(--surface);
position: relative; z-index: 1;
}
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-panel {
display: none; background: var(--surface);
border: 1px solid var(--accent); border-radius: 0 6px 6px 6px; padding: 24px;
}
.tab-panel.active { display: block; }
.tab-panel h2 { color: var(--accent); font-size: 1.1rem; margin-bottom: 6px; }
.tab-panel .subtitle { color: var(--text-muted); font-size: 0.82rem; font-style: italic; margin-bottom: 22px; }
/* ── Diagram ── */
.diagram-wrap { overflow-x: auto; padding: 10px 0; }
.diagram-wrap .mermaid { display: flex; justify-content: center; }
/* ── Legend ── */
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; font-size: 0.77rem; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid; flex-shrink: 0; }
/* ── Note box ── */
.note-box {
background: var(--surface2); border: 1px solid var(--border); border-radius: 5px;
padding: 12px 16px; margin-top: 20px; font-size: 0.8rem; line-height: 1.7; color: var(--text);
}
.note-box h3 {
color: var(--accent); font-size: 0.78rem; text-transform: uppercase;
letter-spacing: 0.1em; margin-bottom: 8px;
}
.note-box ul { padding-left: 16px; }
.note-box li { margin-bottom: 4px; }
.note-box strong { color: var(--accent); }
/* ── Simulator shared ── */
.sim-start-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.sim-chip {
padding: 5px 14px; border-radius: 20px; border: 1px solid;
background: transparent; cursor: pointer; font-family: inherit;
font-size: 0.78rem; font-weight: bold; letter-spacing: 0.05em; transition: opacity 0.15s;
}
.sim-chip:hover { opacity: 0.7; }
.sim-box {
border-radius: 7px; border: 2px solid; padding: 18px 22px; margin-bottom: 22px;
transition: background 0.25s, border-color 0.25s;
}
.sim-box-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 4px; }
.sim-state-name { font-size: 1.7rem; font-weight: bold; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.sim-state-effects { font-size: 0.8rem; color: var(--text); line-height: 1.6; }
.sim-section-head { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 10px; }
.sim-actions-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sim-action:hover { border-color: var(--accent); color: var(--accent); }
.sim-action.selected { border-color: var(--accent); background: #1e1608; color: var(--accent); }
.sim-action-name { font-weight: bold; margin-bottom: 3px; }
.sim-action-hint { font-size: 0.7rem; color: var(--text-muted); }
.sim-action.selected .sim-action-hint { color: #906c38; }
.sim-outcomes-box {
background: var(--surface2); border: 1px solid var(--border); border-radius: 6px;
padding: 14px 18px; margin-bottom: 22px;
}
.sim-outcomes-head { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.sim-outcome:hover { border-color: var(--accent); color: var(--accent); }
.sim-result-box {
border-radius: 6px; border: 1px solid; padding: 14px 18px; margin-bottom: 22px;
animation: simFadeIn 0.25s ease;
}
@keyframes simFadeIn {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}
.sim-result-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sim-result-new-state { font-size: 1.05rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.06em; }
.sim-result-msg { font-size: 0.8rem; color: var(--text); line-height: 1.6; }
.sim-bottom-row {
display: flex; align-items: flex-start; justify-content: space-between;
gap: 16px; flex-wrap: wrap; margin-top: 4px;
}
.sim-history-wrap { flex: 1; min-width: 0; }
.sim-history-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 6px; }
.sim-history-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.78rem; min-height: 1.4em; }
.sim-hist-state { font-weight: bold; }
.sim-hist-via { color: var(--text-muted); font-size: 0.7rem; font-style: italic; }
.sim-reset-btn {
padding: 7px 18px; background: var(--surface2); border: 1px solid var(--border);
color: var(--text-muted); border-radius: 4px; cursor: pointer; font-family: inherit;
font-size: 0.8rem; white-space: nowrap; transition: color 0.15s, border-color 0.15s;
}
.sim-reset-btn:hover { color: var(--text); border-color: var(--text-muted); }