/* De live demo: Aivion op een Windows-bureaublad, getekend op 1200 × 760 en geschaald naar de breedte */
.desk { position: relative; z-index: 2; margin: 64px auto 0; width: min(1200px, 100%); aspect-ratio: 1200 / 760; }
.desk::before { content: ""; position: absolute; inset: 12% 4% -8%; background: radial-gradient(50% 50% at 50% 50%, rgba(207, 116, 165, .75), transparent 70%); filter: blur(70px); }
.desk .scale { position: absolute; left: 0; top: 0; width: 1200px; height: 760px; transform-origin: 0 0; transform: scale(var(--s, 1)); }
.screen { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 70px 160px -50px #000, 0 0 0 8px rgba(255, 255, 255, .03);
  background: radial-gradient(55% 75% at 50% 118%, #ffb38a 0%, #e77aa5 18%, #a8457a 38%, transparent 66%), radial-gradient(60% 70% at 18% 8%, #5e1f4a, transparent 70%), radial-gradient(50% 60% at 92% 20%, #7a2f5e, transparent 70%), #160b13; }
.win { position: absolute; left: 44px; top: 30px; right: 44px; bottom: 78px; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: #221620; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); font: 12px/1.4 var(--body); color: #ddd1da; text-align: left; }
/* Een alinea in de scène volgt het venster, niet de tekst van de pagina eromheen (zoals .story p) */
.desk p { margin: 0; max-width: none; font-size: inherit; line-height: inherit; color: inherit; }
.win .ico { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Titelbalk van Aivion Studios: links het merk met de schakelaar, in het midden het project, rechts de knoppen van Windows */
.win .title { position: relative; flex: none; height: 22px; display: flex; align-items: center; justify-content: space-between; padding-left: 10px; background: #130b11; white-space: nowrap; }
.win .studio { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.win .studio i { width: 18px; height: 10px; border-radius: 999px; background: #fff; position: relative; }
.win .studio i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: #130b11; }
.win .title .name { position: absolute; left: 50%; transform: translateX(-50%); color: #a8949f; font-size: 10px; }
.win .caption { display: flex; align-self: stretch; }
.win .caption span { width: 36px; display: grid; place-items: center; color: #aaa; font-size: 10px; }

/* Menubalk: het merk, de menu's, het project, GitHub en de tak; rechts de autopilot */
.win .top { flex: none; height: 34px; display: flex; align-items: center; gap: 14px; padding: 0 12px; background: #160e14; border-bottom: 1px solid #2c1e29; white-space: nowrap; }
.win .brand { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #fff; font: 600 13px/1 var(--display, serif); }
.win .brand img { width: 20px; }
.win .brand > span { display: flex; flex-direction: column; gap: 1px; }
.win .brand small { color: #e3a8c7; font: 700 6px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.win .menus { display: flex; gap: 14px; padding-right: 14px; border-right: 1px solid #35252f; color: #ddd1da; font-size: 11px; }
.win .proj { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.win .proj .ico:last-child, .win .gh > .ico { width: 10px; height: 10px; color: #a8949f; }
.win .gh { display: flex; align-items: center; gap: 6px; color: #b8a6b0; }
.win .gh b { width: 6px; height: 6px; border-radius: 50%; background: #bfa2f0; }
.win .branch { display: flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 5px; background: #2c1e29; color: #ddd1da; font: 10.5px var(--mono); }
.win .branch .ico { width: 10px; height: 10px; }
.win .top .tools { display: flex; color: #b8a6b0; }
.win .auto { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 3px 6px 3px 10px; border: 1px solid #35252f; border-radius: 999px; color: #b8a6b0; font-size: 11px; }
.win .auto .ico { width: 11px; height: 11px; }
.win .auto i { width: 20px; height: 11px; border-radius: 999px; background: #2c1e29; position: relative; }
.win .auto i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: #a8949f; }

/* De balk met alle panelen: links wat er altijd is, in het midden de panelen in groepen, rechts het indelen; wat in beeld is kleurt paars */
.win .views { flex: none; height: 32px; display: flex; align-items: center; gap: 2px; padding: 0 8px; background: #160e14; border-bottom: 1px solid #2c1e29; }
.win .views span { display: flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid transparent; border-radius: 6px; color: #b8a6b0; font-size: 11px; white-space: nowrap; }
.win .views .vgroup { gap: 4px; padding: 0; }
.win .views .vgroup span { background: #1f141c; }
.win .views span.on, .win .views .vgroup span.on { background: rgba(207, 116, 165, .16); border-color: rgba(207, 116, 165, .45); color: #f6e3ee; }
.win .views span.on .ico { color: #e3a8c7; }
.win .views em { font-style: normal; min-width: 15px; padding: 0 4px; border-radius: 999px; background: #382833; color: #ddd1da; font-size: 9.5px; text-align: center; }
.win .views .sep { width: 1px; height: 16px; margin: 0 6px; background: #3e2c39; }
.win .views .gap { flex: 1; }
.win .views .layout { padding: 3px; color: #a8949f; }

/* De agents en panelen staan als kaarten naast elkaar */
.win .body { flex: 1; display: flex; gap: 6px; min-height: 0; padding: 6px; background: #160e14; }
.win .body > .agent, .win .body > .side, .split > .agent { border: 1px solid #2f212b; border-radius: 9px; overflow: hidden; }
.win .pbar, .win .foot { flex: none; height: 22px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; background: #160e14; border-top: 1px solid #2c1e29; color: #a8949f; font-size: 10.5px; }
.win .foot { height: 18px; background: #130b11; font-size: 9.5px; }
.win .pbar span { display: flex; align-items: center; gap: 5px; }
.win .pbar .ico { width: 11px; height: 11px; }
.win .pbar .checks { gap: 12px; }
.win .pbar .checks b { width: 5px; height: 5px; border-radius: 50%; background: #7fc8a0; }
.win .pbar .checks i.cc { width: 13px; height: 13px; font-size: 8px; vertical-align: 0; }
.win i.cc, .win i.cx { flex: none; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; font-style: normal; font-size: 9px; color: #fff; vertical-align: -3px; }
.win i.cc { background: #d97757; }
.win i.cx { background: #10a37f; }

/* Een agent: zijn kop met naam, ster, model en sluiten, daaronder zijn terminal */
.agent { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.heads { flex: none; height: 30px; display: flex; align-items: stretch; border-bottom: 1px solid #35252f; background: #1b1119; }
.ahead { display: flex; align-items: center; gap: 6px; padding: 0 8px; border-top: 2px solid transparent; color: #fff; white-space: nowrap; transition: border-color .3s ease; }
.focused .ahead { border-top-color: var(--violet); }
.split .ahead { flex: 1; min-width: 0; overflow: hidden; }
.ahead .star { display: flex; color: #a8949f; }
.ahead .star.on { color: #cf74a5; }
.ahead .star.on .ico { fill: currentColor; }
.ahead .model { display: flex; align-items: center; gap: 3px; margin-left: 2px; color: #b8a6b0; font-size: 10.5px; }
.ahead .model .ico { width: 10px; height: 10px; }
.ahead .meter { color: #b8a6b0; font-size: 10px; }
.ahead .close { display: flex; margin-left: 4px; color: #a8949f; }
.ahead .close .ico { width: 11px; height: 11px; }
.heads .add { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 0 8px; color: #b8a6b0; white-space: nowrap; }
.heads .add > span { display: flex; align-items: center; gap: 5px; }
.heads .add .ico { width: 11px; height: 11px; }
.heads .add b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: rgba(207, 116, 165, .2); color: #e3a8c7; }
.split { flex: 1; min-width: 0; display: flex; gap: 6px; }

.term { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; padding: 14px 16px 8px; font: 12px/1.55 var(--mono); color: #e9dfe5; background: #221620; overflow: hidden; }
.split .term { padding: 12px 12px 8px; font-size: 11.5px; line-height: 1.5; }
.term .hello { flex: none; display: flex; align-items: center; gap: 12px; }
.term .crab { flex: none; width: 44px; height: 24px; }
.term .hello b { color: #fff; }
.term .hello span { color: #b8a6b0; }
.cxt .hello { padding-left: 4px; }
.cxt .hello b span { color: #8ab4ff; }
.cxt .hello .path { padding-left: 2em; }
.term .conv { flex: 1; min-height: 0; overflow: hidden; }
.hello + .conv { margin-top: 14px; }
.term .input { flex: none; position: relative; margin-top: 6px; }
.term .line { padding: 4px 0; border-top: 1px solid #5a4552; border-bottom: 1px solid #5a4552; color: #fff; min-height: 28px; }
.term .caret { display: inline-block; width: 7px; height: 15px; margin-left: 1px; vertical-align: -3px; background: #e9dfe5; animation: blink 1s steps(1) infinite; }
.term .mode { margin-top: 8px; padding-left: 14px; color: #a8949f; font-size: 11px; }
.term .mode b { color: #e3b341; font-weight: 600; }
.term .mic { position: absolute; right: 0; bottom: -3px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #2c1e29; color: #b8a6b0; }
.term .mic .ico { width: 12px; height: 12px; }
.cxt .cxline { color: #fff; min-height: 20px; }
.cxt .cxline .type:empty::before { content: attr(data-hint); color: #76626d; }
.cxt .cxfoot { margin-top: 8px; padding-left: 14px; font-size: 11px; color: #a8949f; }
.cxt .cxfoot b { color: #f0e3a6; font-weight: 600; }
.cxt .cxfoot em { font-style: normal; color: #a6e3a1; }

/* Een paneel naast de agents, zoals Game, Notities, To-do, Logboek en Verbruik in de app */
.side { flex: none; display: flex; flex-direction: column; background: #1b1119; min-width: 0; }
.side .phd { flex: none; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-bottom: 1px solid #35252f; white-space: nowrap; }
.side .phd b { color: #fff; font-weight: 600; }
.side .phd .psub { display: flex; align-items: center; gap: 3px; color: #b8a6b0; font-size: 11px; }
.side .phd .psub .ico { width: 10px; height: 10px; }
.side .phd .icons { margin-left: auto; display: flex; align-items: center; gap: 10px; color: #a8949f; }
.side .phd .icons .ico { width: 12px; height: 12px; }
.side .phd .saved { font-size: 10.5px; }
.side .pbody { flex: 1; min-height: 0; overflow: hidden; padding: 12px; }
.side .pact { flex: none; display: flex; justify-content: flex-end; padding: 7px 12px; border-top: 1px solid #35252f; }
.side .go { padding: 3px 9px; border-radius: 5px; border: 1px solid #4a3644; background: #221620; color: #fff; font-size: 10.5px; }
.side .pfoot { flex: none; padding: 8px 12px; border-top: 1px solid #35252f; color: #a8949f; font-size: 10.5px; line-height: 1.4; }

.game .phd { gap: 6px; }
.game .phd .icons { gap: 8px; }
.sizes2 { display: flex; gap: 1px; padding: 2px; border-radius: 6px; background: #150d13; border: 1px solid #35252f; }
.sizes2 span { padding: 1px 5px; border-radius: 4px; color: #a8949f; font-size: 10px; }
.sizes2 span.on { background: #382833; color: #fff; }
.url { flex: none; display: flex; gap: 6px; padding: 7px 8px; }
.url span { flex: 1; min-width: 0; padding: 4px 7px; border-radius: 5px; background: #170f15; border: 1px solid #422f3c; font: 10.5px var(--mono); color: #fff; }
.url b { display: flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 5px; background: #a24f7c; color: #fff; font-weight: 500; font-size: 10.5px; white-space: nowrap; }
.url b .ico { width: 9px; height: 9px; }
.gstage { flex: 1; min-height: 0; display: grid; place-items: center; background: #150d13; }
.phone { width: 190px; height: 396px; padding: 6px; border-radius: 28px; background: #0d080b; border: 1px solid #4a3644; box-shadow: 0 0 40px -6px rgba(255, 95, 180, .35); }
.gfoot { flex: none; height: 24px; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; color: #a8949f; font-size: 10.5px; border-top: 1px solid #35252f; }
.gfoot span:last-child { font-family: var(--mono); font-size: 10px; }

/* De site die in de telefoon ontstaat: een kapsalon */
.site { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: #f7f0ea; color: #2a1f1d; font-family: var(--body); }
.site .wait { position: absolute; inset: 0; display: grid; place-items: center; background: #120b10; color: #76626d; font-size: 11px; transition: opacity .5s ease; }
.site > div:not(.wait) { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.site.p0 .wait { opacity: 0; }
.site.p1 .s1, .site.p2 .s1, .site.p2 .s2, .site.p3 .s1, .site.p3 .s2, .site.p3 .s3 { opacity: 1; transform: none; }
.site nav { display: flex; justify-content: space-between; padding: 14px 16px 0; font-size: 11px; }
.site nav b { font-family: var(--display); font-style: italic; font-size: 14px; }
.shero { margin: 12px 10px 0; padding: 44px 16px 16px; border-radius: 18px; color: #fff; background: radial-gradient(90% 70% at 70% 20%, #f6b89a, transparent 60%), radial-gradient(80% 80% at 10% 90%, #7a3b5e, transparent 70%), linear-gradient(160deg, #c47a6a, #4a2437); }
.shero .eyebrow { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.shero h4 { margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: 27px; line-height: .98; letter-spacing: -.02em; }
.shero h4 em { font-weight: 500; }
.shero .book { display: inline-block; margin-top: 14px; padding: 7px 13px; border-radius: 999px; background: #fff; color: #2a1f1d; font-size: 10.5px; font-weight: 600; }
.site .h { margin: 12px 16px 5px; font-family: var(--display); font-size: 15px; font-weight: 600; }
.site .row { display: flex; justify-content: space-between; margin: 0 16px; padding: 6px 0; border-bottom: 1px solid #e6dad0; font-size: 11px; }
.site .slots { display: flex; gap: 6px; margin: 0 16px; }
.site .slots span { padding: 5px 10px; border-radius: 999px; border: 1px solid #d9c8bb; font-size: 10.5px; }
.site .slots span.on { background: #2a1f1d; color: #fff; border-color: #2a1f1d; }

.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; display: flex; justify-content: center; align-items: center; gap: 8px; background: rgba(31, 18, 27, .72); backdrop-filter: blur(24px); border-top: 1px solid rgba(255, 255, 255, .08); }
.taskbar .start { width: 38px; height: 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px; border-radius: 6px; }
.taskbar .start i { background: #5fb3ff; border-radius: 1px; }
.taskbar .search { width: 170px; height: 32px; display: flex; align-items: center; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #bbb; font-size: 12px; }
.taskbar .app { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; }
.taskbar .app.on { background: rgba(255, 255, 255, .1); }
.taskbar .app.on::after { content: ""; position: absolute; bottom: 1px; width: 14px; height: 3px; border-radius: 3px; background: var(--pink); }
.taskbar .app img { width: 26px; }
.taskbar .folder i { width: 22px; height: 17px; border-radius: 3px; background: linear-gradient(#ffd666, #f3b31b); }
.taskbar .clock { position: absolute; right: 18px; text-align: right; color: #fff; font-size: 11px; line-height: 1.35; }

/* Tweede demo: twee agents naast elkaar, het spel ernaast */
.team { padding-top: 130px; }
.team .desk { margin-top: 56px; }
.conv p { margin-bottom: 7px; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.conv p.in { opacity: 1; transform: none; }
.conv .ask { background: #3a2a34; padding: 2px 8px; color: #fff; margin-left: -8px; }
.conv .dot::first-letter { color: #a3b56d; }
.conv .tool b { color: #fff; }
.conv .tool span { display: block; color: #a8949f; padding-left: 14px; }
.conv .hand { color: #ebc3d8; }
.conv .hand span { display: block; color: #a8949f; padding-left: 14px; }
.conv .from { color: #fff; background: rgba(16, 163, 127, .18); padding: 2px 8px; margin-left: -8px; }
.conv .spin { color: #d97757; }
.codex .conv .spin { color: #10a37f; }
.conv .done { color: #a8949f; }
.conv .art { display: flex; gap: 8px; padding-left: 14px; }
.conv .art i { width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; background: #170f15; border: 1px solid #443240; overflow: hidden; }
.conv .art i svg { width: 36px; height: 36px; }
.conv .art i.dusk { background: linear-gradient(#5e1f4a, #a8457a 60%, #ffb38a); }

/* Het spel: eerst grijze blokken, daarna de plaatjes van Codex */
.play { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: #36262f; font-family: var(--body); transition: background .8s ease; }
.play .wait { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: #120b10; color: #76626d; font-size: 11px; transition: opacity .5s ease; }
.play.p1 .wait, .play.p2 .wait { opacity: 0; }
.play.p2 { background: linear-gradient(#5e1f4a 0%, #8a36b8 45%, #e77aa5 75%, #ffb38a 100%); }
.play .sun { position: absolute; left: 50%; top: 58%; width: 90px; height: 90px; margin-left: -45px; border-radius: 50%; background: radial-gradient(circle, #ffe6a8, #ffb38a 60%, transparent 70%); opacity: 0; transition: opacity 1s ease; }
.play.p2 .sun { opacity: .9; }
.play .cl { position: absolute; left: 100%; width: 70px; height: 34px; border-radius: 8px; background: #5a4552; animation: fly 7s linear infinite; }
.play .c1 { top: 16%; }
.play .c2 { top: 40%; width: 56px; animation-duration: 9s; animation-delay: -4s; }
.play .c3 { top: 70%; width: 80px; animation-duration: 8s; animation-delay: -2s; }
.play.p2 .cl { background: none; }
.play .cl svg, .play .bd svg { width: 100%; height: 100%; display: none; }
.play.p2 .cl svg, .play.p2 .bd svg { display: block; }
.play .bd { position: absolute; left: 44px; top: 44%; width: 46px; height: 38px; border-radius: 6px; background: #76626d; animation: bob 1.6s ease-in-out infinite; z-index: 2; }
.play.p2 .bd { background: none; }
.play .score { position: absolute; top: 34px; left: 0; right: 0; text-align: center; font: 600 34px var(--display); color: #fff; opacity: 0; transition: opacity .6s ease; z-index: 2; }
.play .tap { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; font-size: 11px; color: rgba(255, 255, 255, .8); opacity: 0; z-index: 2; }
.play.p1 .score, .play.p2 .score, .play.p1 .tap, .play.p2 .tap { opacity: 1; }
@keyframes fly { to { transform: translateX(-340px); } }
@keyframes bob { 50% { transform: translateY(-16px) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .play .cl, .play .bd { animation: none; } .play .c1 { left: 20%; } .play .c2 { left: 55%; } .play .c3 { left: 35%; } }

/* Notities: de tekens van Markdown blijven zichtbaar, zoals in de app */
.notes .ntools { flex: none; display: flex; align-items: center; gap: 14px; padding: 6px 12px; border-bottom: 1px solid #35252f; color: #b8a6b0; font-size: 11px; }
.notes .ntools em { font-style: italic; font-weight: 400; }
.notes .ntools span { margin-left: auto; display: flex; gap: 10px; }
.notes .ntools .ico { width: 12px; height: 12px; }
.notes .pbody p { min-height: 8px; font-size: 12px; line-height: 1.55; color: #e9dfe5; }
.notes .pbody p i { font-style: normal; font-weight: 400; color: #76626d; }
.notes .pbody .h1 { margin-bottom: 4px; font-size: 15px; font-weight: 700; color: #fff; }
.notes .pbody .h2 { margin: 2px 0; font-size: 13px; font-weight: 700; color: #fff; }
.notes .pbody .li i { color: #cf74a5; }
.notes .pbody p.done { color: #a3b56d; }
.notes .pbody p.new { opacity: 0; transform: translateY(4px); transition: opacity .4s ease, transform .4s ease; }
.notes .pbody p.new.in { opacity: 1; transform: none; }
.notes .caret { display: inline-block; width: 1.5px; height: 13px; margin-left: 1px; vertical-align: -2px; background: #fff; animation: blink 1s steps(1) infinite; }

/* To-do: open en klaar, elk punt met zijn nummer */
.todo .add { display: flex; gap: 6px; margin-bottom: 14px; }
.todo .add span { flex: 1; padding: 6px 9px; border-radius: 6px; background: #170f15; border: 1px solid #422f3c; color: #fff; font-size: 11.5px; min-height: 29px; }
.todo .add span:empty::before { content: attr(data-hint); color: #76626d; }
.todo .add b { width: 29px; display: grid; place-items: center; border-radius: 6px; border: 1px solid #422f3c; background: #221620; color: #fff; }
.todo .klaar { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #a8949f; }
.todo .klaar b { font-weight: 400; }
.todo .klaar span:last-child { letter-spacing: 0; text-transform: none; font-size: 10.5px; }
.todo .open + .klaar { margin-top: 14px; }
.todo .item { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: 12px; color: #e9dfe5; transition: opacity .4s ease, transform .4s ease; }
.todo .item i { flex: none; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #76626d; display: grid; place-items: center; font-style: normal; font-size: 10px; color: transparent; transition: background .25s ease, border-color .25s ease, color .25s ease; }
.todo .item em { flex: none; font-style: normal; font-size: 10px; color: #a8949f; }
.todo .item span { flex: 1; }
.todo .item u { display: flex; color: #76626d; }
.todo .item u .ico { width: 11px; height: 11px; }
.todo .item.done i { background: var(--violet); border-color: var(--violet); color: #fff; }
.todo .item.done span { color: #a8949f; text-decoration: line-through; }
.todo .item.done u { visibility: hidden; }
.todo .item.new { opacity: 0; transform: translateY(-4px); }
.todo .item.gone { opacity: 0; transform: translateX(12px); }

/* Logboek: wat de agents elkaar gaven */
.logp .sum { display: flex; flex-direction: column; gap: 5px; }
.logp .sum p { font-size: 11px; color: #b8a6b0; display: flex; align-items: center; gap: 6px; }
.logp .sum .clear { margin-left: auto; font-weight: 400; color: #ddd1da; }
.logp .entry { margin-top: 10px; padding: 9px 10px; border-radius: 7px; background: #2a1c27; border: 1px solid #3e2c39; opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.logp .entry.in { opacity: 1; transform: none; }
.logp .entry .who { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #fff; font-weight: 600; }
.logp .entry .who em { font-style: normal; font-weight: 400; color: #a8949f; }
.logp .entry .who time { margin-left: auto; font-weight: 400; color: #a8949f; }
.logp .entry p { margin-top: 5px; font: 10.5px/1.5 var(--mono); color: #e9dfe5; }

/* Verbruik: de limieten van Codex, en wat dit project kostte */
.usep .cap { display: flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #a8949f; margin: 2px 0 8px; }
.usep .cap .ico { width: 11px; height: 11px; }
.usep .box { border-radius: 8px; border: 1px solid #3e2c39; background: #231722; }
.usep .sub2 { padding: 10px 12px; }
.usep .who { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 12.5px; }
.usep code { font: 400 10.5px var(--mono); color: #b8a6b0; }
.usep .who .m { margin-left: auto; display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 10.5px; color: #a8949f; }
.usep .who u { display: inline-block; width: 36px; height: 3px; border-radius: 3px; background: #4a3644; }
.usep .who u s { display: block; height: 100%; border-radius: 3px; background: #a3b56d; }
.usep .line2 { margin-top: 6px; font-size: 10.5px; line-height: 1.45; color: #a8949f; }
.usep .tabs3 { display: inline-flex; margin: 0 0 12px; border: 1px solid #3e2c39; border-radius: 6px; overflow: hidden; }
.usep .tabs3 span { padding: 4px 11px; font-size: 10.5px; color: #ddd1da; }
.usep .tabs3 span + span { border-left: 1px solid #3e2c39; }
.usep .tabs3 span.on { background: rgba(207, 116, 165, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(207, 116, 165, .5); }
.usep .pn { display: flex; align-items: baseline; gap: 8px; font-size: 11.5px; }
.usep .pn b { color: #fff; font-size: 12.5px; font-weight: 600; }
.usep .pn .tok { color: #e3a8c7; transition: color .4s ease; }
.usep .pn em { margin-left: auto; font-style: normal; color: #a8949f; font-size: 10.5px; text-align: right; }
.usep .work { margin: 6px 0 10px; color: #b8a6b0; font-size: 11px; transition: color .4s ease; }
.usep .arow { display: flex; align-items: center; gap: 7px; padding: 9px 12px; color: #fff; font-size: 11.5px; font-weight: 600; }
.usep .arow + .arow { border-top: 1px solid #3e2c39; }
.usep .arow b { margin-left: auto; font-weight: 600; transition: color .4s ease; }
.usep .pblock.live .tok, .usep .pblock.live .cct, .usep .pblock.live .work { color: #a3b56d; }

/* Inrichten: het Overzicht van de instellingen, als dialoog over het venster */
.setup { position: absolute; inset: 66px 0 44px; display: grid; place-items: center; background: rgba(14, 8, 12, .55); }
.setup .dlg { width: 860px; height: 510px; display: flex; border-radius: 10px; overflow: hidden; border: 1px solid #443240; background: #221620; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7); }
.setup nav { width: 170px; padding: 14px 8px; border-right: 1px solid #35252f; background: #1b1119; }
.setup nav b { display: block; padding: 0 8px 10px; color: #fff; font-size: 13px; }
.setup nav span { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: #ddd1da; font-size: 11.5px; }
.setup nav .ico { color: #b8a6b0; }
.setup nav span.on { background: rgba(207, 116, 165, .16); color: #fff; }
.setup nav span.on .ico { color: #e3a8c7; }
.setup .main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.setup .hd { position: relative; flex: none; padding: 14px 20px 10px; border-bottom: 1px solid #35252f; }
.setup h5 { font-size: 14px; color: #fff; font-weight: 600; }
.setup .hd p { margin-top: 2px; font-size: 11px; color: #b8a6b0; }
.setup .hd .x { position: absolute; right: 16px; top: 16px; display: flex; color: #b8a6b0; }
.setup .inner { flex: 1; min-height: 0; padding: 12px 20px; overflow: hidden; }
.setup .bar { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #ddd1da; }
.setup .bar .msg { flex: 1; transition: color .4s ease; }
.setup .bar b { padding: 4px 10px; border-radius: 5px; background: #a24f7c; color: #fff; font-weight: 500; font-size: 10.5px; }
.setup .bar em { font-style: normal; padding: 3px 9px; border-radius: 5px; border: 1px solid #4a3644; color: #fff; font-size: 10.5px; }
.setup .bar.ready .msg { color: #a3b56d; }
.setup .bar.ready b { display: none; }
.setup .with { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; color: #ddd1da; }
.setup .with .seg + span { margin-left: 6px; }
.setup .with .ico { color: #a8949f; }
.setup .seg { display: flex; border: 1px solid #443240; border-radius: 6px; overflow: hidden; }
.setup .seg span { padding: 3px 9px; color: #ddd1da; font-size: 10.5px; }
.setup .seg span + span { border-left: 1px solid #443240; }
.setup .seg span.on { background: rgba(207, 116, 165, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(207, 116, 165, .5); }
.setup .cap { margin: 14px 0 6px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #a8949f; }
.setup .list { border: 1px solid #3e2c39; border-radius: 7px; }
.setup .row { display: flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 11.5px; color: #fff; }
.setup .row + .row { border-top: 1px solid #3e2c39; }
.setup .row strong { font-weight: 600; }
.setup .row em { flex: 1; font-style: normal; color: #b8a6b0; font-family: var(--mono); font-size: 10.5px; }
.setup .row .st { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 400; background: rgba(191, 162, 240, .14); color: #bfa2f0; }
.setup .row .st.busy { background: rgba(207, 116, 165, .2); color: #ebc3d8; }
.setup .row .st.ok { background: rgba(163, 181, 109, .14); color: #a3b56d; }
.setup .shell { margin-top: 12px; height: 100px; overflow: hidden; padding: 8px 10px; border-radius: 7px; background: #170f15; border: 1px solid #3e2c39; font: 10.5px/1.55 var(--mono); color: #e9dfe5; }
.setup .shell p { opacity: 0; transition: opacity .3s ease; }
.setup .shell p.in { opacity: 1; }
.setup .shell .c { color: #a8949f; }
.setup .shell .ok { color: #a3b56d; }

/* Wolkenvlieger bij avond, als je 10 punten hebt */
.play .stars { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; background-image: radial-gradient(1.5px 1.5px at 20% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 12%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 84% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 40% 34%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 12% 46%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 58% 52%, #fff 50%, transparent 51%); }
.play.night { background: linear-gradient(#07061a 0%, #1a1348 55%, #5e1f4a 100%); }
.play.night .stars { opacity: 1; }
.play.night .sun { opacity: 0; }
.play.night .cl { opacity: .55; }

/* Voorbeeld: niet meegeschaald, zodat het ook op een telefoon te lezen is. */
.desk .example { position: absolute; z-index: 3; left: 16px; bottom: max(6px, calc(24px * var(--s, 1) - 12px)); padding: 3px 11px; border-radius: 999px; background: rgba(19, 11, 17, .78); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.5; pointer-events: none; }
@media (max-width: 640px) { .desk .example { left: 10px; font-size: 10.5px; padding: 2px 8px; } }

/* Tekenbord: een schets verschijnt lijn voor lijn, en de agent bouwt wat erop staat */
.drawp .pbody { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px; }
.drawp .tools { flex: none; display: flex; align-items: center; gap: 3px; }
.drawp .tools b { width: 24px; height: 22px; display: grid; place-items: center; border-radius: 5px; color: #b8a6b0; transition: background .2s ease, color .2s ease; }
.drawp .tools b.on { background: #382833; color: #e3a8c7; }
.drawp .tools svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drawp .tools em { margin-left: auto; display: flex; gap: 6px; color: #6e5a65; }
.drawp .tools i { flex: none; width: 13px; height: 13px; border-radius: 50%; }
.drawp .tools i.on { box-shadow: 0 0 0 1.5px #1b1119, 0 0 0 3px #cf74a5; }
.drawp .tools i.any { background: conic-gradient(#e03131, #f5c400, #2f9e44, #1c7ed6, #7048e8, #d6336c, #e03131); }
.drawp .tools u { margin-left: auto; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.drawp .tools s { display: block; border-radius: 50%; background: #a8949f; }
.drawp .tools s.on { background: #e3a8c7; }
.drawp .tools .frame { margin-left: auto; padding: 3px 9px; border-radius: 5px; border: 1px solid #422f3c; background: #170f15; color: #fff; font-size: 10.5px; }
.drawp .paper { flex: 1; min-height: 0; border-radius: 6px; background: #170f15; border: 1px solid #35252f; }
.drawp .paper svg { display: block; width: 100%; height: 100%; font-family: var(--body); }
.drawp .ink { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s ease; }
.drawp .ink.on { stroke-dashoffset: 0; }
.drawp .word { opacity: 0; transition: opacity .5s ease; }
.drawp .word.on { opacity: 1; }
.drawp .show { flex: none; display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #a8949f; }
.drawp .show b { padding: 3px 9px; border-radius: 5px; font-weight: 400; color: #fff; }
.drawp .show .cc-b { border: 1px solid #b8674f; }
.drawp .show .cx-b { border: 1px solid #1f8a6d; }
.play .startscr { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; background: rgba(40, 16, 34, .3); opacity: 0; transform: scale(.96); transition: opacity .6s ease, transform .6s ease; }
.play.start .startscr { opacity: 1; transform: none; }
.play.start .score, .play.start .tap, .play.start .bd { opacity: 0; }
.startscr b { padding: 8px 16px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 12px; font: 600 24px var(--display); color: #fff; }
.startscr .big { width: 112px; height: 90px; }
.startscr .big svg { display: block; width: 100%; height: 100%; }
.startscr i { padding: 9px 30px; border-radius: 999px; background: #fff; color: #5e1f4a; font-style: normal; font-weight: 700; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .drawp .ink, .drawp .word, .drawp .tools b, .play .startscr { transition: none; } }
