/* CyberWorld gameplay overlay styles — companion to gameplay.js */

.cw-gp-fab {
	position: fixed;
	right: 14px;
	bottom: 52px;
	z-index: 99998;
	padding: 8px 14px;
	background: linear-gradient(180deg, #00e8ff33, #00e8ff10);
	border: 1px solid #00e8ff;
	border-radius: 999px;
	color: #00e8ff;
	letter-spacing: 2px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 0 18px #00e8ff66, inset 0 0 8px #00e8ff33;
	transition: transform .15s ease, box-shadow .15s ease;
}
.cw-gp-fab:hover { transform: translateY(-1px); box-shadow: 0 0 28px #00e8ff99; }
.cw-gp-fab:focus-visible { outline: 2px solid #ff2bd6; outline-offset: 3px; }

/* ---------- Live Ops layer: immediate playable controls on the world map ---------- */
.cw-live-ops {
	position: absolute;
	inset: 0;
	z-index: 24;
	pointer-events: none;
	overflow: hidden;
	font-family: "Courier New", Consolas, monospace;
}
.cw-live-hud {
	position: absolute;
	left: 50%;
	top: 68px;
	bottom: auto;
	transform: translateX(-50%);
	z-index: 30;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	max-width: calc(100vw - 220px);
	pointer-events: none;
}
.cw-live-hud span {
	padding: 5px 8px;
	border: 1px solid #00e8ff66;
	border-radius: 999px;
	background: rgba(2, 7, 14, .72);
	color: #dffbff;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	box-shadow: 0 0 12px #00e8ff22;
}
.cw-live-hud .warn { border-color: #ff2bd688; color: #ff9bed; }
.cw-live-toast {
	position: absolute;
	left: 50%;
	top: 82px;
	transform: translateX(-50%);
	z-index: 31;
	padding: 7px 12px;
	border: 1px solid #fcee09aa;
	border-radius: 8px;
	background: rgba(4, 7, 10, .82);
	color: #fcee09;
	font-size: 12px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity .15s ease, transform .15s ease;
	pointer-events: none;
}
.cw-live-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(-4px);
}
@media (max-width: 860px) {
	.cw-live-hud { left: 12px; bottom: 56px; max-width: calc(100vw - 24px); }
	.cw-live-hud span { font-size: 10px; padding: 4px 6px; }
}

.cw-gp-root {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	background: rgba(2, 7, 14, 0.72);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	justify-content: center;
	align-items: center;
	padding: 24px;
	animation: cw-gp-fade .15s ease;
}
.cw-gp-root.open { display: flex; }
@keyframes cw-gp-fade { from { opacity: 0; } to { opacity: 1; } }

.cw-gp-panel {
	width: min(720px, 100%);
	max-height: min(82vh, 720px);
	background: linear-gradient(180deg, #06101ad9 0%, #030c14ee 100%);
	border: 1px solid #00e8ff80;
	border-radius: 14px;
	box-shadow: 0 24px 64px #000000a8, 0 0 30px #00e8ff33, inset 0 0 18px #00e8ff14;
	color: #e6f7ff;
	display: flex;
	flex-direction: column;
	font-family: var(--font-vt323), "MS Sans Serif", Tahoma, Arial, sans-serif;
	overflow: hidden;
}
.cw-gp-panel header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: linear-gradient(90deg, #00e8ff1f, #ff2bd60f);
	border-bottom: 1px solid #00e8ff66;
	letter-spacing: 3px;
	color: #00e8ff;
	font-size: 14px;
	text-transform: uppercase;
}
.cw-gp-close {
	background: transparent;
	border: 1px solid #00e8ff55;
	color: #00e8ff;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.cw-gp-close:hover { background: #00e8ff22; }

.cw-gp-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 6px 10px;
	background: #02070d;
	border-bottom: 1px solid #00e8ff33;
}
.cw-gp-tabs button {
	flex: 1 1 92px;
	padding: 7px 10px;
	background: transparent;
	border: 1px solid #00e8ff33;
	border-radius: 8px;
	color: #8ab4c8;
	font-family: inherit;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	transition: all .15s ease;
}
.cw-gp-tabs button:hover { color: #00e8ff; border-color: #00e8ff80; }
.cw-gp-tabs button.active {
	color: #ff2bd6;
	border-color: #ff2bd6;
	background: #ff2bd61a;
	box-shadow: 0 0 10px #ff2bd644;
}

.cw-gp-run {
	display: grid;
	gap: 12px;
}
.cw-gp-run-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: start;
	padding: 12px;
	border: 1px solid #00e8ff33;
	border-radius: 12px;
	background: linear-gradient(180deg, #06101ad6, #030c14ea);
}
.cw-gp-run-kicker {
	display: block;
	margin-bottom: 4px;
	color: #00ff9c;
	letter-spacing: 3px;
	font-size: 11px;
	text-transform: uppercase;
}
.cw-gp-run-hero strong {
	display: block;
	color: #e6f7ff;
	font-size: 20px;
	letter-spacing: 1px;
	margin-bottom: 6px;
}
.cw-gp-run-hero p {
	margin: 0;
	color: #8ab4c8;
	font-size: 13px;
	line-height: 1.45;
}
.cw-gp-run-start {
	min-width: 120px;
	height: 46px;
	padding: 0 14px;
	border-radius: 10px;
	border: 1px solid #00e8ff;
	background: linear-gradient(180deg, #00e8ff2f, #00e8ff10);
	color: #00e8ff;
	letter-spacing: 2px;
	font-family: inherit;
	font-size: 15px;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 0 18px #00e8ff33;
}
.cw-gp-run-start:hover { background: #00e8ff; color: #02070d; }
.cw-gp-run-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}
.cw-gp-run-card {
	padding: 10px 12px;
	border: 1px solid #00e8ff33;
	border-radius: 10px;
	background: #030c14a8;
}
.cw-gp-run-card span {
	display: block;
	color: #8ab4c8;
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 4px;
}
.cw-gp-run-card strong {
	color: #e6f7ff;
	font-size: 14px;
	letter-spacing: 1px;
}
.cw-gp-run-track {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px;
}
.cw-gp-run-node {
	text-align: left;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #00e8ff33;
	background: #030c14b8;
	color: #e6f7ff;
	font-family: inherit;
	cursor: pointer;
	min-height: 64px;
}
.cw-gp-run-node span {
	display: block;
	font-size: 13px;
	letter-spacing: 1px;
	margin-bottom: 6px;
}
.cw-gp-run-node small {
	display: block;
	color: #8ab4c8;
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.cw-gp-run-node.active {
	border-color: #ff2bd6;
	box-shadow: 0 0 18px #ff2bd633;
}
.cw-gp-run-node.done {
	opacity: .55;
	border-color: #00ff9c66;
}

.cw-gp-body {
	flex: 1;
	min-height: 0;
	padding: 14px;
	overflow: auto;
	font-size: 14px;
	scrollbar-width: thin;
	scrollbar-color: #00e8ff transparent;
}
.cw-gp-body::-webkit-scrollbar { width: 6px; }
.cw-gp-body::-webkit-scrollbar-thumb { background: #00e8ff66; border-radius: 4px; }

.cw-gp-foot {
	display: flex;
	gap: 14px;
	padding: 8px 14px;
	background: #02070d;
	border-top: 1px solid #00e8ff33;
	color: #8ab4c8;
	font-size: 12px;
	letter-spacing: 1.5px;
	flex-wrap: wrap;
}
.cw-gp-foot span { white-space: nowrap; }

/* ---------- Missions ---------- */
.cw-gp-mission {
	border: 1px solid #00e8ff33;
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 8px;
	background: #030c14a8;
	transition: border-color .15s ease;
}
.cw-gp-mission:hover { border-color: #00e8ff99; }
.cw-gp-mission.done { opacity: .55; border-color: #00ff9c66; }
.cw-gp-mission.locked { opacity: .55; border-style: dashed; }
.cw-gp-mission .m-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 4px;
}
.cw-gp-mission strong { color: #e6f7ff; letter-spacing: 1px; }
.cw-gp-mission .m-tag {
	color: #ff2bd6;
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.cw-gp-mission p {
	color: #8ab4c8;
	font-size: 13px;
	margin: 4px 0 8px;
	line-height: 1.4;
}
.cw-gp-mission .m-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}
.cw-gp-mission .m-reward { color: #00ff9c; font-size: 12px; letter-spacing: 1px; }
.cw-gp-mission .m-done   { color: #00ff9c; font-size: 12px; letter-spacing: 2px; }
.cw-gp-mission .m-lock   { color: #ffb347; font-size: 12px; letter-spacing: 2px; }
.cw-gp-mission .m-start {
	background: linear-gradient(180deg, #00e8ff33, #00e8ff10);
	border: 1px solid #00e8ff;
	color: #00e8ff;
	padding: 5px 12px;
	border-radius: 6px;
	font-family: inherit;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
}
.cw-gp-mission .m-start:hover { background: #00e8ff; color: #02070d; box-shadow: 0 0 14px #00e8ff99; }

/* ---------- Combat ---------- */
.cw-gp-empty {
	text-align: center;
	padding: 30px 10px;
	color: #8ab4c8;
}
.cw-gp-train {
	margin-top: 10px;
	padding: 8px 18px;
	background: linear-gradient(180deg, #ff2bd633, #ff2bd610);
	border: 1px solid #ff2bd6;
	color: #ff2bd6;
	border-radius: 8px;
	font-family: inherit;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
}
.cw-gp-combat {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.cb-target {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 12px;
	border: 1px solid #00e8ff33;
	border-radius: 10px;
	background: linear-gradient(180deg, #06101ad6, #030c14ea);
}
.cb-target-kicker {
	color: #00ff9c;
	letter-spacing: 3px;
	font-size: 11px;
	text-transform: uppercase;
}
.cb-target strong {
	color: #e6f7ff;
	font-size: 20px;
	letter-spacing: 1px;
}
.cb-target small {
	color: #8ab4c8;
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.cw-gp-combat.fx-boom .cb-enemy {
	animation: cw-gp-boom .28s ease;
	box-shadow: 0 0 0 1px #ffb347, 0 0 28px #ff2bd655, inset 0 0 20px #ffb34733;
}
@keyframes cw-gp-boom {
	0% { transform: scale(1); filter: brightness(1); }
	30% { transform: scale(1.02); filter: brightness(1.4); }
	60% { transform: scale(0.99); filter: brightness(1.1); }
	100% { transform: scale(1); filter: brightness(1); }
}
.cb-enemy {
	border: 1px solid #ff2bd699;
	border-radius: 10px;
	padding: 12px;
	background: #1a05140d;
	text-align: center;
}
.cb-enemy strong { color: #ff2bd6; letter-spacing: 3px; font-size: 18px; }
.cb-bar {
	height: 10px;
	margin: 8px 0 6px;
	background: #02070d;
	border: 1px solid #ff2bd666;
	border-radius: 5px;
	overflow: hidden;
}
.cb-bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #ff2bd6, #ffb347);
	transition: width .25s ease;
}
.cb-enemy small { color: #8ab4c8; font-size: 12px; }
.cb-tooltips {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}
.cb-tooltips div {
	padding: 8px 10px;
	border: 1px solid #00e8ff22;
	border-radius: 8px;
	background: #02070dcc;
}
.cb-tooltips strong {
	display: block;
	margin-bottom: 2px;
	color: #00e8ff;
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.cb-tooltips span {
	display: block;
	color: #8ab4c8;
	font-size: 11px;
	line-height: 1.35;
}
.cb-actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}
.cb-actions button {
	padding: 9px 4px;
	background: linear-gradient(180deg, #00e8ff33, #00e8ff10);
	border: 1px solid #00e8ff80;
	color: #00e8ff;
	border-radius: 8px;
	font-family: inherit;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: all .15s ease;
}
.cb-actions button[data-act="boom"] {
	background: linear-gradient(180deg, #ffb3472d, #ff2bd610);
	border-color: #ffb347;
	color: #ffb347;
}
.cb-actions button[data-act="sqlninja"] {
	background: linear-gradient(180deg, #00ff9c2d, #00e8ff10);
	border-color: #00ff9c99;
	color: #00ff9c;
}
.cb-actions button[data-act="nmap"] {
	background: linear-gradient(180deg, #00e8ff2d, #00e8ff10);
	border-color: #00e8ff;
	color: #00e8ff;
}
.cb-actions button:hover:not(:disabled) {
	background: #00e8ff;
	color: #02070d;
	box-shadow: 0 0 14px #00e8ff;
}
.cb-actions button:disabled { opacity: .35; cursor: not-allowed; }
.cb-log {
	max-height: 140px;
	overflow: auto;
	padding: 8px 10px;
	background: #02070d;
	border: 1px solid #00e8ff33;
	border-radius: 8px;
	color: #00ff9c;
	font-size: 12px;
	letter-spacing: .5px;
	line-height: 1.6;
}

/* ---------- Inventory ---------- */
.cw-gp-inv {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 6px;
}
.cw-gp-inv li {
	display: flex;
	justify-content: space-between;
	padding: 8px 10px;
	background: #030c14a8;
	border: 1px solid #00e8ff33;
	border-radius: 8px;
	font-size: 13px;
}
.cw-gp-inv li strong { color: #e6f7ff; letter-spacing: 1px; }
.cw-gp-inv li span { color: #00ff9c; }

/* ---------- Profile ---------- */
.cw-gp-profile { display: flex; flex-direction: column; gap: 8px; }
.pf-row {
	display: flex;
	justify-content: space-between;
	padding: 7px 10px;
	background: #030c14a8;
	border: 1px solid #00e8ff33;
	border-radius: 8px;
}
.pf-row span { color: #8ab4c8; letter-spacing: 2px; text-transform: uppercase; font-size: 11px; }
.pf-row strong { color: #e6f7ff; }
.pf-bar {
	height: 8px;
	background: #02070d;
	border: 1px solid #00e8ff66;
	border-radius: 4px;
	overflow: hidden;
}
.pf-bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #00e8ff, #00ff9c);
	transition: width .3s ease;
}
.pf-actions { display: flex; gap: 8px; margin-top: 10px; }
.pf-actions button {
	flex: 1;
	padding: 9px;
	background: transparent;
	border: 1px solid #00e8ff66;
	color: #00e8ff;
	border-radius: 8px;
	font-family: inherit;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-size: 12px;
	cursor: pointer;
}
.pf-actions .pf-reset { border-color: #ff2bd666; color: #ff2bd6; }
.pf-actions button:hover { background: #00e8ff14; }
.pf-actions .pf-reset:hover { background: #ff2bd61a; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.cw-gp-panel { max-height: 92vh; }
	.cw-gp-tabs button { font-size: 11px; padding: 6px 4px; letter-spacing: 1px; }
	.cw-gp-run-hero { grid-template-columns: 1fr; }
	.cw-gp-run-grid { grid-template-columns: 1fr; }
	.cw-gp-run-start { width: 100%; }
	.cb-tooltips { grid-template-columns: 1fr; }
	.cb-actions { grid-template-columns: repeat(2, 1fr); }
	.cw-gp-fab { right: 10px; bottom: 60px; padding: 7px 11px; font-size: 11px; }
}

/* =====================================================================
   Production field mode: sprite-backed playable route layer
   ===================================================================== */

.cw-field-fab {
	position: fixed;
	right: 116px;
	bottom: 52px;
	z-index: 99998;
	min-width: 86px;
	padding: 8px 14px;
	background: linear-gradient(180deg, #fcee0933, #ff2bd610);
	border: 1px solid #fcee09;
	border-radius: 999px;
	color: #fcee09;
	letter-spacing: 2px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 0 18px #fcee0966, inset 0 0 8px #fcee0933;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cw-field-fab:hover,
.cw-field-fab.active {
	transform: translateY(-1px);
	background: #fcee09;
	color: #02070d;
	box-shadow: 0 0 30px #fcee09aa;
}
.cw-field-fab:focus-visible {
	outline: 2px solid #00e8ff;
	outline-offset: 3px;
}

.cw-gp-run-actions,
.cw-gp-field-actions {
	display: grid;
	gap: 8px;
	align-content: start;
}
.cw-gp-field-toggle,
.cw-gp-field-actions button {
	min-height: 38px;
	padding: 0 13px;
	border-radius: 8px;
	border: 1px solid #fcee0999;
	background: linear-gradient(180deg, #fcee0928, #fcee0909);
	color: #fcee09;
	font-family: inherit;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	cursor: pointer;
}
.cw-gp-field-toggle:hover,
.cw-gp-field-actions button:hover:not(:disabled) {
	background: #fcee09;
	color: #02070d;
	box-shadow: 0 0 18px #fcee0977;
}
.cw-gp-field-actions {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cw-gp-field-actions button:disabled {
	opacity: .45;
	cursor: not-allowed;
}
.cw-gp-field {
	display: grid;
	gap: 12px;
}
.cw-gp-field-hero {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 12px;
	border: 1px solid #00e8ff33;
	border-radius: 12px;
	background:
		radial-gradient(circle at 10% 10%, #00e8ff22, transparent 46%),
		linear-gradient(180deg, #06101ad6, #030c14ea);
}
.cw-gp-field-hero strong {
	display: block;
	margin-bottom: 5px;
	color: #e6f7ff;
	font-size: 19px;
	letter-spacing: 1px;
}
.cw-gp-field-hero p {
	margin: 0;
	color: #8ab4c8;
	font-size: 13px;
	line-height: 1.42;
}
.field-sprite {
	width: 64px;
	height: 74px;
	background: url("assets/cyberworld/operative-sprite.svg") center / contain no-repeat;
	filter: drop-shadow(0 0 14px #00e8ff99);
	animation: cw-field-idle 1.8s ease-in-out infinite;
}
.cw-gp-field-log {
	min-height: 72px;
	max-height: 110px;
	overflow: auto;
	padding: 10px 12px;
	border: 1px solid #00e8ff33;
	border-radius: 10px;
	background: #02070dcc;
	color: #00ff9c;
	font-size: 12px;
	line-height: 1.55;
	letter-spacing: .7px;
}

.cw-live-ops {
	opacity: 0;
	visibility: hidden;
	z-index: 38;
	background:
		radial-gradient(circle at 16% 22%, rgba(0, 232, 255, .2), transparent 30%),
		radial-gradient(circle at 82% 70%, rgba(255, 43, 214, .18), transparent 34%),
		linear-gradient(180deg, rgba(3, 8, 15, .76), rgba(1, 3, 8, .94));
	transition: opacity .24s ease, visibility .24s ease;
}
body.cw-live-mode .cw-live-ops {
	opacity: 1;
	visibility: visible;
}
.cw-live-ops::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(rgba(0,232,255,.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0,232,255,.055) 1px, transparent 1px);
	background-size: 42px 42px;
	mask-image: radial-gradient(circle at 50% 52%, #000 0 72%, transparent 100%);
	pointer-events: none;
}
.lo-field-grid {
	position: absolute;
	inset: 24px;
	z-index: 1;
	border: 1px solid rgba(0, 232, 255, .22);
	border-radius: 18px;
	background:
		linear-gradient(90deg, transparent 0 31%, rgba(0,232,255,.16) 31% 31.7%, transparent 31.7% 67%, rgba(252,238,9,.14) 67% 67.7%, transparent 67.7%),
		linear-gradient(180deg, transparent 0 38%, rgba(255,43,214,.14) 38% 38.7%, transparent 38.7% 72%, rgba(0,255,156,.12) 72% 72.7%, transparent 72.7%);
	box-shadow: inset 0 0 48px rgba(0,232,255,.08), 0 0 32px rgba(0,0,0,.65);
}
.lo-field-grid::before {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	top: 50%;
	height: 88px;
	transform: translateY(-50%);
	border-top: 1px solid rgba(0, 232, 255, .2);
	border-bottom: 1px solid rgba(252, 238, 9, .18);
	background:
		linear-gradient(90deg, rgba(0,232,255,.18), transparent 12% 88%, rgba(255,43,214,.2)),
		repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.08) 46px 48px);
	box-shadow: 0 0 34px rgba(0, 232, 255, .1) inset;
}
.lo-field-grid::after {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px solid rgba(255, 255, 255, .055);
	box-shadow: inset 0 0 34px rgba(0, 0, 0, .48);
	pointer-events: none;
}
body.cw-live-mode .win98-icons-grid {
	opacity: .035;
	pointer-events: none;
	filter: saturate(.35) blur(2px);
	transform: scale(.975);
	transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}
body.cw-live-mode .win98-taskbar {
	box-shadow: 0 -2px 18px #fcee0955, inset 0 1px 0 #fcee0955 !important;
}

.cw-live-ops .lo-player,
.cw-live-ops .lo-packet,
.cw-live-ops .lo-daemon,
.cw-live-ops .lo-tower,
.cw-live-ops .lo-gate {
	position: absolute;
	left: 0;
	top: 0;
	will-change: transform, filter, opacity;
	transition: transform 72ms linear, filter .16s ease, opacity .18s ease;
}
.cw-live-ops .lo-player,
.cw-live-ops .lo-packet,
.cw-live-ops .lo-daemon {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	clip-path: none !important;
}
.cw-live-ops .lo-player::after,
.cw-live-ops .lo-daemon::before,
.cw-live-ops .lo-daemon::after {
	display: none !important;
	content: none !important;
}
.cw-live-ops .lo-player {
	width: 84px;
	height: 98px;
	z-index: 9;
	background: url("assets/cyberworld/operative-sprite.svg") center / contain no-repeat;
	transform: translate3d(calc(var(--x, 160px) - 42px), calc(var(--y, 160px) - 74px), 0);
	filter: brightness(1.35) drop-shadow(0 0 22px #00e8ff) drop-shadow(0 0 8px #ffffff66);
	animation: cw-field-idle 1.35s ease-in-out infinite;
}
.cw-live-ops .lo-player::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -8px;
	width: 68px;
	height: 18px;
	border: 1px solid rgba(0, 232, 255, .7);
	border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(0,232,255,.24), transparent 68%);
	transform: translateX(-50%);
	box-shadow: 0 0 16px rgba(0,232,255,.55);
}
.cw-live-ops .lo-player.dash {
	filter: drop-shadow(0 0 24px #fcee09) brightness(1.35);
}
.cw-live-ops .lo-packet {
	width: 38px;
	height: 38px;
	z-index: 5;
	background: url("assets/cyberworld/data-shard.svg") center / contain no-repeat;
	transform: translate3d(calc(var(--x, 260px) - 19px), calc(var(--y, 190px) - 19px), 0);
	filter: drop-shadow(0 0 14px #fcee09aa);
	animation: cw-shard-float 1.6s ease-in-out infinite;
}
.cw-live-ops .lo-packet.collected {
	opacity: 0;
	transform: translate3d(calc(var(--x, 260px) - 19px), calc(var(--y, 190px) - 32px), 0) scale(.25);
}
.cw-live-ops .lo-daemon {
	width: 62px;
	height: 52px;
	z-index: 7;
	background: url("assets/cyberworld/watcher-daemon.svg") center / contain no-repeat;
	transform: translate3d(calc(var(--x, 360px) - 31px), calc(var(--y, 240px) - 26px), 0);
	filter: drop-shadow(0 0 16px #ff2bd699);
	animation: cw-daemon-hover 1.1s ease-in-out infinite;
}
.cw-live-ops .lo-daemon.sentinel {
	width: 68px;
	height: 68px;
	background-image: url("assets/cyberworld/sentinel-ice.svg");
	filter: drop-shadow(0 0 18px #fcee09aa);
}
.cw-live-ops .lo-daemon.stunned {
	filter: grayscale(.4) drop-shadow(0 0 18px #00e8ff);
	animation-duration: .22s;
}
.cw-live-ops .lo-tower {
	width: 58px;
	height: 72px;
	z-index: 4;
	background: url("assets/cyberworld/firewall-tower.svg") center / contain no-repeat;
	transform: translate3d(calc(var(--x, 420px) - 29px), calc(var(--y, 280px) - 62px), 0);
	filter: drop-shadow(0 0 14px #ff2b5599);
}
.cw-live-ops .lo-tower::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 44%;
	width: 168px;
	height: 168px;
	border: 1px solid rgba(255, 43, 85, .24);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 43, 85, .12), transparent 62%);
	transform: translate(-50%, -50%);
	z-index: -1;
}
.cw-live-ops .lo-tower.hot {
	filter: drop-shadow(0 0 24px #ff2b55) brightness(1.25);
}
.cw-live-ops .lo-gate {
	width: 86px;
	height: 86px;
	z-index: 4;
	background: url("assets/cyberworld/exfil-gate.svg") center / contain no-repeat;
	transform: translate3d(calc(var(--x, 760px) - 43px), calc(var(--y, 260px) - 43px), 0) scale(.82);
	opacity: .22;
	filter: grayscale(.8) drop-shadow(0 0 10px #00e8ff55);
}
.cw-live-ops .lo-gate.open {
	opacity: 1;
	filter: drop-shadow(0 0 28px #00e8ff);
	animation: cw-gate-open 1.2s linear infinite;
}
.cw-live-ops.pulse::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(circle at var(--pulse-x, 50%) var(--pulse-y, 50%), rgba(0,232,255,.34), transparent 32%);
	animation: cw-pulse-flash .28s ease-out;
	pointer-events: none;
}

body.cw-live-mode .cw-live-hud {
	opacity: 1;
	visibility: visible;
}
.cw-live-hud {
	left: 50%;
	top: 70px;
	bottom: auto;
	transform: translateX(-50%);
	z-index: 46;
	opacity: 0;
	visibility: hidden;
	max-width: calc(100vw - 250px);
	justify-content: center;
	transition: opacity .2s ease, visibility .2s ease;
}
.cw-live-hud span {
	border-radius: 7px;
	background: rgba(2, 7, 14, .82);
	font-weight: 800;
}
.cw-live-hud #lo-route {
	color: #fcee09;
	border-color: #fcee0988;
}
.cw-live-hud #lo-objective {
	color: #00ff9c;
	border-color: rgba(0, 255, 156, .55);
}
.cw-live-hud #lo-heat,
.cw-live-hud #lo-shield {
	background: linear-gradient(90deg, rgba(0,232,255,.28) 0 var(--value, 0%), rgba(2,7,14,.86) var(--value, 0%));
}
.cw-live-hud #lo-heat {
	background: linear-gradient(90deg, rgba(255,43,85,.26) 0 var(--value, 0%), rgba(2,7,14,.86) var(--value, 0%));
}
.cw-live-hud #lo-heat.caution {
	border-color: rgba(252, 238, 9, .78);
	color: #fcee09;
}
.cw-live-hud #lo-heat.danger,
.cw-live-hud #lo-shield.danger {
	border-color: rgba(255, 43, 85, .86);
	color: #ff8aa2;
}

.cw-live-toast {
	top: 72px;
	border-radius: 7px;
	background: rgba(2, 7, 14, .88);
	font-weight: 800;
}

.cb-arena {
	position: relative;
	height: 132px;
	overflow: hidden;
	border: 1px solid rgba(0, 232, 255, .28);
	border-radius: 12px;
	background:
		linear-gradient(rgba(0,232,255,.065) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0,232,255,.05) 1px, transparent 1px),
		radial-gradient(circle at 76% 52%, rgba(255,43,214,.18), transparent 34%),
		linear-gradient(180deg, #06101ad9, #02070dee);
	background-size: 28px 28px, 28px 28px, auto, auto;
}
.cb-operator {
	position: absolute;
	left: 30px;
	bottom: 12px;
	width: 58px;
	height: 72px;
	background: url("assets/cyberworld/operative-sprite.svg") center / contain no-repeat;
	filter: drop-shadow(0 0 15px #00e8ffaa);
	animation: cw-field-idle 1.45s ease-in-out infinite;
}
.cb-enemy-sprite {
	position: absolute;
	right: 34px;
	bottom: 24px;
	width: 78px;
	height: 64px;
	background: url("assets/cyberworld/watcher-daemon.svg") center / contain no-repeat;
	filter: drop-shadow(0 0 18px #ff2bd6aa);
	animation: cw-daemon-hover 1.05s ease-in-out infinite;
}
.cb-enemy-sprite.boss {
	width: 86px;
	height: 86px;
	bottom: 14px;
	background-image: url("assets/cyberworld/sentinel-ice.svg");
	filter: drop-shadow(0 0 20px #fcee09aa);
}
.cb-lane {
	position: absolute;
	left: 96px;
	right: 124px;
	top: 50%;
	height: 2px;
	background: linear-gradient(90deg, #00e8ff, transparent 40%, #ff2bd6);
	box-shadow: 0 0 14px #00e8ff77;
}
.cw-gp-combat.fx-boom .cb-lane {
	height: 4px;
	background: linear-gradient(90deg, #fcee09, #ff2bd6);
	box-shadow: 0 0 28px #fcee09;
}

@keyframes cw-field-idle {
	0%, 100% { margin-top: 0; }
	50% { margin-top: -3px; }
}
@keyframes cw-shard-float {
	0%, 100% { filter: drop-shadow(0 0 12px #fcee09aa) brightness(1); }
	50% { filter: drop-shadow(0 0 20px #00e8ffcc) brightness(1.22); }
}
@keyframes cw-daemon-hover {
	0%, 100% { margin-top: 0; }
	50% { margin-top: -4px; }
}
@keyframes cw-gate-open {
	from { transform: translate3d(calc(var(--x, 760px) - 43px), calc(var(--y, 260px) - 43px), 0) scale(.86) rotate(0deg); }
	to { transform: translate3d(calc(var(--x, 760px) - 43px), calc(var(--y, 260px) - 43px), 0) scale(.86) rotate(360deg); }
}
@keyframes cw-pulse-flash {
	from { opacity: .9; }
	to { opacity: 0; }
}

@media (max-width: 760px) {
	.cw-field-fab {
		right: 96px;
		bottom: 60px;
		min-width: 72px;
		padding: 7px 10px;
		font-size: 11px;
	}
	.cw-gp-field-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cw-gp-field-hero {
		grid-template-columns: 1fr;
	}
	.field-sprite {
		width: 54px;
		height: 62px;
	}
	.cw-live-hud {
		left: 10px;
		right: 10px;
		top: 86px;
		bottom: auto;
		transform: none;
		max-width: none;
	}
	.cw-live-hud .warn {
		flex-basis: 100%;
		line-height: 1.3;
		white-space: normal;
		text-align: center;
	}
	body.cw-live-mode #cwnet-toasts {
		right: 12px;
		top: 64px;
		bottom: auto;
	}
	.cw-live-ops .lo-player {
		width: 66px;
		height: 78px;
	}
	.cw-live-ops .lo-daemon,
	.cw-live-ops .lo-tower {
		transform: translate3d(calc(var(--x, 260px) - 24px), calc(var(--y, 190px) - 24px), 0) scale(.84);
	}
}
