* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #050505;
    color: #ddd;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    min-height: 100vh;
    padding: 24px;
    line-height: 1.6;
}

button, input {
    font: inherit;
}

.container {
    max-width: 1100px;
    margin: auto;
}

.legal-container {
    max-width: 900px;
    margin: auto;
    border: 1px solid #333;
    background: #080808;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .7);
}

.terminal {
    border: 1px solid #333;
    background: #080808;
    box-shadow: 0 0 30px rgba(0, 0, 0, .7);
}

.header {
    border-bottom: 1px solid #333;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    color: #00d9ff;
    font-weight: bold;
    letter-spacing: 1px;
}

.online {
    color: #55ff88;
    font-size: 12px;
}

.screen {
    padding: 24px;
}

.banner {
    color: #00d9ff;
    text-align: center;
    margin-bottom: 30px;
    white-space: pre;
    overflow-x: auto;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.scenario {
    border: 1px solid #333;
    background: #0b0b0b;
    padding: 20px;
    cursor: pointer;
    transition: .15s;
}

.scenario:hover {
    border-color: #00d9ff;
    background: #101010;
}

.scenario h3 {
    color: #ff5555;
    margin-top: 0;
}

.scenario p {
    color: #888;
    line-height: 1.6;
    font-size: 13px;
}

.random {
    margin-top: 20px;
    width: 100%;
}

button {
    border: 1px solid #00d9ff;
    background: transparent;
    color: #00d9ff;
    padding: 12px 18px;
    cursor: pointer;
}

button:hover {
    background: #00d9ff;
    color: #000;
}

.incident {
    color: #ff5555;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.location {
    color: #888;
    margin-bottom: 8px;
}

.description {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 25px;
}

.transcript {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px 0;
}

.message {
    margin-bottom: 22px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.negotiator {
    color: #00d9ff;
}

.hostage {
    color: #ff5555;
}

.status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 13px 0;
    margin-bottom: 20px;
    font-size: 13px;
}

.status-item {
    color: #aaa;
}

.status-value {
    color: #00d9ff;
}

.demands {
    color: #ffd84d;
}

.input-area {
    display: flex;
    gap: 10px;
}

#messageInput {
    flex: 1;
    background: #050505;
    border: 1px solid #444;
    color: #eee;
    padding: 15px;
    outline: none;
}

#messageInput:focus {
    border-color: #00d9ff;
}

#sendButton {
    min-width: 100px;
}

.commands {
    color: #555;
    font-size: 12px;
    margin-top: 12px;
}

.ending {
    border: 1px solid #555;
    padding: 25px;
    margin-top: 25px;
    text-align: center;
}

.ending-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.score {
    font-size: 25px;
    color: #00d9ff;
    margin: 15px;
}

.hidden {
    display: none;
}

.footer {
    border-top: 1px solid #333;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #666;
    background: #080808;
    text-align: center;
}

.footer-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-legal {
    max-width: 800px;
    line-height: 1.5;
    color: #555;
    font-size: 11px;
}

.footer-links a, a {
    color: #00d9ff;
    text-decoration: none;
}

.footer-links a:hover, a:hover {
    text-decoration: underline;
}

.github-link {
    color: #777;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s;
}

.github-link:hover {
    color: #00d9ff;
}

.github-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.back-link {
    margin-bottom: 20px;
    display: inline-block;
}

h1, h2 {
    color: #00d9ff;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

@media (max-width: 600px) {
    body { padding: 8px; }
    .container { padding: 0; }
    .screen { padding: 15px; }
    .header { padding: 13px; }
    .input-area { flex-direction: column; }
    #sendButton { width: 100%; }
}