:root{font-family:Inter,Segoe UI,Tahoma,sans-serif;color:#253047;background:#f4f5fa;line-height:1.55;--ink:#514576;--mint:#c5e9df}*{box-sizing:border-box}body{margin:0}header{background:white;border-bottom:1px solid #e1dfeb;padding:20px max(24px,calc((100vw - 1100px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{font-weight:750;font-size:21px;color:var(--ink);text-decoration:none}.brand span{font-size:11px;display:block;letter-spacing:.07em;text-transform:uppercase;color:#69667c}main{max-width:1100px;margin:auto;padding:40px 24px}.eyebrow{color:#7d648e;text-transform:uppercase;font-size:12px;letter-spacing:.14em;font-weight:700}h1{font-size:clamp(32px,5vw,48px);letter-spacing:-.035em;margin:8px 0}h2{font-size:25px;margin:0}p{margin:9px 0 18px}.intro{max-width:730px;color:#616579;font-size:18px}nav{display:flex;gap:8px;flex-wrap:wrap;margin:28px 0 18px}button,select,input{font:inherit}button,select{border:1px solid #d7d2e5;border-radius:12px;background:#fff;color:#403653;padding:11px 18px}button{cursor:pointer;font-weight:650}button:hover{background:#f1edf8}button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #8870bf;outline-offset:3px}.primary,nav .selected{background:var(--ink);color:white;border-color:var(--ink)}.primary:hover,nav .selected:hover{background:#443a65}.panel{background:white;border:1px solid #e1dfeb;border-radius:24px;padding:30px;box-shadow:0 10px 35px #31364b06}.section-heading{display:flex;justify-content:space-between;gap:20px;align-items:start}.section-heading p,.panel>p{color:#656879}.timer-stage{position:relative;isolation:isolate;min-height:310px;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border-radius:20px;background:#f5f8f7;margin:22px 0}.orb{position:absolute;z-index:-1;width:250px;height:250px;border-radius:50%;background:radial-gradient(circle at 30% 20%,#edfff7,#b9dfd1);animation:breathe 7s ease-in-out infinite;opacity:.85}#clock{font-size:clamp(64px,12vw,100px);font-weight:750;letter-spacing:-.05em;font-variant-numeric:tabular-nums;direction:ltr}#timer-status{min-height:24px;margin:0 0 12px}progress{width:65%;height:8px;accent-color:#607f73}.controls{display:flex;align-items:end;gap:16px;flex-wrap:wrap}label{display:flex;gap:8px;flex-wrap:wrap;align-items:center}input[type=range]{width:150px;accent-color:var(--ink)}input:not([type=range]),textarea{width:100%;border:1px solid #d8d4e0;border-radius:9px;padding:10px;color:inherit;background:white}textarea{resize:vertical;min-height:68px}.muted,footer{font-size:13px;color:#6d6e7d;margin-top:22px}.group-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}.group-card{border-radius:16px;padding:18px;background:#f0edf8;border:1px solid #e4ddee}.group-card:nth-child(3n+2){background:#edf7f2}.group-card:nth-child(3n){background:#fdf3e7}.group-card h3{margin:0 0 10px}.tokens{display:flex;gap:6px;flex-wrap:wrap}.token{border-radius:50%;background:white;width:36px;height:36px;display:grid;place-items:center;font-weight:700}.ticket-editor{display:grid;grid-template-columns:1fr 1fr;gap:12px}#prompt-editor{display:grid;gap:12px;margin:18px 0}.sheet{background:#f5f5f8;padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:25px}.ticket{border:1px dashed #777;background:#fff;padding:15px;font-size:12px;min-height:280px;overflow-wrap:anywhere}.ticket h3{margin:0 0 7px}.ticket-head{display:flex;flex-wrap:wrap;gap:5px 14px;border-bottom:1px solid #bbb;padding-bottom:6px}.ticket-question{margin:12px 0 0;font-weight:600;white-space:pre-wrap}.answer-line{height:24px;border-bottom:1px solid #bbb}.ticket small{display:block;margin-top:12px;color:#666}section[hidden]{display:none!important}:fullscreen{background:white;padding:40px}:fullscreen .timer-stage{min-height:70vh}:fullscreen #clock{font-size:18vw}@keyframes breathe{50%{transform:scale(1.08)}}@media(prefers-reduced-motion:reduce){.orb{animation:none}}@media(max-width:600px){header{padding:15px;align-items:start}.brand{font-size:17px}main{padding:24px 14px}.panel{padding:18px}.section-heading{flex-direction:column}.ticket-editor{grid-template-columns:1fr}.sheet{grid-template-columns:1fr}.timer-stage{min-height:270px}header>label{font-size:12px}select{padding:7px}nav button{flex:1;padding:10px;font-size:13px}}@page{size:A4 portrait;margin:10mm}@media print{html,body{background:white;color:#000;margin:0;padding:0;font-size:10pt}header,main>*,#tickets>*{display:none!important}main,#tickets,#tickets #sheet{display:block!important;max-width:none;margin:0;padding:0;border:0;box-shadow:none}#tickets #sheet{display:grid!important;grid-template-columns:1fr 1fr;gap:6mm;height:275mm}.ticket{min-height:0;height:134mm;padding:5mm;break-inside:avoid;border:1px dashed #777;overflow:hidden;font-size:10pt}.ticket h3{font-size:14pt}.answer-line{height:9mm}.ticket-question{margin-top:4mm}.ticket small{font-size:8pt}}
@media print{#tickets #sheet{width:190mm;max-width:190mm}}
/* Group studio: numbered teams remain accessible without relying on color. */
#groups{background:linear-gradient(160deg,#fffcf8 0%,#f8f7ff 60%,#f1faf6 100%);padding:28px}#groups>h2{display:none}#groups>p:not(.muted):not(#group-status){max-width:700px}#groups .controls{background:#fff;border:1px solid #e6e0ec;border-radius:18px;padding:20px;margin-top:22px}#groups .controls label{display:grid;grid-template-columns:1fr auto;min-width:180px;gap:5px 12px}#groups .controls label span{font-size:13px;color:#686176;grid-column:1/-1}#groups .controls output{font-size:25px;font-weight:750;grid-column:2;grid-row:2}#groups .controls input{grid-column:1;grid-row:2;width:145px}#shuffle{box-shadow:0 5px 13px #51457625}#shuffle:before{content:'✦';margin-inline-end:8px}.group-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:8px 0 10px}.group-hero h2{font-size:clamp(27px,4vw,38px);letter-spacing:-.03em;color:#403653}.group-hero p{color:#776a82;margin:6px 0}.group-hero button{white-space:nowrap;font-size:13px}#group-status{font-size:13px;font-weight:700;letter-spacing:.03em;color:#70627f;padding:10px 2px;margin:12px 0}.group-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.group-card{--tone:#7465a1;--wash:#f0eafa;background:linear-gradient(145deg,#fff,var(--wash))!important;border:1px solid color-mix(in srgb,var(--tone) 28%,white);padding:23px;border-radius:23px;box-shadow:0 7px 17px #45305307;animation:team-arrive .4s both;animation-delay:calc(var(--order)*45ms);position:relative;overflow:hidden}.group-card:nth-child(6n+2){--tone:#287e74;--wash:#e2f3eb}.group-card:nth-child(6n+3){--tone:#b76836;--wash:#fff0dd}.group-card:nth-child(6n+4){--tone:#ad5472;--wash:#fbe8ef}.group-card:nth-child(6n+5){--tone:#467ba2;--wash:#e6f1fc}.group-card:nth-child(6n){--tone:#788337;--wash:#f1f2dc}.team-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.team-icon{width:53px;height:53px;border-radius:18px;background:white;display:grid;place-items:center;font-size:28px;box-shadow:0 4px 12px #43335409}.team-number{font-size:12px;color:var(--tone);font-weight:700;border:1px solid color-mix(in srgb,var(--tone) 20%,white);border-radius:20px;padding:4px 11px;background:#ffffffa6}.group-card h3{font-size:22px;letter-spacing:-.025em;color:#333044;margin:0}.team-count{font-size:12px;color:#696073;margin:4px 0 19px}.tokens{gap:8px}.token{height:39px;width:39px;color:var(--tone);border:1px solid color-mix(in srgb,var(--tone) 15%,white);box-shadow:0 2px 3px #00000003;font-size:16px}@keyframes team-arrive{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}#groups:fullscreen{overflow:auto;padding:35px}#groups:fullscreen .group-card{padding:30px}#groups:fullscreen .token{width:50px;height:50px;font-size:22px}#groups:fullscreen>.muted{max-width:900px}#groups:fullscreen .controls{display:none}@media(max-width:800px){.group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){#groups{padding:18px}.group-hero{align-items:start;flex-direction:column}.group-grid{gap:12px}.group-card{padding:15px;border-radius:18px}.team-top{gap:5px}.team-icon{width:38px;height:38px;border-radius:12px;font-size:23px}.team-number{font-size:10px;padding:3px 7px}.group-card h3{font-size:18px}.token{width:33px;height:33px;font-size:14px}.tokens{gap:5px}#groups .controls label{min-width:0;width:100%}#groups .controls input{width:100%}}@media(prefers-reduced-motion:reduce){.group-card{animation:none}}
