/* Poketech – Schreibzimmer (misc.php?action=schreibzimmer)
   Farben zentral hier anpassen (Palette "Lärche") */
.ptsz {
	--ptsz-page: transparent;
	--ptsz-bg: #0e2529;
	--ptsz-deep: #0b1e21;
	--ptsz-panel: #143a3f;
	--ptsz-panel-hover: #1a454b;
	--ptsz-line: #1d4146;
	--ptsz-field: #2b5258;
	--ptsz-copper: #c4794a;
	--ptsz-copper-light: #e0a072;
	--ptsz-heading: #d48a52;
	--ptsz-text: #dfe7e4;
	--ptsz-muted: #8fa8a3;
	--ptsz-ok: #5f8a7f;
	--ptsz-away: #4a5d5a;
	--ptsz-lcd: #9db3a6;
	--ptsz-lcd-ink: #1d3535;
	max-width: 1220px;
	margin: 0 auto 30px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	color: var(--ptsz-text);
	font-family: 'Aldrich', sans-serif;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
}
.ptsz *, .ptsz *::before, .ptsz *::after { box-sizing: border-box; }
.ptsz [hidden] { display: none !important; }
.ptsz ul { margin: 0; padding: 0; list-style: none; }
.ptsz p { margin: 0; }
.ptsz-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf */
.ptsz-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #8a5a35;
}
.ptsz-head-main { display: flex; flex-direction: column; gap: 6px; }
.ptsz-title {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: 'Aldrich', sans-serif;
	font-weight: normal;
	font-size: 26px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--ptsz-heading);
}
.ptsz-led { width: 10px; height: 10px; border-radius: 50%; background: var(--ptsz-copper); box-shadow: 0 0 8px rgba(196, 121, 74, .7); }
.ptsz-sub { font-size: 13px; letter-spacing: .04em; color: var(--ptsz-muted); }
.ptsz a.ptsz-back,
.ptsz a.ptsz-back:link,
.ptsz a.ptsz-back:visited { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ptsz-copper-light); }
.ptsz a.ptsz-back:hover { color: #f2c49e; }

/* Aufteilung */
.ptsz-layout { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.ptsz-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ptsz-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ptsz-card {
	background: var(--ptsz-bg);
	border: 1px solid var(--ptsz-line);
	border-radius: 14px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ptsz-editor-card { border-color: var(--ptsz-copper); }
.ptsz-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ptsz-between { justify-content: space-between; }
.ptsz-grow { flex: 1 1 220px; min-width: 0; }
.ptsz-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ptsz-copper-light); }
.ptsz-small { display: flex; flex-direction: column; gap: 4px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ptsz-muted); }
.ptsz-hint { font-family: 'VT323', monospace; font-size: 17px; line-height: 1.2; color: var(--ptsz-muted); }

/* Entwürfe */
.ptsz-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ptsz-slot {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	min-height: 56px;
	padding: 8px 12px;
	border: 1px solid var(--ptsz-line);
	border-radius: 10px;
	background: var(--ptsz-bg);
	color: var(--ptsz-text);
	text-align: left;
	font-family: 'Aldrich', sans-serif;
	cursor: pointer;
}
.ptsz-slot:hover { background: var(--ptsz-panel); }
.ptsz-slot.is-on { background: var(--ptsz-copper); border-color: var(--ptsz-copper); color: #0b1f22; }
.ptsz-slot-nr { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.ptsz-slot-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptsz-slot-words { font-family: 'VT323', monospace; font-size: 16px; opacity: .85; }

/* Eingaben & Knöpfe */
.ptsz-input {
	height: 40px;
	background: var(--ptsz-panel);
	border: 1px solid var(--ptsz-field);
	border-radius: 8px;
	padding: 0 12px;
	color: var(--ptsz-text);
	font-family: 'Aldrich', sans-serif;
	font-size: 14px;
}
.ptsz-btn {
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: var(--ptsz-panel);
	color: var(--ptsz-text);
	font-family: 'Aldrich', sans-serif;
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.ptsz-btn:hover { background: var(--ptsz-panel-hover); }
.ptsz-btn.is-on,
.ptsz-btn-primary { background: var(--ptsz-copper); color: #0b1f22; }
.ptsz-btn.is-on:hover,
.ptsz-btn-primary:hover { background: var(--ptsz-copper-light); }
.ptsz-btn-ghost { background: transparent; border-color: var(--ptsz-field); color: var(--ptsz-muted); }
.ptsz-btn.is-joined { color: var(--ptsz-copper-light); }
.ptsz-btn-tag { font-family: 'VT323', monospace; font-size: 19px; letter-spacing: 0; text-transform: none; border-color: var(--ptsz-field); }
.ptsz-swatch { width: 10px; height: 10px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.ptsz-toggle { display: flex; gap: 6px; }
.ptsz a.ptsz-ucplink,
.ptsz a.ptsz-ucplink:link,
.ptsz a.ptsz-ucplink:visited { font-family: 'VT323', monospace; font-size: 17px; color: var(--ptsz-muted); text-decoration: underline; text-underline-offset: 3px; }
.ptsz a.ptsz-ucplink:hover { color: var(--ptsz-copper-light); }
.ptsz input:focus-visible,
.ptsz textarea:focus-visible,
.ptsz button:focus-visible,
.ptsz a:focus-visible { outline: 2px solid var(--ptsz-copper-light); outline-offset: 2px; }

.ptsz-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: 'VT323', monospace;
	font-size: 18px;
	color: var(--ptsz-muted);
}
.ptsz-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ptsz-ok); }
.ptsz-status.is-busy::before { background: var(--ptsz-copper-light); }
.ptsz-status.is-error { color: var(--ptsz-copper-light); }
.ptsz-status.is-error::before { background: #b5533a; }

/* Editor & Vorschau */
.ptsz-editor {
	display: block;
	width: 100%;
	height: 470px;
	resize: vertical;
	background: var(--ptsz-deep);
	border: 1px solid var(--ptsz-line);
	border-radius: 10px;
	padding: 18px 20px;
	color: var(--ptsz-text);
	font-family: 'Literata', Georgia, serif;
	font-size: 17px;
	line-height: 1.75;
}
.ptsz-editor::placeholder { color: #6f8a85; }
.ptsz-preview-wrap { display: flex; flex-direction: column; gap: 8px; }
.ptsz-preview {
	display: block;
	width: 100%;
	height: 470px;
	border: 1px dashed var(--ptsz-field);
	border-radius: 10px;
	background: var(--ptsz-deep);
}
.ptsz-counter {
	background: var(--ptsz-lcd);
	color: var(--ptsz-lcd-ink);
	border-radius: 6px;
	padding: 2px 10px;
	font-family: 'VT323', monospace;
	font-size: 22px;
	text-transform: uppercase;
	box-shadow: inset 0 1px 4px rgba(0, 0, 0, .3);
}
.ptsz-code {
	display: block;
	width: 100%;
	height: 130px;
	resize: vertical;
	background: var(--ptsz-deep);
	border: 1px solid var(--ptsz-line);
	border-radius: 10px;
	padding: 12px 14px;
	color: #c9d3d0;
	font-family: 'VT323', monospace;
	font-size: 17px;
	line-height: 1.3;
}
.ptsz-copied { font-family: 'VT323', monospace; font-size: 18px; color: var(--ptsz-copper-light); }

/* Challenge */
#ptsz-ch-active, #ptsz-ch-form { display: flex; flex-direction: column; gap: 10px; }
.ptsz-ch-goal { font-size: 15px; color: var(--ptsz-text); }
.ptsz-ch-done { font-family: 'VT323', monospace; font-size: 18px; color: var(--ptsz-text); }
.ptsz-bar { height: 14px; background: var(--ptsz-panel); border-radius: 7px; overflow: hidden; }
.ptsz-bar-fill { height: 100%; width: 0; background: var(--ptsz-copper); border-radius: 7px; transition: width .4s; }
.ptsz-ch-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ptsz-ch-fields .ptsz-input { font-family: 'VT323', monospace; font-size: 20px; }

/* Wer ist da */
.ptsz-room { display: flex; flex-direction: column; }
.ptsz-person { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #16343a; }
.ptsz-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--ptsz-away); }
.ptsz-person.is-here .ptsz-dot { background: var(--ptsz-ok); }
.ptsz-person.is-typing .ptsz-dot { background: var(--ptsz-copper-light); }
.ptsz-person-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ptsz-person-name { font-size: 13px; color: var(--ptsz-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptsz-person.is-away .ptsz-person-name { color: var(--ptsz-muted); }
.ptsz-person-status { font-family: 'VT323', monospace; font-size: 16px; color: var(--ptsz-muted); }
.ptsz-person.is-typing .ptsz-person-status { color: var(--ptsz-copper-light); }
.ptsz-person-words { font-family: 'VT323', monospace; font-size: 20px; color: var(--ptsz-text); white-space: nowrap; }
.ptsz-person.is-away .ptsz-person-words { color: #6f8a85; }
.ptsz-dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.ptsz-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ptsz-copper-light); animation: ptsz-blink 1.2s infinite ease-in-out; }
.ptsz-dots i:nth-child(2) { animation-delay: .2s; }
.ptsz-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes ptsz-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

@media (max-width: 600px) {
	.ptsz-slots { grid-template-columns: minmax(0, 1fr); }
	.ptsz-editor, .ptsz-preview { height: 360px; }
}
