/* DAB skin for Portfolio Studio: the DAB product language (deep violet-black, DAB purple, Assistant, soft
   glass panels) over the original studio styles. Light mode lives in light.css. */
:root {
  --bg: #0b0a12;
  --panel: #110f19;
  --raised: #1a1726;
  --line: rgba(255, 255, 255, 0.1);
  --muted: #a9a3bd;
  --ink: #f4f1fb;
  --accent: #b57bff;
  --hud-cyan: #b57bff;
  --hud-violet: #7612ec;
  --hud-line: rgba(181, 123, 255, 0.28);
  --dab-grad: linear-gradient(150deg, #a04bff, #7612ec 55%, #5a0fc0);
  font-family: "Assistant", Arial, system-ui, sans-serif;
}
body {
  background: var(--bg);
}

/* One bar: the steps, with the project actions beside them (no second header). */
.studio-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline: clamp(12px, 2.5vw, 28px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.03), transparent);
  flex-shrink: 0;
}
.studio-bar .steps {
  flex: 1;
  justify-content: flex-start;
  height: 64px;
  min-height: 64px;
  border: 0;
  background: none;
}
.header-actions {
  flex-shrink: 0;
}
.step-button {
  min-width: 0;
  padding: 0 20px;
  color: var(--muted);
  font-weight: 500;
}
.step-button.active::after {
  background: var(--dab-grad);
  height: 3px;
  border-radius: 3px 3px 0 0;
}
.step-number {
  font: 700 11px/1 "Assistant", sans-serif;
  border-color: rgb(255 255 255 / 0.2);
}
.active .step-number {
  background: var(--dab-grad);
  border-color: #b57bff;
  color: #fff;
  box-shadow: 0 6px 16px -6px rgb(118 18 236 / 0.9);
}
.step-button.done .step-number {
  border-color: #7612ec;
  background: rgb(118 18 236 / 0.25);
  color: #e3ccff;
}
.quiet-button,
#language {
  border-radius: 99px;
  border-color: rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.03);
  padding: 9px 15px;
}
.quiet-button:hover {
  background: rgb(255 255 255 / 0.07);
  border-color: rgb(181 123 255 / 0.5);
}
#draftStatus::before {
  background: #3ddc97;
}

/* Editor column */
.studio-workspace {
  background: #07060d;
}
.editor-shell {
  background: linear-gradient(180deg, #13101ef5, #0b0a12f5);
  box-shadow: -20px 0 70px rgb(0 0 0 / 0.5);
}
.editor-shell::before {
  content: "DAB · CV WORLD";
  color: rgb(181 123 255 / 0.6);
  font: 600 10px/1 "Assistant", sans-serif;
  letter-spacing: 0.24em;
}
.editor {
  background: transparent;
}
.editor-heading {
  border-radius: 16px;
  border-color: var(--hud-line);
  background: linear-gradient(135deg, rgb(118 18 236 / 0.2), rgb(55 226 255 / 0.04));
  box-shadow: none;
}
.editor-heading::after {
  background: var(--dab-grad);
  box-shadow: 0 0 12px #7612ec;
}
.editor-kicker,
.preview-kicker,
.live-label {
  font-family: "Assistant", sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #c9a3ff;
}
.editor h1 {
  text-shadow: none;
  letter-spacing: -0.01em;
}
.form-section-title {
  font-family: "Assistant", sans-serif;
  font-weight: 700;
  color: #e9e3f7;
  letter-spacing: 0.12em;
}
.form-section-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b57bff;
  box-shadow: 0 0 10px #7612ec;
  display: inline-block;
  vertical-align: middle;
  margin-inline-end: 8px;
}
.preset-card,
.choice-pills button,
.color-control,
.field input:not([type="color"]):not([type="checkbox"]),
.field textarea,
.field select,
.extra-choice,
.entry-card,
.world-card,
.story-tabs button {
  background: rgb(0 0 0 / 0.28);
  border-color: rgb(255 255 255 / 0.13);
  border-radius: 14px;
  box-shadow: none;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #b57bff;
  outline: 0;
  box-shadow: 0 0 0 4px rgb(118 18 236 / 0.22);
}
.preset-card.active,
.choice-pills button.active,
.extra-choice:has(input:checked),
.world-card.active,
.story-tabs button.active {
  border-color: #b57bff;
  background: rgb(118 18 236 / 0.18);
  color: #fff;
  box-shadow: 0 0 0 1px #b57bff, 0 12px 30px -14px rgb(118 18 236 / 0.9);
}
.preset-card.active::after,
.world-card .selected-badge,
.export-checkmark {
  background: var(--dab-grad);
  color: #fff;
}
.preset-image > span,
.checklist li > span,
.checklist b,
.extra-choice input,
.showroom-angles b {
  color: #c9a3ff;
}
.extra-icon {
  background: rgb(118 18 236 / 0.2);
  color: #e3ccff;
}
.add-button {
  border-color: rgb(181 123 255 / 0.5);
  background: rgb(118 18 236 / 0.08);
  color: #e3ccff;
  border-radius: 14px;
}
.export-summary {
  border-color: rgb(181 123 255 / 0.35);
  background: linear-gradient(145deg, rgb(118 18 236 / 0.16), rgb(55 226 255 / 0.04));
  border-radius: 16px;
}
.export-download {
  border-radius: 14px;
  border-color: rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.04);
}
.export-download.primary,
.primary-button {
  border: 1px solid #c9a3ff;
  background: var(--dab-grad);
  color: #fff;
  border-radius: 99px;
  box-shadow: 0 12px 30px -12px rgb(118 18 236 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.3);
  font-weight: 600;
}
.editor-footer {
  background: #0b0a12ef;
}
.studio-toast {
  background: #1d1830;
  color: #fff;
  border: 1px solid rgb(181 123 255 / 0.45);
  box-shadow: 0 18px 50px -12px rgb(0 0 0 / 0.8);
}

/* Preview stage */
.preview {
  background: #07060d;
}
.preview::before {
  background:
    radial-gradient(ellipse at 50% 48%, #2a1450 0, #120a24 36%, #07060d 78%),
    linear-gradient(110deg, rgb(181 123 255 / 0.06) 1px, transparent 1px),
    linear-gradient(rgb(181 123 255 / 0.05) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}
.preview::after {
  content: "DAB · LIVE RENDER";
  color: rgb(181 123 255 / 0.6);
  font: 600 10px/1 "Assistant", sans-serif;
  letter-spacing: 0.24em;
}
.preview-shade {
  background:
    linear-gradient(90deg, rgb(7 6 13 / 0) 55%, rgb(7 6 13 / 0.3)),
    linear-gradient(180deg, rgb(7 6 13 / 0.27), transparent 25%, transparent 72%, rgb(7 6 13 / 0.8));
}
.view-switch {
  border-radius: 99px;
  border-color: rgb(255 255 255 / 0.12);
  background: rgb(12 10 22 / 0.6);
  box-shadow: 0 10px 30px -12px rgb(118 18 236 / 0.6);
}
.view-switch button {
  border-radius: 99px;
}
.view-switch button.active {
  color: #fff;
  background: var(--dab-grad);
}
.live-label::before {
  background: #3ddc97;
  box-shadow: 0 0 12px #3ddc97;
}
.preview-caption h2 {
  text-shadow: 0 0 22px rgb(118 18 236 / 0.4);
}
.play-button,
#exitPlay {
  border: 1px solid rgb(201 163 255 / 0.6);
  background: rgb(26 18 48 / 0.75);
  color: #f4f1fb;
  border-radius: 99px;
  backdrop-filter: blur(10px);
}
.play-button:hover {
  background: var(--dab-grad);
}

/* Character layout (step 1) */
.character-layout {
  background: radial-gradient(ellipse at 55% 65%, #2a1450, #07060d 75%);
}
.character-layout .editor-shell {
  border-color: rgb(181 123 255 / 0.28);
  border-radius: 20px;
  background: rgb(15 12 24 / 0.88);
  box-shadow: 0 30px 70px -40px rgb(118 18 236 / 0.6);
}
.character-layout .preview {
  border-color: rgb(181 123 255 / 0.22);
  border-radius: 22px;
}
.showroom-tools {
  border-color: rgb(181 123 255 / 0.28);
  border-radius: 20px;
  background: linear-gradient(160deg, rgb(26 18 48 / 0.86), rgb(12 10 20 / 0.94));
  box-shadow: 0 30px 70px -40px rgb(118 18 236 / 0.6);
}
.showroom-tools p {
  color: var(--muted);
}
.showroom-tools button {
  color: var(--ink);
  background: rgb(255 255 255 / 0.04);
  border-color: rgb(181 123 255 / 0.28);
  border-radius: 12px;
}
.showroom-tools button:hover,
.showroom-tools button[aria-pressed="true"] {
  border-color: #b57bff;
  background: rgb(118 18 236 / 0.3);
}
.showroom-divider {
  background: rgb(181 123 255 / 0.2);
}

@media (max-width: 860px) {
  .studio-bar {
    flex-wrap: wrap;
    padding-block: 6px;
    gap: 6px;
  }
  .studio-bar .steps {
    order: 2;
    width: 100%;
    height: 52px;
    min-height: 52px;
    overflow-x: auto;
  }
  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .step-button {
    padding: 0 12px;
  }
}

/* Preview only: a watermark rides along in play mode. */
.dab-watermark {
  display: none;
  position: absolute;
  z-index: 30;
  left: 50%;
  top: 14px;
  translate: -50% 0;
  padding: 7px 13px;
  border-radius: 99px;
  background: rgb(10 8 18 / 0.82);
  color: #fff;
  font: 600 12px/1 "Assistant", Arial, sans-serif;
  letter-spacing: 0.03em;
  pointer-events: none;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.3);
}
.dab-watermark b {
  color: #c9a3ff;
}
.preview.playing .dab-watermark {
  display: block;
}
/* A faint repeating stamp over the world, like the other DAB previews. */
.preview.playing .preview-shade {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='220'%3E%3Ctext x='50%25' y='50%25' text-anchor='middle' transform='rotate(-24 180 110)' font-family='Arial' font-size='22' font-weight='700' letter-spacing='6' fill='rgba(255,255,255,0.07)'%3EDAB · PREVIEW%3C/text%3E%3C/svg%3E");
  z-index: 25;
  pointer-events: none;
}
.export-download.lead {
  text-decoration: none;
  border-color: rgb(61 220 151 / 0.5);
  background: rgb(61 220 151 / 0.08);
}
.export-download.lead .download-icon {
  color: #3ddc97;
}

/* Recruiter mode: the guided tour and a prominent "read the résumé" button. */
.game-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.game-ui .game-resume,
.game-ui .game-tour {
  border-radius: 99px;
  padding: 11px 18px;
  font: 600 13.5px/1 "Assistant", Arial, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.game-ui .game-resume {
  color: #fff;
  border: 1px solid #c9a3ff;
  background: linear-gradient(150deg, #a04bff, #7612ec 55%, #5a0fc0);
  box-shadow: 0 10px 26px -10px rgb(118 18 236 / 0.9);
}
.game-ui .game-tour {
  color: #1a0b33;
  border: 1px solid #fff;
  background: #fff;
  box-shadow: 0 10px 26px -12px rgb(0 0 0 / 0.5);
}
.game-tour-banner {
  position: absolute;
  z-index: 31;
  left: 50%;
  top: 52px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 9px 16px;
  border-radius: 99px;
  background: rgb(14 10 26 / 0.88);
  border: 1px solid rgb(181 123 255 / 0.4);
  color: #fff;
  font: 500 13px/1 "Assistant", Arial, sans-serif;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px -14px rgb(118 18 236 / 0.8);
}
.game-tour-banner[hidden] {
  display: none;
}
.game-tour-banner i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4f6a;
  box-shadow: 0 0 0 0 rgb(255 79 106 / 0.6);
  animation: tourRec 1.6s infinite;
}
@keyframes tourRec {
  70% {
    box-shadow: 0 0 0 8px rgb(255 79 106 / 0);
  }
}
.tour-step {
  color: #c9a3ff;
}
.game-tour-banner .tour-stop {
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.game-ui.touring .game-controls {
  opacity: 0.35;
}
/* DAB mobile joystick: shown on any touch screen, phones and tablets alike. */
.game-stick{position:relative;width:118px;height:118px;border-radius:50%;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;background:radial-gradient(circle,#7612ec22 0 38%,transparent 39%),#140c26b3;border:1.5px solid #c084ff55;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 10px 30px #0006,inset 0 0 22px #7612ec33;transition:border-color .2s,box-shadow .2s}
.game-stick::before{content:'';position:absolute;inset:10px;border-radius:50%;border:1px dashed #ffffff1f}
.game-stick-knob{position:absolute;left:calc(50% - 27px);top:calc(50% - 27px);width:54px;height:54px;border-radius:50%;background:linear-gradient(145deg,#a35bff,#7612ec);box-shadow:0 6px 18px #7612ec88,inset 0 2px 0 #ffffff40;transition:transform .18s cubic-bezier(.3,1.4,.5,1)}
.game-stick.active{border-color:#c084ffaa;box-shadow:0 10px 30px #0006,0 0 0 6px #7612ec22,inset 0 0 26px #7612ec55}
.game-stick.active .game-stick-knob{transition:none}
.game-stick.running .game-stick-knob{background:linear-gradient(145deg,#ff7ad9,#a35bff);box-shadow:0 0 24px #ff6ad5aa,inset 0 2px 0 #ffffff40}
.game-ui .game-jump{width:68px;height:68px;border-radius:50%;background:#140c26b3;border:1.5px solid #c084ff55;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#fff;font-size:22px;line-height:1;touch-action:manipulation}
.game-ui .game-jump:active{background:#7612ec;border-color:#c084ff}
.game-ui .game-jump small{display:block;font-size:10px;margin-top:3px;opacity:.85}
@media (pointer:coarse){.game-ui .game-touch{position:absolute;bottom:max(28px,env(safe-area-inset-bottom));inset-inline:20px;display:flex;align-items:flex-end;justify-content:space-between;direction:ltr;pointer-events:none}.game-ui .game-touch>*{pointer-events:auto}.game-ui .game-controls{display:none}.game-ui .game-minimap{bottom:170px;inset-inline-start:auto;inset-inline-end:16px;width:84px;height:84px}.game-ui .game-enter{bottom:170px;left:16px;transform:none}}
@media (prefers-reduced-motion:reduce){.game-stick-knob{transition:none}}
/* Phones: a clear top stack - exit and preview stamp, then identity, then the two actions. */
@media (max-width:600px){
  .preview.playing #exitPlay{position:absolute;top:10px;left:12px;right:auto;bottom:auto;padding:7px 12px;font-size:12px;z-index:32}
  .dab-watermark{top:12px;left:auto;right:12px;translate:none;font-size:10px;padding:6px 10px;white-space:nowrap}
  .game-ui .game-top{top:52px;flex-direction:column;align-items:stretch;gap:10px}
  .game-ui .game-identity{max-width:100%}
  .game-ui .game-actions{display:flex;gap:8px}
  .game-ui .game-actions button{flex:1;padding:10px 8px;font-size:12.5px;white-space:nowrap}
  .game-ui .game-sections{top:172px}
  .game-tour-banner{top:146px;font-size:12px;gap:8px;white-space:nowrap}
  /* During the tour the banner tracks progress, so the station list steps aside. */
  .game-ui:has(.game-tour-banner:not([hidden])) .game-sections{display:none}
}
/* Character picker: shelves and portrait cards. */
.preset-tabs{display:flex;gap:6px;padding:4px;margin:0 0 14px;border-radius:99px;background:rgb(0 0 0 / .3);border:1px solid rgb(255 255 255 / .1)}
.preset-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 10px;border:0;border-radius:99px;background:none;color:var(--muted);font:600 13px/1 "Assistant",Arial,sans-serif;cursor:pointer;transition:background .2s,color .2s}
.preset-tabs button small{font-size:10px;opacity:.7;background:rgb(255 255 255 / .1);border-radius:99px;padding:3px 6px}
.preset-tabs button.active{background:var(--dab-grad);color:#fff;box-shadow:0 8px 22px -10px rgb(118 18 236 / .9)}
.preset-tabs button:focus-visible{outline:2px solid #c9a3ff;outline-offset:2px}
.preset-grid.preset-grid-pro,.preset-grid.preset-grid-dab{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.preset-grid-pro .preset-card,.preset-grid-dab .preset-card{padding:0;overflow:hidden;display:flex;flex-direction:column;text-align:center;position:relative;transition:transform .2s,box-shadow .2s}
.preset-grid-pro .preset-card:hover,.preset-grid-dab .preset-card:hover{transform:translateY(-2px)}
.preset-grid-pro .preset-image,.preset-grid-dab .preset-image{aspect-ratio:3/3.4;height:auto;background:radial-gradient(ellipse at 50% 75%,#2a1650,#0b0816 70%)}
.preset-grid-pro .preset-image,.preset-grid-dab .preset-image{overflow:hidden}
.preset-grid-pro .preset-image img,.preset-grid-dab .preset-image img{width:100%;height:100%;object-fit:cover;transform:scale(1.6);transform-origin:50% 44%}
.preset-grid-pro .preset-card strong,.preset-grid-dab .preset-card strong{display:block;padding:10px 8px 2px;font:700 14px/1.2 "Assistant",Arial,sans-serif}
.preset-grid-pro .preset-card small{display:block;padding:0 8px 10px;font:500 11px/1.2 "Assistant",Arial,sans-serif;color:var(--muted)}
.preset-grid-dab .preset-card strong{padding-bottom:10px}
@media (prefers-reduced-motion:reduce){.preset-grid-pro .preset-card,.preset-grid-dab .preset-card{transition:none}.preset-grid-pro .preset-card:hover{transform:none}}

/* ── DAB OS (the résumé app shown in the street-side panel) ── */
.os-screen{position:relative;overflow:hidden;border-radius:6px;background:radial-gradient(ellipse at 20% 0%,#2a1460 0,transparent 55%),radial-gradient(ellipse at 100% 100%,#14284d 0,transparent 50%),#09070f;color:#f3effb;font-family:"Assistant",Arial,sans-serif;font-size:20px;line-height:1.5;pointer-events:auto}
.os-shell{display:grid;grid-template-rows:auto 1fr auto;grid-template-columns:minmax(0,1fr);height:100%}
.os-main,.os-pane{min-width:0}
.os-bar{display:flex;align-items:center;gap:22px;padding:22px 34px;border-bottom:1px solid #ffffff14;background:#ffffff06}
.os-id{display:flex;align-items:center;gap:12px;white-space:nowrap}.os-id b{font-size:20px;letter-spacing:.06em;background:linear-gradient(120deg,#c9a3ff,#fff);-webkit-background-clip:text;background-clip:text;color:transparent}.os-id span{color:#b8adc9;font-size:17px}
.os-dot{width:12px;height:12px;border-radius:50%;background:#9b4dff;box-shadow:0 0 14px #9b4dff}
.os-tabs{display:flex;gap:6px;margin-inline:auto;padding:5px;border-radius:99px;background:#00000055;border:1px solid #ffffff12}
.os-tabs button{border:0;background:none;color:#cfc6dd;font:600 17px/1 "Assistant",Arial,sans-serif;padding:11px 18px;border-radius:99px;cursor:pointer;transition:background .2s,color .2s}
.os-tabs button:hover{color:#fff;background:#ffffff10}
.os-tabs button.active{color:#fff;background:linear-gradient(135deg,#a04bff,#7612ec);box-shadow:0 8px 24px -8px #7612ec}
.os-tabs button:focus-visible,.os-screen button:focus-visible,.os-screen a:focus-visible{outline:3px solid #c9a3ff;outline-offset:3px}
.os-live{font-size:14px;color:#8fe3b3;letter-spacing:.08em;white-space:nowrap}
.os-main{position:relative;overflow:hidden;padding:30px 44px}
.os-pane{height:100%;overflow:auto;scrollbar-width:thin}
.os-pane.in{animation:osIn .5s cubic-bezier(.2,.8,.2,1) both}
@keyframes osIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.os-eyebrow{margin:0 0 6px;color:#c9a3ff;font-size:15px;font-weight:600;letter-spacing:.04em}
.os-muted{color:#b3a9c4}
.os-screen h1{font-size:54px;line-height:1.05;margin:0 0 8px;font-weight:800}
.os-screen h2{font-size:36px;line-height:1.15;margin:0 0 6px;font-weight:800}
.os-screen h3{font-size:22px;margin:0 0 6px}
.os-screen p{margin:0 0 12px;color:#e2dbee}
.os-about{display:grid;grid-template-columns:150px 1fr;gap:34px;align-items:start;max-width:1080px}
.os-mono{width:150px;height:150px;border-radius:32px;display:grid;place-items:center;font-size:76px;font-weight:800;background:linear-gradient(140deg,#a04bff,#5a0fc0);box-shadow:0 20px 60px -20px #7612ec}
.os-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.os-grid article{padding:22px 24px;border-radius:20px;background:#ffffff08;border:1px solid #ffffff14;animation:osIn .5s calc(var(--i,0)*70ms) both}
.os-grid header{display:flex;align-items:baseline;gap:12px;margin-bottom:12px}.os-grid header b{color:#9b4dff;font-size:15px}
.os-chips{display:flex;flex-wrap:wrap;gap:8px}
.os-chips span{padding:7px 13px;border-radius:99px;background:#7612ec22;border:1px solid #9b4dff55;color:#eadcff;font-size:16px}
.os-timeline{position:relative;display:flex;gap:10px;margin-bottom:22px;padding-bottom:6px}
.os-timeline::before{content:'';position:absolute;inset-inline:10px;top:13px;height:2px;background:linear-gradient(90deg,#7612ec,#ffffff22)}
.os-timeline button{position:relative;flex:1;display:grid;justify-items:start;gap:4px;padding:0 4px;border:0;background:none;color:#b8adc9;cursor:pointer;text-align:start;font:inherit}
.os-timeline i{width:26px;height:26px;border-radius:50%;background:#1b1430;border:2px solid #9b4dff88;transition:transform .2s,background .2s}
.os-timeline b{font-size:15px;color:#c9a3ff}.os-timeline span{font-size:16px}
.os-timeline button.active i{background:#9b4dff;border-color:#e3ccff;transform:scale(1.15);box-shadow:0 0 18px #9b4dff}
.os-timeline button.active span{color:#fff;font-weight:700}
.os-role-wrap,.os-carousel{position:relative}
.os-role{padding:26px 30px;border-radius:24px;background:#ffffff09;border:1px solid #ffffff16;min-height:300px}
.os-role h3{color:#c9a3ff;font-weight:600}
.os-role ul{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:10px}
.os-role li{position:relative;padding-inline-start:30px;color:#ece6f7}
.os-role li::before{content:'✓';position:absolute;inset-inline-start:0;top:0;width:20px;height:20px;border-radius:6px;background:#7612ec;color:#fff;font-size:13px;display:grid;place-items:center;margin-top:5px}
.os-role.in li{animation:osIn .45s calc(120ms + var(--k)*90ms) both}
.os-role.in,.os-project.in{animation:osIn .45s both}
.os-step{display:flex;align-items:center;justify-content:space-between;margin-top:16px}
.os-step button{border:1px solid #ffffff22;background:#ffffff0c;color:#fff;font:600 16px/1 "Assistant",Arial,sans-serif;padding:12px 20px;border-radius:99px;cursor:pointer}
.os-step button:hover{background:#7612ec;border-color:#9b4dff}
.os-count{color:#b8adc9;font-size:15px;letter-spacing:.1em}
.os-project{display:grid;grid-template-columns:1.05fr 1fr;gap:30px;align-items:center}
.os-project img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:20px;box-shadow:0 24px 60px -24px #000}
.os-cta{display:inline-block;margin-top:16px;padding:12px 22px;border-radius:99px;background:linear-gradient(135deg,#a04bff,#7612ec);color:#fff;text-decoration:none;font-weight:700}
.os-contact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.os-contact a{display:grid;gap:4px;padding:22px 24px;border-radius:20px;background:#ffffff08;border:1px solid #ffffff14;color:#fff;text-decoration:none;transition:border-color .2s,background .2s}
.os-contact a:hover{border-color:#9b4dff;background:#7612ec22}.os-contact a b{color:#c9a3ff;font-size:15px}
.os-contact article{grid-column:1/-1;padding:18px 24px;border-radius:20px;background:#ffffff06}
.os-foot{display:flex;align-items:center;justify-content:space-between;padding:16px 34px;border-top:1px solid #ffffff12;color:#8f84a3;font-size:14px}
.os-exit{border:0;background:#ffffff10;color:#fff;font:600 16px/1 "Assistant",Arial,sans-serif;padding:11px 18px;border-radius:99px;cursor:pointer;display:flex;align-items:center;gap:10px}
.os-exit:hover{background:#ffffff1c}.os-exit kbd{font:12px monospace;padding:3px 6px;border-radius:5px;border:1px solid #ffffff33}
@media (prefers-reduced-motion:reduce){.os-pane.in,.os-grid article,.os-role.in,.os-role.in li,.os-project.in{animation:none}}
/* The panel's small caption stays readable above scrolled content. */
.editor-shell::before{inset-inline:0!important;padding:9px 27px 10px;top:0!important;z-index:2;background:linear-gradient(180deg,#0f0b19 70%,transparent)}
[data-theme="light"] .editor-shell::before{background:linear-gradient(180deg,#fbf9ff 70%,transparent)}
.game-ui .game-night{width:44px;height:44px;border-radius:50%;border:1px solid #ffffff55;background:#140c26cc;color:#fff;font-size:18px;cursor:pointer;backdrop-filter:blur(10px);display:grid;place-items:center}
.game-ui .game-night[aria-pressed="true"]{background:#fff;color:#1a0b33}
@media (max-width:600px){.game-ui .game-actions .game-night{flex:0 0 40px;width:40px;height:40px;padding:0}}
.night-toggle{pointer-events:auto;margin-inline-start:8px;width:40px;height:40px;border-radius:50%;border:1px solid #ffffff2a;background:#0f0b1acc;color:#fff;font-size:16px;cursor:pointer;backdrop-filter:blur(10px)}
.night-toggle[aria-pressed="true"]{background:#fff;color:#1a0b33}
.preview.playing .night-toggle{display:none}
[data-theme="light"] .night-toggle{background:#fff;border-color:#e2d8f5;color:#1a0b33}

/* ── Street-side section panel ── */
.dab-panel{position:absolute;z-index:30;top:84px;bottom:96px;inset-inline-end:18px;width:min(470px,40vw);display:flex;flex-direction:column;border-radius:22px;overflow:hidden;background:#0c0916e6;border:1px solid #9b4dff44;box-shadow:0 30px 80px -30px #000,0 0 0 1px #ffffff0a inset;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);transform:translateX(calc(var(--panel-dir,1)*-40px));opacity:0;transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .32s}
[dir=rtl] .dab-panel,.preview[dir=rtl] .dab-panel{--panel-dir:-1}
.dab-panel.open{transform:none;opacity:1}
.dab-panel[hidden]{display:none}
.dab-panel-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid #ffffff12;background:#ffffff06}
.dab-panel-room{display:flex;align-items:center;gap:8px;border:0;border-radius:99px;padding:10px 16px;background:linear-gradient(135deg,#a04bff,#7612ec);color:#fff;font:700 14px/1 "Assistant",Arial,sans-serif;cursor:pointer;box-shadow:0 8px 22px -10px #7612ec}
.dab-panel-room kbd{font:11px monospace;padding:2px 5px;border-radius:4px;background:#ffffff26}
.dab-panel-close{width:36px;height:36px;border-radius:50%;border:1px solid #ffffff22;background:#ffffff0c;color:#fff;font-size:15px;cursor:pointer}
.dab-panel-close:hover{background:#ffffff1c}
.dab-panel .os-screen{flex:1;min-height:0;border-radius:0;background:transparent}
.os-compact{font-size:15px}
.os-compact .os-bar{flex-wrap:wrap;gap:10px;padding:12px 14px}.os-compact .os-id{display:none}.os-compact .os-live{display:none}
.os-compact .os-tabs{width:100%;overflow-x:auto;justify-content:flex-start;scrollbar-width:none;margin:0}
.os-compact .os-tabs button{font-size:13px;padding:8px 12px;white-space:nowrap}
.os-compact .os-main{padding:16px 16px}
.os-compact h1{font-size:30px!important}.os-compact h2{font-size:23px!important}.os-compact h3{font-size:17px!important}
.os-compact .os-about,.os-compact .os-grid,.os-compact .os-project,.os-compact .os-contact{grid-template-columns:1fr}
.os-compact .os-mono{width:64px;height:64px;font-size:34px;border-radius:16px}
.os-compact .os-timeline{overflow-x:auto}.os-compact .os-timeline button{min-width:110px}
.os-compact .os-role{padding:18px 18px;min-height:0}
.os-compact .os-foot{padding:10px 14px}.os-compact .os-exit kbd{display:none}
.os-compact .os-chips span{font-size:13px;padding:6px 10px}
/* While the panel is open the bottom key hints and the "enter" prompt step aside. */
.preview.panel-open .game-controls,.preview.panel-open .game-enter{opacity:0;pointer-events:none}
@media (max-width:760px){.dab-panel{top:auto;bottom:0;inset-inline:0;width:auto;height:68%;border-radius:22px 22px 0 0;transform:translateY(40px)}.dab-panel.open{transform:none}}
@media (prefers-reduced-motion:reduce){.dab-panel{transition:none}}
/* Hebrew: the stations list sits on the right, so the panel opens on the left (and the reverse in English). */
.dab-panel{inset-inline-end:auto;right:18px;left:auto}
.dab-panel.side-left{left:18px;right:auto}
.dab-panel{transform:translateX(40px)}.dab-panel.side-left{transform:translateX(-40px)}.dab-panel.open{transform:none}
@media (max-width:760px){.dab-panel,.dab-panel.side-left{left:0;right:0;transform:translateY(40px)}.dab-panel.open{transform:none}}
@media (max-width:760px){.os-compact .os-timeline{margin-bottom:10px}.os-compact .os-timeline i{width:16px;height:16px}.os-compact .os-timeline::before{top:8px}.os-compact .os-timeline b{font-size:11px}.os-compact .os-timeline span{font-size:11px;line-height:1.3}.os-compact .os-timeline button{min-width:84px}.os-compact .os-main{padding:10px 12px}.os-compact .os-bar{padding:8px 10px}.os-compact .os-tabs button{padding:7px 10px;font-size:12px}.os-compact .os-role{padding:12px 14px}.os-compact .os-role li{font-size:13px}}

.dab-panel-hint{font:500 12.5px/1.3 "Assistant",Arial,sans-serif;color:#b8adc9;padding-inline-start:4px}

/* Ride cards: the same stage and frame as the character cards. */
.preset-grid-rides .preset-image img{transform:scale(1.32);transform-origin:50% 54%}
.preset-grid-rides .ride-foot img{transform:scale(1.6);transform-origin:50% 44%}
.preset-grid.preset-grid-rides{grid-template-columns:repeat(3,1fr)}
/* A roomier editor column: ride and character cards read at a glance. */
.studio-workspace{grid-template-columns:minmax(0,1fr) 480px}
.character-layout{grid-template-columns:390px minmax(0,1fr) 210px}
@media(min-width:1550px){.studio-workspace{grid-template-columns:minmax(0,1fr) 520px}.character-layout{grid-template-columns:440px minmax(0,1fr) 220px}}
@media(max-width:1100px){.studio-workspace{grid-template-columns:minmax(0,1fr) 400px}.character-layout{grid-template-columns:340px minmax(0,1fr) 170px}}
@media(max-width:1000px){.character-layout{grid-template-columns:310px minmax(0,1fr) 150px}}
@media(max-width:760px){.studio-workspace{display:flex}}

/* DAB: the studio opens on the world, full width, with one slim welcome bar (studio.js renderIntro). */
.studio-workspace.intro-mode{grid-template-columns:minmax(0,1fr)!important;padding:14px;background:#050913}
.intro-mode .editor-shell,.intro-mode .showroom-tools,.intro-mode .preview-caption{display:none!important}
.intro-mode .preview{border-radius:18px;overflow:hidden;border:1px solid rgb(118 18 236 / .35)}
.intro-card{position:absolute;z-index:6;left:50%;bottom:clamp(14px,4vh,32px);transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);display:flex;align-items:center;gap:18px;padding:10px 10px 10px 22px;border-radius:999px;background:rgb(10 8 22 / .72);-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);border:1px solid rgb(255 255 255 / .14);box-shadow:0 20px 50px -20px rgb(0 0 0 / .8);color:#fff;animation:introIn .8s cubic-bezier(.22,1,.36,1) both}
[dir=rtl] .intro-card{padding:10px 22px 10px 10px}
@keyframes introIn{from{opacity:0;transform:translate(-50%,14px)}to{opacity:1;transform:translateX(-50%)}}
.intro-card h2{margin:0;font-size:16px;line-height:1.3;font-weight:700;white-space:nowrap}
.intro-actions{display:flex;gap:8px;flex:none}
.intro-actions button{min-height:44px;padding:0 20px;border-radius:999px;font:inherit;font-size:14.5px;font-weight:700;white-space:nowrap;cursor:pointer;transition:transform .2s,background .2s}
.intro-play{border:0;color:#fff;background:linear-gradient(160deg,#9a45ff,#7612ec 55%,#5c0bc4);box-shadow:0 10px 24px -10px #7612ec}
.intro-edit{background:rgb(255 255 255 / .08);color:#fff;border:1px solid rgb(255 255 255 / .28)}
.intro-actions button:hover{transform:translateY(-1px)}.intro-edit:hover{background:rgb(255 255 255 / .14)}
/* Never over the game: on a phone the card would sit right on the joystick. */
.preview.playing .intro-card{display:none}
@media(max-width:760px){.studio-workspace.intro-mode{padding:8px}.intro-mode .preview{min-height:calc(100svh - 185px)}.intro-card,[dir=rtl] .intro-card{bottom:10px;padding:8px;border-radius:18px;width:calc(100% - 20px)}.intro-card h2{display:none}.intro-actions{flex:1}.intro-actions button{flex:1;padding:0 12px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.intro-card{animation:none}}

/* DAB editor, decluttered: one side panel on every step; the character view is a slim bar over the preview;
   optional sections fold away; résumé entries are cards you open one at a time. */
.showroom-bar{position:absolute;z-index:6;top:104px;inset-inline-start:16px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:5px;border:1px solid var(--hud-line);border-radius:16px;background:rgb(12 10 20 / .62);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.sb-group{display:flex;flex-direction:column;gap:2px}
.sb-sep{width:20px;height:1px;background:var(--hud-line)}
.showroom-bar button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:11px;background:none;color:var(--muted);cursor:pointer}
.showroom-bar button:hover{color:var(--ink);background:rgb(255 255 255 / .08)}
.showroom-bar button[aria-pressed="true"]{color:#fff;background:var(--dab-grad)}
.showroom-bar button:focus-visible{outline:2px solid #b57bff;outline-offset:2px}
.preview.playing .showroom-bar,.studio-workspace:has(.preview.playing) .showroom-bar{display:none}
.editor-heading{padding:14px 16px}
.editor-heading h1{font-size:22px}
.fold{margin-top:22px;border:1px solid rgb(255 255 255 / .13);border-radius:14px;background:rgb(0 0 0 / .2)}
.fold>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:0 16px;cursor:pointer;list-style:none;font-weight:700;color:var(--ink)}
.fold>summary::-webkit-details-marker{display:none}
.fold>summary small{margin-inline-start:auto;color:var(--muted);font-weight:500;font-size:13px}
.fold>summary::after{content:"";width:8px;height:8px;border-inline-end:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translateY(-2px);transition:transform .2s}
.fold[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
.fold>summary:focus-visible{outline:2px solid #b57bff;outline-offset:2px;border-radius:14px}
.fold>:not(summary){margin-inline:14px}
.fold>:last-child{margin-bottom:14px}
.fold .preset-grid{margin-top:4px}
.entry-card{padding:0;margin:10px 0;overflow:hidden}
.entry-top{margin:0;padding:6px 8px 6px 6px}
.entry-toggle{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 10px;border:0;background:none;color:var(--ink);font:600 15px/1.3 "Assistant",sans-serif;text-align:start;cursor:pointer;border-radius:10px}
.entry-toggle:hover{background:rgb(255 255 255 / .05)}
.entry-toggle:focus-visible{outline:2px solid #b57bff;outline-offset:-2px}
.entry-toggle .entry-title{font-size:15px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.entry-num{flex-shrink:0;font:700 11px/1 ui-monospace,Menlo,monospace;color:#b57bff}
.entry-card.open{border-color:rgb(181 123 255 / .45)}
.entry-body{padding:4px 16px 16px;border-top:1px solid rgb(255 255 255 / .08)}
[data-theme="light"] .showroom-bar{background:rgb(255 255 255 / .86);border-color:rgb(118 18 236 / .22)}
[data-theme="light"] .showroom-bar button{color:#3d4c59}
[data-theme="light"] .showroom-bar button:hover{color:#13202a;background:#f4ecff}
[data-theme="light"] .showroom-bar button[aria-pressed="true"]{color:#fff}
[data-theme="light"] .fold{background:#fff;border-color:rgb(16 30 45 / .12)}
[data-theme="light"] .fold>summary,[data-theme="light"] .entry-toggle,[data-theme="light"] .entry-toggle .entry-title{color:#13202a}
[data-theme="light"] .entry-body{border-top-color:rgb(16 30 45 / .08)}
@media (max-width:760px){.showroom-bar{display:contents}.showroom-bar .sb-sep{display:none}.showroom-bar .sb-group{position:absolute;z-index:6;top:84px;padding:4px;border:1px solid var(--hud-line);border-radius:14px;background:rgb(12 10 20 / .62);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.showroom-bar .sb-group:first-child{inset-inline-start:10px}.showroom-bar .sb-group:last-child{inset-inline-end:10px}.showroom-bar button{width:32px;height:32px}[data-theme="light"] .showroom-bar .sb-group{background:rgb(255 255 255 / .86)}}
@media (prefers-reduced-motion:reduce){.fold>summary::after{transition:none}}

/* DAB mobile editor sheet: the preview fills the screen; the editor rides over it from below with a handle. */
.sheet-handle{display:none}
@media (max-width:760px){
 .studio-workspace.sheet{display:block;position:relative;overflow:hidden;padding:0}
 .sheet .preview{position:absolute;inset:0;height:auto!important;border-radius:0}
 .sheet .editor-shell{position:absolute;z-index:20;inset-inline:0;bottom:0;border:1px solid var(--hud-line);border-bottom:0;border-radius:22px 22px 0 0;box-shadow:0 -18px 50px -10px rgb(0 0 0 / .7);overflow:clip;transition:height .32s cubic-bezier(.2,.8,.2,1)}
 .sheet.sheet-drag .editor-shell{transition:none}
 .sheet .editor-shell::before{display:none}
 .sheet .sheet-handle{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:100%;height:30px;padding:0;border:0;background:none;cursor:grab;touch-action:none}
 .sheet .sheet-handle::before{content:"";width:44px;height:5px;border-radius:99px;background:rgb(255 255 255 / .28)}
 .sheet .sheet-handle:focus-visible{outline:2px solid #b57bff;outline-offset:-4px;border-radius:14px}
 .sheet .editor-shell{display:flex;flex-direction:column}
 .sheet .editor{flex:1 1 0;min-height:0;overflow-y:auto;padding:4px 18px 18px;overscroll-behavior:contain}
 .sheet .editor-footer{flex-shrink:0}
 .sheet .preview-caption{bottom:calc(var(--sheet-h,0px) + 10px);transition:bottom .32s cubic-bezier(.2,.8,.2,1)}
 .sheet .preview-bottom{display:none}
 .sheet.sheet-full .preview-caption,.sheet.sheet-full .showroom-bar{opacity:0;pointer-events:none}
 .sheet .showroom-bar .sb-group{transition:opacity .25s}
 .sheet.sheet-drag .preview-caption{transition:none}
 .studio-workspace:has(.preview.playing) .editor-shell{display:none}
 [data-theme="light"] .sheet .sheet-handle::before{background:rgb(16 30 45 / .25)}
}
@media (max-width:760px) and (prefers-reduced-motion:reduce){.sheet .editor-shell,.sheet .preview-caption{transition:none}}
