:root {
color-scheme: dark;
--bg: #0a0a0a;
--panel: #101010;
--panel-2: #141414;
--panel-3: #0e0e0e;
--text: #e7e7e7;
--muted: #8d8d8d;
--border: #1f1f1f;
}
 
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
 
body {
font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
background: var(--bg);
color: var(--text);
height: 100vh;
overflow: hidden;
}
 
.overlay {
position: fixed;
inset: 0;
background: #000;
display: flex;
align-items: center;
justify-content: center;
z-index: 20;
}
 
/* ── Hacking Popup ────────────────────────────────────── */
.hacking-overlay {
position: fixed;
inset: 0;
background: #000;
z-index: 200;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
 
.hacking-overlay.hidden {
display: none !important;
}
 
.hacking-inner {
width: min(700px, 90vw);
display: flex;
flex-direction: column;
gap: 20px;
padding: 24px;
}
 
.hacking-label {
font-family: "Courier New", monospace;
font-size: 22px;
font-weight: 900;
color: #ff2222;
text-align: center;
letter-spacing: 4px;
animation: hackFlicker 0.4s infinite alternate;
}
 
.hacking-progress-bar {
width: 100%;
height: 6px;
background: #1a0000;
border-radius: 999px;
overflow: hidden;
border: 1px solid #ff2222;
}
 
.hacking-progress-fill {
height: 100%;
width: 0%;
background: linear-gradient(90deg, #ff2222, #ff6600);
transition: width 0.1s linear;
}
 
.hacking-text {
font-family: "Courier New", monospace;
font-size: 13px;
color: #ff4d4d;
line-height: 1.7;
min-height: 240px;
white-space: pre-wrap;
word-break: break-all;
}
 
.hacking-scanline {
position: fixed;
inset: 0;
background: repeating-linear-gradient(
to bottom,
transparent 0px,
transparent 3px,
rgba(255, 0, 0, 0.04) 3px,
rgba(255, 0, 0, 0.04) 4px
);
pointer-events: none;
z-index: 1;
animation: scanlineMove 4s linear infinite;
}
 
@keyframes hackFlicker {
0% { opacity: 1; text-shadow: 0 0 10px #ff0000; }
100% { opacity: 0.7; text-shadow: 0 0 4px #ff0000; }
}
 
@keyframes scanlineMove {
from { background-position: 0 0; }
to { background-position: 0 40px; }
}
 
.hacking-close-btn {
align-self: center;
margin-top: 20px;
background: transparent;
border: 2px solid #ffcc00;
color: #ffcc00;
padding: 12px 32px;
border-radius: 4px;
font-family: inherit;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: all 0.2s;
z-index: 10;
text-transform: uppercase;
letter-spacing: 2px;
box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
}
 
.hacking-close-btn:hover {
background: rgba(255, 204, 0, 0.1);
box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
transform: scale(1.05);
}
 
.hidden {
display: none !important;
}
 
.overlay.hidden {
display: none;
}
 
.overlay-content {
width: min(520px, 86vw);
text-align: center;
}
 
.overlay-title {
color: #fff;
font-size: 20px;
font-weight: 500;
margin-bottom: 18px;
}
 
.overlay-form {
display: flex;
flex-direction: column;
gap: 14px;
}
 
.overlay-form input {
background: transparent;
border: none;
border-bottom: 2px solid #fff;
color: #fff;
font-size: 18px;
padding: 10px 4px;
text-align: center;
outline: none;
}
 
.overlay-form input::placeholder {
color: rgba(255, 255, 255, 0.6);
}
 
.overlay-form button {
background: transparent;
border: 1px solid #fff;
color: #fff;
font-size: 14px;
padding: 10px 16px;
border-radius: 24px;
cursor: pointer;
}
 
.app-shell {
display: grid;
grid-template-columns: 320px minmax(0, 1fr);
height: 100vh;
overflow: hidden;
}
 
.sidebar {
background: var(--panel);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
min-height: 0;
}
 
.sidebar-top {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 18px;
border-bottom: 1px solid var(--border);
}
 
.profile {
display: flex;
align-items: center;
gap: 12px;
}
 
.profile-name {
font-size: 14px;
font-weight: 600;
}
 
.profile-status {
font-size: 12px;
color: var(--muted);
}
 
.icon-row {
display: flex;
gap: 8px;
}
 
.icon-btn {
background: var(--panel-2);
border: 1px solid var(--border);
color: var(--text);
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
font-size: 14px;
}
 
.search-bar {
padding: 10px 16px;
border-bottom: 1px solid var(--border);
}
 
.search-bar input {
width: 100%;
background: var(--panel-2);
border: 1px solid var(--border);
color: var(--text);
padding: 8px 12px;
border-radius: 18px;
font-size: 13px;
}
 
.station-list {
flex: 1;
overflow: hidden;
}
 
.station-list-items {
display: flex;
flex-direction: column;
}
 
.sidebar-progress {
border-top: 1px solid var(--border);
padding: 14px 16px 18px;
background: var(--panel-2);
}
 
.sidebar-progress-title {
font-size: 13px;
font-weight: 600;
color: #ffd6d6;
margin-bottom: 10px;
}
 
.sidebar-progress-bar {
width: 100%;
height: 8px;
background: #1f1f1f;
border-radius: 999px;
overflow: hidden;
}
 
.sidebar-progress-fill {
height: 100%;
width: 0%;
background: linear-gradient(90deg, #ff4d4d, #ff9f45);
transition: width 0.6s ease;
}
 
.station-item {
display: grid;
grid-template-columns: 42px minmax(0, 1fr) auto;
gap: 12px;
align-items: center;
padding: 12px 16px;
border-bottom: 1px solid var(--border);
background: var(--panel);
}
 
.station-item.active {
background: var(--panel-2);
}
 
.station-item.unread {
background: linear-gradient(90deg, rgba(255, 77, 77, 0.18), rgba(255, 77, 77, 0.04));
border-left: 3px solid #ff4d4d;
}
 
.station-item.unread .station-name,
.station-item.unread .station-preview,
.station-item.unread .station-meta {
color: #ffd6d6;
}
 
.station-item.unread .station-preview::before {
content: "NEU · ";
color: #ff4d4d;
font-weight: 700;
}
 
.station-info {
min-width: 0;
}
 
.station-name {
font-size: 14px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
 
.station-preview {
font-size: 12px;
color: var(--muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
 
.station-meta {
font-size: 12px;
color: var(--muted);
}
 
.chat-panel {
display: flex;
flex-direction: column;
background: var(--panel-3);
min-height: 0;
}
 
.ki-banner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 18px 20px;
background: linear-gradient(90deg, #2b0000 0%, #3a0000 50%, #2b0000 100%);
border-bottom: 2px solid #ff4d4d;
color: #ffd6d6;
position: sticky;
top: 0;
z-index: 6;
box-shadow: 0 12px 34px rgba(255, 77, 77, 0.28);
}
 
.ki-banner-text {
font-size: 16px;
font-weight: 700;
letter-spacing: 0.2px;
}
 
.ki-banner-btn {
background: transparent;
border: 2px solid #ffd6d6;
color: #ffd6d6;
padding: 8px 16px;
border-radius: 18px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
 
.ki-banner.urgent {
animation: kiPulse 1.2s infinite;
background: linear-gradient(90deg, #420000 0%, #6b0000 50%, #420000 100%);
}
 
@keyframes kiPulse {
0% {
box-shadow: 0 0 0 rgba(255, 77, 77, 0.35);
}
50% {
box-shadow: 0 0 18px rgba(255, 77, 77, 0.6);
}
100% {
box-shadow: 0 0 0 rgba(255, 77, 77, 0.35);
}
}
 
.chat-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 18px;
border-bottom: 1px solid var(--border);
background: var(--panel);
}
 
.chat-header-left {
display: flex;
align-items: center;
gap: 12px;
}
 
.chat-title {
font-size: 14px;
font-weight: 600;
}
 
.chat-subtitle {
font-size: 12px;
color: var(--muted);
}
 
.status-pill {
font-size: 12px;
color: var(--muted);
}
 
.chat-messages {
flex: 1;
padding: 18px 22px;
overflow-y: auto;
min-height: 0;
display: flex;
flex-direction: column;
gap: 10px;
}
 
.chat-messages-stack {
flex: 1;
display: flex;
min-height: 0;
}
 
.team-puzzle {
border-top: 1px solid var(--border);
background: var(--panel);
padding: 14px 16px;
display: grid;
gap: 12px;
overflow-y: auto;
min-height: 0;
scrollbar-gutter: stable;
scrollbar-width: thin;
scrollbar-color: rgba(255, 204, 0, 0.9) rgba(255, 255, 255, 0.08);
}

.team-puzzle::-webkit-scrollbar,
.team-puzzle-hints::-webkit-scrollbar {
width: 10px;
}

.team-puzzle::-webkit-scrollbar-track,
.team-puzzle-hints::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.08);
border-radius: 999px;
}

.team-puzzle::-webkit-scrollbar-thumb,
.team-puzzle-hints::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #ffcc00, #ff9f45);
border-radius: 999px;
border: 2px solid rgba(16, 16, 16, 0.9);
}

.team-puzzle-scroll-hint {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 8px 10px;
border: 1px solid rgba(255, 204, 0, 0.35);
border-radius: 999px;
background: rgba(255, 204, 0, 0.08);
color: #ffe9a8;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.4px;
text-transform: uppercase;
}

.team-puzzle-scroll-hint::before {
content: "↓";
font-size: 13px;
line-height: 1;
}
 
.team-puzzle-title {
font-size: 16px;
font-weight: 700;
text-align: center;
color: #ffcc00;
background: rgba(255, 204, 0, 0.15);
padding: 8px;
border-radius: 6px;
border: 1px solid rgba(255, 204, 0, 0.4);
}
 
.team-puzzle-status {
font-size: 13px;
color: var(--muted);
text-align: center;
}
 
.team-puzzle-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1px;
background: var(--border);
border: 1px solid var(--border);
}
 
.team-puzzle-header {
background: var(--panel-2);
padding: 8px 6px;
font-size: 12px;
font-weight: 600;
text-align: center;
color: #ddd;
}
 
.team-input {
background: #1a1a1a;
border: 1px solid #333;
color: var(--text);
padding: 8px 4px;
font-size: 12px;
text-align: center;
width: 100%;
outline: none;
transition: border-color 0.2s;
}
 
.team-input:focus {
background: #252525;
border-color: #ffcc00;
}
 
.team-input[readonly] {
background: #111;
color: var(--muted);
pointer-events: none;
}
 
.highlight-cell {
border: 2px solid #ffcc00;
background: rgba(255, 204, 0, 0.1);
box-shadow: inset 0 0 8px rgba(255, 204, 0, 0.2);
}
 
.team-puzzle-hints {
font-size: 12px;
line-height: 1.5;
color: #ddd;
background: var(--panel-2);
padding: 12px 16px 12px 32px;
border-radius: 6px;
border: 1px solid var(--border);
scrollbar-gutter: stable;
scrollbar-width: thin;
scrollbar-color: rgba(255, 204, 0, 0.9) rgba(255, 255, 255, 0.08);
}
 
.team-puzzle-hints ul {
display: flex;
flex-direction: column;
gap: 6px;
}
 
.message-actions {
display: flex;
gap: 8px;
margin-left: 40px;
}
 
.message-action {
background: var(--panel-2);
border: 1px solid var(--border);
color: var(--text);
padding: 6px 12px;
border-radius: 14px;
font-size: 12px;
cursor: pointer;
}
 
.decrypt-panel {
border-top: 2px solid #ff4d4d;
background: linear-gradient(180deg, rgba(255, 77, 77, 0.12), rgba(21, 21, 21, 0.6));
padding: 14px 16px;
display: grid;
gap: 10px;
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
 
.decrypt-panel.active {
animation: decryptPulse 1.6s ease-in-out infinite;
}
 
.decrypt-title {
font-size: 13px;
font-weight: 700;
letter-spacing: 0.2px;
}
 
.decrypt-hint {
font-size: 12px;
color: #ffd0d0;
}
 
.decrypt-known {
font-size: 12px;
color: #ffe0e0;
}
 
.decrypt-known-label {
font-weight: 600;
}
 
.decrypt-known-symbols {
display: inline-flex;
gap: 4px;
font-size: 14px;
letter-spacing: 0.5px;
}
 
.decrypt-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
gap: 6px;
}
 
.decrypt-item {
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
gap: 4px;
background: rgba(12, 12, 12, 0.6);
border: 1px solid rgba(255, 77, 77, 0.3);
padding: 4px 6px;
border-radius: 8px;
}
 
.decrypt-symbol {
font-size: 14px;
color: #ffd0d0;
}
 
.decrypt-map-input {
background: #151515;
border: 1px solid rgba(255, 77, 77, 0.4);
color: var(--text);
padding: 2px 4px;
border-radius: 6px;
font-size: 11px;
text-align: center;
text-transform: uppercase;
width: 100%;
min-width: 0;
}
 
@media (max-width: 900px) {
.decrypt-grid {
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
}
}
 
@media (max-width: 600px) {
.decrypt-grid {
grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
}
.decrypt-item {
padding: 4px;
}
.decrypt-symbol {
font-size: 12px;
}
}
 
.decrypt-status {
font-size: 12px;
color: #ffe0e0;
}
 
@keyframes decryptPulse {
0% {
box-shadow: 0 0 0 rgba(255, 77, 77, 0.35);
}
50% {
box-shadow: 0 0 18px rgba(255, 77, 77, 0.4);
}
100% {
box-shadow: 0 0 0 rgba(255, 77, 77, 0.35);
}
}
 
 
.chat-input {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 10px;
padding: 12px 16px;
border-top: 1px solid var(--border);
background: var(--panel);
}
 
.chat-text {
background: var(--panel-2);
border: 1px solid var(--border);
color: var(--text);
padding: 10px 14px;
border-radius: 18px;
font-size: 13px;
}
 
.send-btn {
background: var(--panel-2);
border: 1px solid var(--border);
color: var(--text);
padding: 0 16px;
border-radius: 18px;
font-size: 13px;
cursor: pointer;
}
 
.message {
display: flex;
align-items: flex-end;
gap: 8px;
max-width: 85%;
}
 
.message.user {
align-self: flex-end;
flex-direction: row-reverse;
}
 
.message.system {
align-self: center;
max-width: 70%;
}
 
.message-bubble {
background: #151515;
border: 1px solid var(--border);
color: var(--text);
padding: 10px 12px;
border-radius: 10px;
font-size: 13px;
line-height: 1.5;
}
 
.message.user .message-bubble {
background: #1a1a1a;
}
 
.message.system .message-bubble {
background: #111111;
color: var(--muted);
}
 
.message.system .message-bubble.help-hint {
background: rgba(26, 90, 46, 0.35);
border-color: rgba(87, 210, 134, 0.7);
color: #e3ffe9;
box-shadow: 0 10px 20px rgba(23, 120, 66, 0.25);
}
 
.message-media video {
width: 100%;
max-height: 260px;
border-radius: 10px;
display: block;
}
 
.avatar {
width: 38px;
height: 38px;
border-radius: 50%;
display: grid;
place-items: center;
font-size: 12px;
font-weight: 600;
color: #0a0a0a;
background: var(--avatar-color, #5bd1ff);
}
 
.avatar.accent {
color: #0a0a0a;
}
 
@media (max-width: 1100px) {
.app-shell {
grid-template-columns: 260px minmax(0, 1fr);
}
 
.sidebar-top {
padding: 14px 14px;
}
 
.search-bar {
padding: 8px 12px;
}
 
.station-item {
padding: 10px 12px;
gap: 10px;
}
 
.ki-banner {
padding: 14px 16px;
}
 
.chat-header {
padding: 12px 14px;
}
 
.chat-messages {
padding: 14px 16px;
}
 
.team-puzzle {
padding: 10px 12px;
gap: 8px;
max-height: 38vh;
}
 
.team-puzzle-title {
font-size: 14px;
padding: 6px 8px;
}

.team-puzzle-status {
font-size: 11px;
}

.team-puzzle-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-puzzle-header,
.team-input {
font-size: 10px;
padding: 5px 2px;
}

.team-puzzle-hints {
font-size: 10px;
padding: 10px 12px 10px 24px;
max-height: 18vh;
overflow: auto;
}

.team-puzzle-scroll-hint {
font-size: 10px;
padding: 7px 9px;
}

.team-input {
font-size: 10px;
padding: 5px 2px;
}
 
.team-puzzle-hints {
font-size: 10px;
}
 
.message {
max-width: 92%;
}
 
.message-actions {
margin-left: 28px;
}
 
.avatar {
width: 34px;
height: 34px;
font-size: 11px;
}
}
 
@media (max-width: 900px) {
.app-shell {
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
}
 
.sidebar {
display: flex;
border-right: none;
border-bottom: 1px solid var(--border);
max-height: 40vh;
}
 
.station-list {
overflow-y: auto;
}
 
.chat-panel {
min-height: 0;
}

.chat-messages-stack {
min-height: 0;
}
}

@media (max-height: 900px) and (min-width: 701px) {
.chat-header {
padding: 10px 14px;
}

.ki-banner {
padding: 10px 14px;
}

.chat-messages {
padding: 12px 14px;
}

.team-puzzle {
max-height: 34vh;
}

.team-puzzle-hints {
max-height: 16vh;
}

.chat-input {
padding: 10px 14px;
}
}