/* Tx Cyber Net cyber games. Theme tokens with fallbacks so it stands alone. */
.txcg {
	--txcg-amber: var(--amber, #ffb000);
	--txcg-dim: var(--amber-dim, #a3761a);
	--txcg-void: var(--void, #080705);
	--txcg-panel: var(--panel, #100e09);
	--txcg-rule: var(--rule, #2c2517);
	--txcg-paper: var(--paper, #e7ddcb);
	--txcg-rust: var(--rust, #c4512f);
	--txcg-jade: #3ecf8e;
	--txcg-red: #ff4b3a;
	--txcg-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--txcg-sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--txcg-paper);
	font-family: var(--txcg-sans);
	margin: 0 0 3rem;
}
.txcg *, .txcg *::before, .txcg *::after { box-sizing: border-box; }
.txcg [hidden] { display: none !important; }
.txcg-app:focus, .txcg-stage:focus, .txcg-verdict:focus { outline: none; }

/* boot line */
.txcg-boot {
	display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center;
	font: 500 .8rem/1.4 var(--txcg-mono); color: var(--txcg-dim);
	border: 1px solid var(--txcg-rule); background: var(--txcg-panel);
	padding: .6rem .9rem; margin-bottom: 1.5rem;
}
.txcg-cmd { color: var(--txcg-amber); }
.txcg-ok { color: var(--txcg-jade); }
.txcg-led, .txcg-boot .txcg-led {
	width: 8px; height: 8px; border-radius: 50%; background: var(--txcg-jade);
	box-shadow: 0 0 8px var(--txcg-jade); display: inline-block;
	animation: txcg-pulse 1.6s ease-in-out infinite;
}
.txcg-led-alert { background: var(--txcg-red); box-shadow: 0 0 8px var(--txcg-red); animation-duration: .9s; }
.txcg-nojs { border: 1px solid var(--txcg-rust); padding: 1rem; }

/* hub */
.txcg-lede { font-size: 1.05rem; line-height: 1.6; margin: 0 0 1.5rem; }
.txcg .txcg-cards {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
}
.txcg-card { animation: txcg-rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d, 0) * 90ms); }
.txcg-card-a {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; gap: .5rem; height: 100%;
	padding: 1.25rem 1.25rem 1rem; text-decoration: none; color: inherit;
	border: 1px solid var(--txcg-rule); background: var(--txcg-panel);
	transition: border-color .2s, transform .2s, box-shadow .2s;
}
.txcg-card-a::before, .txcg-card-a::after {
	content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--txcg-amber); opacity: 0; transition: opacity .2s;
}
.txcg-card-a::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.txcg-card-a::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.txcg-card-a:hover, .txcg-card-a:focus-visible {
	border-color: var(--txcg-amber); transform: translateY(-3px);
	box-shadow: 0 10px 30px -12px rgba(255, 176, 0, .35);
}
.txcg-card-a:hover::before, .txcg-card-a:hover::after, .txcg-card-a:focus-visible::before, .txcg-card-a:focus-visible::after { opacity: 1; }
.txcg-card-a:hover .txcg-card-n { text-shadow: 0 0 14px var(--txcg-amber); }
.txcg-card-n { font: 700 2rem/1 var(--txcg-mono); color: var(--txcg-amber); transition: text-shadow .2s; }
/* 1.0.5: ascii animation, full card height, left of the number and text */
.txcg-card-a.txcg-card-a { flex-direction: row; align-items: stretch; gap: 1.1rem; padding: 1rem 1.25rem 1rem 1rem; }
.txcg-card-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.txcg-card-body .txcg-card-n { font-size: 1.7rem; }
.txcg-card-body .txcg-card-t { font-size: 1.15rem; }
.txcg-card-body .txcg-card-d { font-size: .93rem; line-height: 1.45; }
.txcg-ascii {
	flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
	padding: .6rem .7rem; border: 1px dashed var(--txcg-rule); background: rgba(8, 7, 5, .6);
	color: var(--txcg-dim); transition: color .2s, border-color .2s;
}
.txcg-ascii-in { white-space: pre; font: 500 12px/1.3 var(--txcg-mono); letter-spacing: 0; }
.txcg-ascii-hot { color: var(--txcg-amber); text-shadow: 0 0 6px rgba(255, 176, 0, .55); }
.txcg-ascii-phish .txcg-ascii-hot, .txcg-ascii-spot .txcg-ascii-hot { color: var(--txcg-red); text-shadow: 0 0 6px rgba(255, 75, 58, .6); }
.txcg-ascii-passphrase .txcg-ascii-hot { color: var(--txcg-jade); text-shadow: 0 0 6px rgba(62, 207, 142, .5); }
.txcg-card-a:hover .txcg-ascii, .txcg-card-a:focus-visible .txcg-ascii { color: var(--txcg-paper); border-color: var(--txcg-dim); }
@media (max-width: 480px) {
	.txcg-card-a.txcg-card-a { gap: .75rem; padding: .85rem .85rem .85rem .75rem; }
	.txcg-ascii { padding: .45rem .4rem; }
	.txcg-ascii-in { font-size: 9px; }
	.txcg-card-body .txcg-card-d { font-size: .88rem; }
	.txcg-card-m { flex-wrap: wrap; gap: .35rem .8rem; }
}
.txcg-card-t { font: 700 1.25rem/1.2 var(--txcg-sans); color: var(--txcg-paper); }
.txcg-card-d { line-height: 1.5; color: var(--txcg-paper); opacity: .85; }
.txcg-card-m { margin-top: auto; display: flex; gap: 1rem; align-items: center; font: .78rem var(--txcg-mono); color: var(--txcg-dim); }
.txcg-card-best { color: var(--txcg-jade); }
.txcg-card-go { margin-left: auto; color: var(--txcg-amber); transition: transform .2s; }
.txcg-card-a:hover .txcg-card-go { transform: translateX(4px); }
.txcg-foot { margin-top: 1.5rem; font-size: .85rem; color: var(--txcg-dim); line-height: 1.5; }

/* game chrome */
.txcg-game { animation: txcg-fade .35s ease both; }
.txcg-ghead {
	display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
	font: .8rem var(--txcg-mono); border-bottom: 1px solid var(--txcg-rule); padding-bottom: .6rem; margin-bottom: .8rem;
}
.txcg-back { color: var(--txcg-dim); text-decoration: none; }
.txcg-back:hover, .txcg-back:focus-visible { color: var(--txcg-amber); }
.txcg-tag { color: var(--txcg-amber); letter-spacing: .06em; }
.txcg-hud { margin-left: auto; display: flex; gap: .8rem; align-items: center; }
.txcg-count { color: var(--txcg-dim); }
.txcg-streak {
	color: var(--txcg-void); background: var(--txcg-amber); padding: .1rem .5rem; font-weight: 700;
	box-shadow: 0 0 14px rgba(255, 176, 0, .5);
}
.txcg-streak.is-pop { animation: txcg-pop .45s cubic-bezier(.3,1.6,.5,1); }
.txcg-prog { height: 4px; background: var(--txcg-rule); margin-bottom: 1rem; overflow: hidden; }
.txcg-prog-fill { display: block; height: 100%; background: var(--txcg-amber); box-shadow: 0 0 10px var(--txcg-amber); transition: width .5s cubic-bezier(.2,.8,.2,1); animation: txcg-grow .6s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
.txcg-persona { font: .8rem/1.5 var(--txcg-mono); color: var(--txcg-dim); margin: 0 0 1rem; }
.txcg-stage { position: relative; }

/* buttons */
.txcg-btn {
	position: relative; display: inline-flex; align-items: center; gap: .55rem;
	font: 600 .9rem var(--txcg-mono); text-decoration: none; cursor: pointer;
	padding: .65rem 1.1rem; border: 1px solid var(--txcg-amber); background: transparent; color: var(--txcg-amber);
	transition: background .15s, color .15s, transform .1s, box-shadow .2s;
}
.txcg-btn:hover, .txcg-btn:focus-visible { background: var(--txcg-amber); color: var(--txcg-void); box-shadow: 0 0 18px rgba(255, 176, 0, .35); }
.txcg-btn:active { transform: translateY(1px) scale(.98); }
.txcg-btn-ghost { border-color: var(--txcg-rule); color: var(--txcg-paper); }
.txcg-btn-ghost:hover, .txcg-btn-ghost:focus-visible { border-color: var(--txcg-amber); background: transparent; color: var(--txcg-amber); box-shadow: none; }
.txcg-btn-bad { border-color: var(--txcg-red); color: var(--txcg-red); }
.txcg-btn-bad:hover, .txcg-btn-bad:focus-visible { background: var(--txcg-red); color: var(--txcg-void); box-shadow: 0 0 18px rgba(255, 75, 58, .4); }
.txcg-btn-good { border-color: var(--txcg-jade); color: var(--txcg-jade); }
.txcg-btn-good:hover, .txcg-btn-good:focus-visible { background: var(--txcg-jade); color: var(--txcg-void); box-shadow: 0 0 18px rgba(62, 207, 142, .4); }
.txcg-btn kbd {
	font: 600 .7rem var(--txcg-mono); padding: .05rem .35rem; border: 1px solid currentColor; opacity: .6;
}
.txcg-btn-bad, .txcg-btn-good { font-size: 1.05rem; padding: .8rem 1.6rem; }
.txcg-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }
.txcg-q { font: 700 1.1rem var(--txcg-sans); margin: 1.2rem 0 .2rem; }

/* messages */
.txcg-msg {
	border: 1px solid var(--txcg-rule); background: var(--txcg-panel);
	font-size: 1rem; line-height: 1.55;
}
.txcg-msg.is-in { animation: txcg-slide .45s cubic-bezier(.2,.8,.2,1) both; }
.txcg-msg-ctx { margin: 0; padding: .55rem .9rem; font: .8rem var(--txcg-mono); color: var(--txcg-jade); border-bottom: 1px dashed var(--txcg-rule); }
.txcg-msg-head {
	display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem;
	padding: .7rem .9rem; border-bottom: 1px solid var(--txcg-rule); font: .85rem var(--txcg-mono);
}
.txcg-msg-k { color: var(--txcg-dim); }
.txcg-msg-from { color: var(--txcg-paper); word-break: break-all; }
.txcg-msg-subj { color: var(--txcg-paper); font-weight: 700; }
.txcg-msg-body { padding: .9rem; white-space: pre-line; }
.txcg-msg-att { margin: 0 .9rem .9rem; display: inline-block; padding: .35rem .7rem; border: 1px solid var(--txcg-rule); font: .82rem var(--txcg-mono); }
.txcg-msg-sms { max-width: 520px; margin-left: auto; margin-right: auto; border-radius: 18px; }
.txcg-msg-sms .txcg-msg-head { border-bottom: 0; padding-bottom: 0; }
.txcg-msg-sms .txcg-msg-body {
	margin: .6rem .9rem .9rem; padding: .7rem .9rem; border-radius: 16px 16px 16px 4px;
	background: #24201a; color: var(--txcg-paper);
}
.txcg-msg-web .txcg-urlbar { grid-template-columns: auto 1fr; background: #0c0b08; }
.txcg-msg-web .txcg-msg-body { text-align: center; font-size: 1.05rem; padding: 1.4rem 1rem; }
.txcg-msg-web .txcg-msg-body > mark, .txcg-msg-web .txcg-msg-body { white-space: pre-line; }
.txcg-qr { width: 110px; height: 110px; display: block; margin: .6rem 0; fill: var(--txcg-paper); background: var(--txcg-void); padding: 6px; }
.txcg-fakebtn { display: inline-block; margin: .5rem 0; padding: .45rem 1rem; background: #2d5fa8; color: #fff; font-weight: 700; border-radius: 3px; }
.txcg-flag {
	background: rgba(255, 75, 58, .16); color: inherit; padding: 0 .15em;
	border-bottom: 2px solid var(--txcg-red);
	background-image: linear-gradient(90deg, rgba(255, 75, 58, .35), rgba(255, 75, 58, .35));
	background-repeat: no-repeat; background-size: 0 100%;
	animation: txcg-mark .6s ease-out .15s forwards;
}
.txcg-flag sup { color: var(--txcg-red); font: 700 .7rem var(--txcg-mono); margin-left: .15em; }
.txcg-msg.is-revealed { border-color: #3a2a1c; }

/* verdicts */
.txcg-verdict {
	position: relative; margin-top: 1rem; padding: .9rem 1rem;
	border-left: 4px solid var(--txcg-dim); background: var(--txcg-panel);
	animation: txcg-rise .35s cubic-bezier(.2,.8,.2,1) both;
}
.txcg-verdict.is-right { border-left-color: var(--txcg-jade); }
.txcg-verdict.is-wrong { border-left-color: var(--txcg-red); }
.txcg-verdict.is-meh { border-left-color: var(--txcg-amber); }
.txcg-verdict.is-shake { animation: txcg-shake .45s ease both; }
.txcg-verdict-h { position: relative; font: 700 1.05rem/1.4 var(--txcg-sans); margin: 0 0 .5rem; }
.is-right > .txcg-verdict-h { color: var(--txcg-jade); }
.is-wrong > .txcg-verdict-h { color: var(--txcg-red); }
.txcg .txcg-notes { margin: .5rem 0 .8rem; padding-left: 1.4rem; line-height: 1.5; }
.txcg .txcg-notes li { margin: .3rem 0; animation: txcg-rise .35s ease both; }
.txcg-notes li:nth-child(2) { animation-delay: .08s; } .txcg-notes li:nth-child(3) { animation-delay: .16s; }
.txcg-notes li:nth-child(4) { animation-delay: .24s; } .txcg-notes li:nth-child(5) { animation-delay: .32s; }
.txcg-notes li::marker { color: var(--txcg-red); font: 700 .85rem var(--txcg-mono); }
.txcg-lesson { margin: .5rem 0; line-height: 1.55; }
.txcg-pts { font: .8rem var(--txcg-mono); color: var(--txcg-dim); margin: .3rem 0 0; }

/* scenarios */
.txcg-scn { border: 1px solid var(--txcg-rule); background: var(--txcg-panel); padding: 1rem 1.1rem; }
.txcg-scn-k { margin: 0 0 .5rem; font: .8rem var(--txcg-mono); color: var(--txcg-dim); display: flex; align-items: center; gap: .4rem; }
.txcg-scn-q { margin: 0; font-size: 1.1rem; line-height: 1.55; min-height: 3.1em; }
.txcg-scn-q.is-typing::after { content: "\2588"; color: var(--txcg-amber); animation: txcg-blink .7s steps(1) infinite; margin-left: 2px; }
.txcg-ring { animation: txcg-ring 1.2s ease-out 1; }
.txcg-opts { display: grid; gap: .6rem; margin-top: .6rem; }
.txcg-opt {
	display: flex; gap: .8rem; align-items: flex-start; text-align: left; cursor: pointer;
	font: 1rem/1.45 var(--txcg-sans); color: var(--txcg-paper);
	padding: .8rem 1rem; border: 1px solid var(--txcg-rule); background: var(--txcg-panel);
	transition: border-color .15s, transform .15s, background .15s;
	animation: txcg-rise .35s ease both; animation-delay: calc(var(--d, 0) * 80ms + .2s);
}
.txcg-opt:hover:not(:disabled), .txcg-opt:focus-visible { border-color: var(--txcg-amber); transform: translateX(4px); }
.txcg-opt-k { font: 700 .9rem var(--txcg-mono); color: var(--txcg-amber); border: 1px solid currentColor; padding: 0 .4rem; flex: none; }
.txcg-opt:disabled { cursor: default; }
.txcg-opt.is-best { border-color: var(--txcg-jade); background: rgba(62, 207, 142, .08); }
.txcg-opt.is-best .txcg-opt-k { color: var(--txcg-jade); }
.txcg-opt.is-picked { border-color: var(--txcg-red); }
.txcg-opt.is-picked .txcg-opt-k { color: var(--txcg-red); }
.txcg-opt.is-dim { opacity: .45; }

/* spot the risks */
.txcg-hint { font: .8rem var(--txcg-mono); color: var(--txcg-dim); margin: .8rem 0 .5rem; }
.txcg-scene-wrap {
	position: relative; overflow: hidden; border: 1px solid var(--txcg-rule);
	background: radial-gradient(ellipse at 50% 30%, #17140d 0%, var(--txcg-void) 75%);
}
.txcg-scene { display: block; width: 100%; height: auto; cursor: crosshair; font-family: var(--txcg-mono); }
.txcg-sweep {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 176, 0, .07) 45%, rgba(255, 176, 0, .16) 50%, transparent 55%);
	background-size: 220% 100%; animation: txcg-sweep 4.5s linear infinite;
}
.txcg-scene-wrap.is-done .txcg-sweep { display: none; }
.txcg-hit { fill: transparent; stroke: transparent; stroke-width: 2; transition: fill .2s, stroke .2s; }
.txcg-hot { cursor: pointer; outline: none; }
.txcg-hot:focus-visible .txcg-hit { stroke: var(--txcg-paper); stroke-dasharray: 5 4; }
.txcg-hot.is-found .txcg-hit, .txcg-hot.is-shown .txcg-hit { fill: rgba(62, 207, 142, .12); stroke: var(--txcg-jade); animation: txcg-ping .6s ease-out; }
.txcg-hot.is-shown .txcg-hit { fill: rgba(255, 75, 58, .1); stroke: var(--txcg-red); stroke-dasharray: 6 4; }
.txcg-pin { fill: var(--txcg-jade); font: 700 16px var(--txcg-mono); }
.txcg-miss { fill: var(--txcg-red); font: 700 28px var(--txcg-mono); pointer-events: none; animation: txcg-missfade .7s ease-out forwards; }
.txcg-spot-status { font: 600 .95rem var(--txcg-mono); color: var(--txcg-amber); margin: .8rem 0 0; position: relative; display: inline-block; }
.txcg .txcg-found { padding-left: 0; list-style: none; margin: 1rem 0 0; }
.txcg .txcg-found li { margin: .55rem 0; line-height: 1.5; padding-left: 2.1rem; position: relative; }
.txcg-found li.is-new { animation: txcg-rise .4s cubic-bezier(.2,.8,.2,1) both; }
.txcg-found li.is-missed { color: var(--txcg-paper); opacity: .85; }
.txcg-found li.is-missed strong { color: var(--txcg-red); }
.txcg-found strong { color: var(--txcg-jade); }
.txcg-pin-n { position: absolute; left: 0; top: .05rem; font: 700 .8rem var(--txcg-mono); color: var(--txcg-void); background: var(--txcg-jade); padding: .05rem .4rem; }
.txcg-burst-at { position: absolute; width: 0; height: 0; pointer-events: none; }

/* passphrase lab */
.txcg-safe { border-left: 3px solid var(--txcg-jade); padding: .5rem .8rem; background: rgba(62, 207, 142, .06); line-height: 1.5; }
.txcg-favs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.txcg-fav span { display: block; font: .75rem var(--txcg-mono); color: var(--txcg-dim); margin-bottom: .3rem; }
.txcg-in, .txcg-sel select {
	width: 100%; font: 1rem var(--txcg-mono); color: var(--txcg-paper); background: var(--txcg-void);
	border: 1px solid var(--txcg-rule); padding: .6rem .7rem; transition: border-color .15s, box-shadow .15s;
}
.txcg-in:focus, .txcg-sel select:focus { outline: none; border-color: var(--txcg-amber); box-shadow: 0 0 0 3px rgba(255, 176, 0, .15); }
.txcg-err { color: var(--txcg-red); font: .85rem var(--txcg-mono); min-height: 1.2em; margin: .5rem 0 0; }
.txcg-lab { margin-top: 1rem; }
.txcg-phrase { border: 1px solid var(--txcg-amber); background: var(--txcg-void); padding: .9rem 1rem; box-shadow: 0 0 24px -10px rgba(255, 176, 0, .5); }
.txcg-phrase-k { display: block; font: .72rem var(--txcg-mono); color: var(--txcg-dim); letter-spacing: .08em; margin-bottom: .3rem; }
.txcg-phrase-v { font: 700 clamp(1rem, 2.6vw, 1.45rem)/1.35 var(--txcg-mono); color: var(--txcg-amber); word-break: break-all; background: none; padding: 0; }
.txcg-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0; }
.txcg-chip {
	display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; align-items: center;
	padding: .45rem .55rem .45rem .7rem; border: 1px solid var(--txcg-rule); background: var(--txcg-panel); min-width: 170px;
	animation: txcg-pop-in .35s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--d, 0) * 40ms);
}
.txcg-chip-w { font: 700 1rem var(--txcg-mono); color: var(--txcg-paper); }
.txcg-chip-w.is-rolling { color: var(--txcg-amber); text-shadow: 0 0 8px var(--txcg-amber); }
.txcg-chip-b { grid-column: 1; font: .7rem var(--txcg-mono); color: var(--txcg-dim); }
.txcg-chip-act { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: .25rem; }
.txcg-chip-random { border-color: rgba(62, 207, 142, .55); }
.txcg-chip-random .txcg-chip-b { color: var(--txcg-jade); }
.txcg-chip-obvious { border-color: rgba(255, 75, 58, .6); }
.txcg-chip-obvious .txcg-chip-b { color: var(--txcg-red); }
.txcg-chip-short .txcg-chip-b { color: var(--txcg-red); }
.txcg-mini {
	width: 1.9rem; height: 1.9rem; display: inline-grid; place-items: center; cursor: pointer;
	font: 700 1rem var(--txcg-mono); color: var(--txcg-paper); background: transparent; border: 1px solid var(--txcg-rule);
	transition: border-color .15s, color .15s, transform .3s;
}
.txcg-mini:hover, .txcg-mini:focus-visible { border-color: var(--txcg-amber); color: var(--txcg-amber); }
.txcg-mini:hover:first-child { transform: rotate(180deg); }
.txcg-meters { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.txcg-meter { border: 1px solid var(--txcg-rule); background: var(--txcg-panel); padding: .8rem .9rem; }
.txcg-meter-k { margin: 0; font: .72rem var(--txcg-mono); color: var(--txcg-dim); letter-spacing: .08em; text-transform: uppercase; }
.txcg-meter-v { margin: .35rem 0; font: 700 1rem var(--txcg-mono); color: var(--txcg-paper); }
.txcg-meter-v.ok { color: var(--txcg-jade); } .txcg-meter-v.bad { color: var(--txcg-red); }
.txcg-meter-n { margin: 0; font-size: .88rem; line-height: 1.45; opacity: .85; }
.txcg-lab .txcg-verdict { animation: none; }
.txcg-lab-ctl { }
.txcg-opts-row { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; font: .85rem var(--txcg-mono); }
.txcg-sel { display: inline-flex; align-items: center; gap: .4rem; }
.txcg-sel select { width: auto; padding: .35rem .5rem; font-size: .85rem; }
.txcg-sel input { accent-color: var(--txcg-amber); width: 1rem; height: 1rem; }
.txcg-sel-n { color: var(--txcg-dim); font-size: .78rem; }
.txcg-how, .txcg-src { margin-top: 1rem; font-size: .92rem; line-height: 1.55; }
.txcg-how summary, .txcg-src summary { cursor: pointer; font: .82rem var(--txcg-mono); color: var(--txcg-amber); }
.txcg .txcg-src ul { padding-left: 1.2rem; }
.txcg-src a { color: var(--txcg-paper); }
.txcg-src a:hover { color: var(--txcg-amber); }
.txcg-habits { margin-top: 1.2rem; border: 1px dashed var(--txcg-rule); padding: .9rem 1rem; }
.txcg-habits-h { margin: 0 0 .3rem; font: .78rem var(--txcg-mono); color: var(--txcg-amber); letter-spacing: .06em; text-transform: uppercase; }
.txcg .txcg-habits ol { margin: 0; padding-left: 1.3rem; line-height: 1.55; }

/* end screen */
.txcg-end { animation: txcg-rise .4s ease both; }
.txcg-end-k { font: .8rem var(--txcg-mono); color: var(--txcg-dim); margin: .5rem 0 0; }
.txcg-end-score { position: relative; display: inline-block; margin: .2rem 0 .6rem; font: 700 clamp(3rem, 9vw, 5rem)/1 var(--txcg-mono); color: var(--txcg-amber); text-shadow: 0 0 26px rgba(255, 176, 0, .45); }
.txcg-end-score small { font-size: .3em; color: var(--txcg-dim); text-shadow: none; }
.txcg-end-score-sm { font-size: 2.4rem; margin: 0 0 .5rem; }
.txcg-end-best { font: 700 .85rem var(--txcg-mono); color: var(--txcg-jade); margin: .6rem 0 0; animation: txcg-pop .5s cubic-bezier(.3,1.6,.5,1) 1.1s both; }
.txcg-end-rank { font-size: 1.15rem; line-height: 1.5; margin: .6rem 0; }
.txcg-take { border: 1px solid var(--txcg-amber); padding: 1rem 1.1rem; margin: 1rem 0; background: var(--txcg-panel); }
.txcg-take-h { margin: 0 0 .4rem; font: .78rem var(--txcg-mono); color: var(--txcg-amber); letter-spacing: .08em; text-transform: uppercase; }
.txcg .txcg-take ol { margin: 0 0 .6rem; padding-left: 1.3rem; line-height: 1.6; }
.txcg-take li { animation: txcg-rise .35s ease both; animation-delay: calc(var(--d, 0) * 110ms + .3s); }
.txcg-print { font-size: .8rem; padding: .4rem .8rem; }

/* sparks */
.txcg-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.txcg-spark {
	position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; background: var(--txcg-amber);
	box-shadow: 0 0 8px var(--txcg-amber); transform: rotate(var(--r));
	animation: txcg-spark .8s cubic-bezier(.1,.7,.3,1) forwards;
}
.txcg-spark:nth-child(3n) { background: var(--txcg-jade); box-shadow: 0 0 8px var(--txcg-jade); width: 4px; height: 4px; }
.txcg-spark:nth-child(4n) { background: var(--txcg-paper); width: 3px; height: 9px; }

/* keyframes */
/* 1.0.6: easter eggs */
.txcg-game { position: relative; }
.txcg-egg { position: absolute; z-index: 5; min-width: 44px; min-height: 44px; padding: 0 6px; border: 0; background: transparent; cursor: pointer;
	font: 700 1rem var(--txcg-mono); color: var(--txcg-jade); opacity: .55; animation: txcg-blink 1.1s steps(1) infinite; }
.txcg-egg:hover, .txcg-egg:focus-visible { opacity: 1; text-shadow: 0 0 10px var(--txcg-jade); outline: 1px dashed var(--txcg-jade); }
.txcg-toast { position: fixed; left: 0; right: 0; margin: 0 auto; width: fit-content; bottom: 24px; z-index: 100000; max-width: calc(100vw - 32px); box-sizing: border-box;
	padding: .7rem 1rem; background: #0b0a07; border: 1px solid var(--txcg-jade, #3ecf8e); color: #3ecf8e;
	font: .85rem/1.4 "JetBrains Mono", ui-monospace, monospace; box-shadow: 0 10px 30px -10px rgba(62, 207, 142, .45); animation: txcg-pop-in .25s both; }
.txcg-end-bonus { margin: .25rem 0 0; text-align: center; font: .85rem var(--txcg-mono); color: var(--txcg-jade); }
.txcg-eggs { margin: 1.25rem 0 0; font: .78rem var(--txcg-mono); color: var(--txcg-dim); }
html.txcg-root-mode .txcg { --txcg-amber: #3ecf8e; --txcg-dim: #2b9466; --txcg-rule: #173a2a; }
@media (prefers-reduced-motion: reduce) { .txcg-egg { animation: none; opacity: .8; } }

/* 1.0.6: celebration at 80+ */
.txcg-end-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 2rem; }
.txcg-bot { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.txcg-bot-fig { white-space: pre; font: 700 1.05rem/1.15 var(--txcg-mono); color: var(--txcg-jade); text-shadow: 0 0 10px rgba(62, 207, 142, .55); animation: txcg-bop .44s ease-in-out infinite alternate; }
.txcg-bot-say { font: .8rem var(--txcg-mono); color: var(--txcg-amber); letter-spacing: .04em; }
.txcg-end-win .txcg-end-score { text-shadow: 0 0 18px rgba(255, 176, 0, .45); }
.txcg-confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 99999; }
.txcg-cf { position: absolute; top: -24px; left: var(--x); width: 8px; height: 14px; background: var(--c); opacity: .95;
	animation: txcg-fall var(--t) cubic-bezier(.25, .5, .45, 1) var(--dl) forwards; }
.txcg-cf-sq { width: 9px; height: 9px; border-radius: 2px; }
.txcg-cf-t { width: auto; height: auto; background: none; color: var(--c); font: 700 15px/1 "JetBrains Mono", ui-monospace, monospace; text-shadow: 0 0 6px currentColor; }
@keyframes txcg-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: 0; } }
@keyframes txcg-bop { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-5px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .txcg-bot-fig { animation: none; } .txcg-confetti { display: none; } }
@keyframes txcg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes txcg-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes txcg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes txcg-slide { from { opacity: 0; transform: translateX(-24px) rotate(-.6deg); } to { opacity: 1; transform: none; } }
@keyframes txcg-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes txcg-pop-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes txcg-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes txcg-mark { to { background-size: 100% 100%; } }
@keyframes txcg-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes txcg-blink { 50% { opacity: 0; } }
@keyframes txcg-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 75, 58, .55); } 100% { box-shadow: 0 0 0 16px rgba(255, 75, 58, 0); } }
@keyframes txcg-sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes txcg-ping { 0% { stroke-width: 10; } 100% { stroke-width: 2; } }
@keyframes txcg-missfade { 0% { opacity: 1; transform: scale(1.4); transform-box: fill-box; transform-origin: center; } 100% { opacity: 0; transform: scale(.8); transform-box: fill-box; transform-origin: center; } }
@keyframes txcg-spark { 0% { transform: translate(0, 0) rotate(var(--r)); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(calc(var(--r) + 180deg)); opacity: 0; } }

/* phones */
@media (max-width: 700px) {
	.txcg .txcg-cards, .txcg-favs, .txcg-meters { grid-template-columns: 1fr; }
	.txcg-hud { margin-left: 0; width: 100%; }
	.txcg-btn-bad, .txcg-btn-good { flex: 1; justify-content: center; }
	.txcg-btn kbd { display: none; }
	.txcg-scn-q { font-size: 1rem; }
	.txcg-chip { min-width: 0; flex: 1 1 100%; }
}

/* motion off */
@media (prefers-reduced-motion: reduce) {
	.txcg *, .txcg *::before, .txcg *::after { animation: none !important; transition: none !important; }
	.txcg-flag { background-size: 100% 100%; }
	.txcg-sweep { display: none; }
}

/* print: only the takeaway card */
@media print {
	html.txcg-printing body * { visibility: hidden !important; }
	html.txcg-printing .txcg-take, html.txcg-printing .txcg-take * { visibility: visible !important; color: #000 !important; }
	html.txcg-printing .txcg-take { position: absolute; left: 0; top: 0; width: 100%; border: 2px solid #000; background: #fff !important; }
	html.txcg-printing .txcg-take::after { content: "Tx Cyber Net \00b7 txcyber.net/games"; display: block; margin-top: .6rem; font: .8rem monospace; visibility: visible; color: #000; }
	html.txcg-printing .txcg-print { display: none !important; }
	.txcg-confetti, .txcg-toast, .txcg-egg { display: none !important; }
}
.txcg .txcg-cards > li { margin: 0; }

/* 1.0.1: full width, centred boxes and controls */
.txcg-stage, .txcg-msg, .txcg-verdict, .txcg-scn, .txcg-opts, .txcg-lab, .txcg-lab-ctl, .txcg-end, .txcg-take, .txcg-habits, .txcg-how, .txcg-src, .txcg-safe, .txcg-favs { width: 100%; }
.txcg-actions, .txcg-opts-row { justify-content: center; }
.txcg-q, .txcg-hint, .txcg-spot-status, .txcg-persona { text-align: center; }
.txcg-spot-status { display: block; }
.txcg-end { text-align: center; }
.txcg-end .txcg-take, .txcg-end .txcg-src { text-align: left; }
.txcg-end-score { display: inline-block; }
.txcg-end .txcg-prog { max-width: none; }
.txcg-msg-web .txcg-msg-body { max-width: none; }
.txcg-qr { margin-left: auto; margin-right: auto; }
.txcg-msg-att { display: table; }
.txcg-lab .txcg-verdict .txcg-end-score-sm { display: block; text-align: center; }
.txcg-chips { justify-content: center; }
.txcg-chip { flex: 1 1 220px; }
@media (max-width: 700px) { .txcg-chip { flex-basis: 100%; } }
