.playtest-page { background:#f6f8f3; }
[hidden] { display:none!important; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.pt-header { height:78px; padding:0 4vw; display:flex; gap:28px; align-items:center; border-bottom:1px solid var(--line); background:var(--paper); }
.pt-brand { font-size:1.65rem; letter-spacing:-1px; font-weight:700; white-space:nowrap; }
.pt-brand span { font-weight:400; }
.programme { padding-left:28px; border-left:1px solid #cbd6c4; font-size:.9rem; font-weight:600; }
.back-home { margin-left:auto; font-size:.85rem; }
.pt-wrap { max-width:1200px; padding:54px 32px 36px; margin:auto; }
.pt-wrap.narrow { max-width:780px; }
.intro { margin-bottom:38px; max-width:720px; }
.eyebrow,.step { font-size:.7rem; letter-spacing:.16em; font-weight:700; color:#4c672c; }
.intro h1 { font-size:clamp(2.7rem,4vw,4.1rem); margin:18px 0; }
.intro h1 span { color:#5c763e; }
.intro>p:last-child { max-width:590px; }
.join-grid { display:grid; grid-template-columns:.95fr 1.05fr; gap:28px; align-items:stretch; }
.panel { background:var(--paper); padding:32px; border:1px solid var(--line); border-radius:16px; }
.panel h2 { font-size:1.8rem; margin:12px 0 26px; }
label { display:block; font-weight:600; font-size:.9rem; margin:19px 0 8px; }
input,select,textarea { width:100%; padding:12px 14px; border:1px solid #b9c6b2; border-radius:7px; background:#fff; font:inherit; color:var(--ink); }
select { text-overflow:ellipsis; }
input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #739248; outline-offset:2px; }
textarea { resize:vertical; }
.small { font-size:.8rem; line-height:1.6; margin-top:8px; }
.pt-button { display:inline-flex; justify-content:center; align-items:center; gap:18px; border:1px solid #b8c5ac; border-radius:7px; background:var(--paper); padding:11px 18px; font-weight:600; font-size:.875rem; min-height:46px; }
.pt-button.primary { background:var(--lime); border-color:var(--lime); }
.pt-button:hover { background:#e5ebdf; }
.pt-button.primary:hover { background:#d0ed68; }
.pt-button:disabled { opacity:.55; cursor:wait; }
#start-button { width:100%; margin-top:26px; justify-content:space-between; }
.error { color:#962a25; font-size:.85rem; margin-top:14px; }
.error:empty { display:none; }
.text-button { display:inline-block; border:0; background:transparent; text-decoration:underline; text-underline-offset:4px; font-size:.9rem; padding:12px 0; }
.game-preview { border-radius:16px; overflow:hidden; background:#eaf0e2; border:1px solid var(--line); }
.preview-image { height:230px; background:#1c342c; display:grid; place-items:center; overflow:hidden; color:var(--lime); letter-spacing:.15em; font-size:.75rem; }
.preview-image img { width:100%; height:100%; object-fit:cover; }
.preview-copy { padding:26px 30px; }
.preview-copy h2 { font-size:1.9rem; margin:10px 0 14px; }
.how-it-works { border-top:1px solid #cbd6c1; margin-top:22px; padding-top:10px; }
.how-it-works p { margin-top:12px; font-size:.85rem; }
.how-it-works b { color:var(--ink); }
.privacy-note { max-width:740px; font-size:.8rem; margin:26px auto 0; text-align:center; }
.play-area { max-width:1600px; margin:auto; padding:16px 24px 10px; }
body.is-playing .pt-header { height:58px; }
.session-bar { display:flex; align-items:center; gap:28px; padding:0 0 14px; }
.session-label { min-width:0; flex:1; }
.session-label h1 { font-size:1.35rem; letter-spacing:-.025em; }
.session-label p { font-size:.7rem; overflow-wrap:anywhere; margin-top:5px; }
.session-time { text-align:center; white-space:nowrap; }
.session-time span { display:block; color:var(--muted); font-size:.6rem; letter-spacing:.12em; }
.session-time output { display:block; font-size:1.5rem; font-variant-numeric:tabular-nums; line-height:1.3; font-weight:600; }
.session-actions { display:flex; gap:10px; }
.frame-host { height:calc(100dvh - 194px); min-height:360px; background:#15232a; border-radius:9px; overflow:hidden; }
.frame-host iframe { width:100%; height:100%; display:block; border:0; }
.game-note { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-top:8px; font-size:.73rem; }
#report-status { color:#315321; font-weight:600; }
kbd { font:inherit; border:1px solid #c2cdb9; border-radius:3px; padding:0 4px; }
.pt-dialog { padding:28px; width:min(520px,calc(100vw - 32px)); border:1px solid var(--line); border-radius:14px; background:var(--paper); color:var(--ink); max-height:90dvh; }
.pt-dialog::backdrop { background:rgba(7,26,20,.65); }
.pt-dialog h2 { font-size:1.65rem; letter-spacing:-.03em; }
.pt-dialog>p { margin-top:18px; }
.dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.close-button { font-size:1.6rem; background:transparent; border:0; padding:0 8px; }
.dialog-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:22px; }
.optional { font-weight:400; font-size:.75rem; color:var(--muted); margin-left:6px; }
.narrow>h1,.narrow .panel>h1 { font-size:2.6rem; margin:14px 0; }
.narrow .panel>p { margin:14px 0 22px; }
.feedback-form { margin-top:26px; }
fieldset { padding:0; border:0; margin:0 0 25px; }
legend { font-weight:600; font-size:.95rem; margin-bottom:10px; }
.choices { display:flex; gap:10px; }
.choices label { cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; margin:0; border:1px solid #b9c6b2; border-radius:7px; padding:9px 16px; min-width:56px; font-size:1rem; }
.choices label:has(input:checked) { background:var(--lime); border-color:#789744; }
.choices input { width:16px; accent-color:var(--ink); margin:0; }
.rating-hints { display:flex; justify-content:space-between; max-width:410px; margin-top:5px; font-size:.7rem; color:var(--muted); }
#feedback-submit { margin-top:22px; }
.thank-you { text-align:center; padding:34px 0; }
.thank-mark { display:grid; place-items:center; width:64px; height:64px; border-radius:50%; background:var(--lime); font-size:2rem; margin:0 auto 26px; }
.thank-you h1 { font-size:2.8rem; margin:20px 0; }
.thank-you p { max-width:500px; margin:auto; }
.thank-you button { margin:30px auto 10px; display:flex; }
.admin-heading { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom:30px; }
.admin-heading h1 { font-size:2.8rem; margin-top:12px; }
.summary-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:24px 0; }
.summary-card { padding:22px; background:var(--paper); border:1px solid var(--line); border-radius:10px; }
.summary-card strong { display:block; font-size:2rem; line-height:1.2; }
.summary-card span { font-size:.85rem; color:var(--muted); }
.table-wrap { overflow:auto; background:var(--paper); border:1px solid var(--line); border-radius:12px; }
table { width:100%; border-collapse:collapse; font-size:.85rem; }
th,td { text-align:left; padding:15px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); background:#edf2e7; font-size:.7rem; letter-spacing:.03em; }
td small { display:block; max-width:270px; overflow-wrap:anywhere; color:var(--muted); font-size:.68rem; margin-top:3px; }
.status-badge { display:inline-block; white-space:nowrap; font-size:.72rem; padding:2px 8px; border-radius:20px; background:#edf1e8; }
.status-badge.complete { background:#dfedbf; }
.pagination { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:20px; }
.detail-dialog { width:min(800px,calc(100vw - 32px)); }
.issue-list { list-style:none; padding:0; margin:18px 0; }
.issue-list li { border-top:1px solid var(--line); padding:15px 0; }
.issue-list time { font-variant-numeric:tabular-nums; margin-right:14px; color:#4c672c; font-weight:700; }
.issue-list p,.feedback-answer { white-space:pre-wrap; overflow-wrap:anywhere; margin-top:8px; }
.detail-feedback h3 { font-size:.88rem; margin-top:18px; }
.session-row-actions { display:flex; align-items:center; gap:16px; white-space:nowrap; }
.text-button.danger { color:#962a25; }
.pt-button.danger { color:white; background:#962a25; border-color:#962a25; }
.pt-button.danger:hover { background:#7d231f; }
.detail-delete { border-top:1px solid var(--line); margin-top:24px; padding-top:8px; }
#results-status { color:#315321; }
@media(max-width:760px) { .pt-header{padding:0 20px;gap:16px;height:72px;}.pt-brand{font-size:1.25rem}.programme{font-size:.75rem;padding-left:16px}.back-home{display:none}.pt-wrap{padding:32px 20px}.join-grid{grid-template-columns:1fr}.panel{padding:24px}.intro h1{font-size:2.8rem}.session-bar{flex-wrap:wrap;gap:12px}.session-actions{width:100%}.session-actions button{flex:1}.play-area{padding:14px 12px}.frame-host{height:calc(100dvh - 250px);min-height:300px}.game-note{display:block}.choices{gap:6px}.choices label{min-width:0;padding:9px 10px}.summary-grid{grid-template-columns:repeat(2,1fr)}.admin-heading h1{font-size:2rem}.rating-hints{max-width:340px}.dialog-actions{flex-wrap:wrap} }
