/*
 * The November Institute — laboratory skins and apparatus.
 * While an experiment is open, app.js sets data-skin="001" … "015" on #dwni-root.
 * Each laboratory then gets its own palette, typography, backdrop and apparatus.
 * Everything is scoped to .dwe-institute.
 */

/* =====================================================================
 * Shared skin machinery
 * ===================================================================== */
.dwe-institute[data-skin] {
	--sk-bg: linear-gradient(160deg, #101629, #242044);
	--sk-ink: #F1EBDD;
	--sk-dim: #CFC7B6;
	--sk-accent: #C5A46D;
	--sk-accent2: #E2C792;
	--sk-line: rgba(197, 164, 109, .35);
	--sk-panel: rgba(16, 22, 41, .55);
	--sk-btn-ink: #101629;
	--sk-display: var(--ni-serif);
	--ni-gold: var(--sk-accent);
	--ni-gold-hi: var(--sk-accent2);
	--ni-ivory: var(--sk-ink);
	--ni-ivory-dim: var(--sk-dim);
	background: var(--sk-bg);
	color: var(--sk-ink);
	transition: background .8s ease;
}
.dwe-institute[data-skin]::before { border-color: var(--sk-line); box-shadow: none; }
.dwe-institute[data-skin] .dwni-particles { display: none; }
.dwe-institute[data-skin] .dwni-topbar,
.dwe-institute[data-skin] .dwni-exp-head { border-bottom-color: var(--sk-line); }
.dwe-institute[data-skin] .dwni-topbar__name,
.dwe-institute[data-skin] .dwni-exp-head__title,
.dwe-institute[data-skin] h2,
.dwe-institute[data-skin] h3,
.dwe-institute[data-skin] .dwni-story,
.dwe-institute[data-skin] .dwni-q__text,
.dwe-institute[data-skin] .dwni-stat b,
.dwe-institute[data-skin] .dwni-result__score { font-family: var(--sk-display); color: inherit; }
.dwe-institute[data-skin] .dwni-result__score,
.dwe-institute[data-skin] .dwni-stat b { color: var(--sk-accent2); }
.dwe-institute[data-skin] .dwni-btn { color: var(--sk-btn-ink); background: linear-gradient(180deg, var(--sk-accent2), var(--sk-accent)); border-color: var(--sk-accent2); box-shadow: 0 6px 22px rgba(0, 0, 0, .22); }
.dwe-institute[data-skin] .dwni-btn:hover { color: var(--sk-btn-ink); }
.dwe-institute[data-skin] .dwni-btn--ghost,
.dwe-institute[data-skin] .dwni-btn--ghost:hover { color: var(--sk-ink); background: transparent; border-color: var(--sk-line); box-shadow: none; }
.dwe-institute[data-skin] .dwni-btn--ghost:hover { background: var(--sk-panel); }
.dwe-institute[data-skin] .dwni-btn--danger { color: var(--sk-ink); background: transparent; border-color: #e7a08c; box-shadow: none; }
.dwe-institute[data-skin] .dwni-link { color: var(--sk-accent2); }
.dwe-institute[data-skin] .dwni-option,
.dwe-institute[data-skin] .dwni-stat,
.dwe-institute[data-skin] .dwni-panel,
.dwe-institute[data-skin] .dwni-explain,
.dwe-institute[data-skin] .dwni-transcript { background: var(--sk-panel); border-color: var(--sk-line); color: var(--sk-ink); }
.dwe-institute[data-skin] .dwni-option:hover { border-color: var(--sk-accent); }
.dwe-institute[data-skin] .dwni-steps span { border-color: var(--sk-line); }
.dwe-institute[data-skin] .dwni-timer { background: var(--sk-panel); }
.dwe-institute[data-skin] .dwni-timer i { background: linear-gradient(90deg, var(--sk-accent), var(--sk-accent2)); }
.dwe-institute[data-skin] input[type="text"],
.dwe-institute[data-skin] textarea { color: var(--sk-ink); background: var(--sk-panel); border-color: var(--sk-line); }
.dwe-institute[data-skin] input[type="text"]::placeholder { color: var(--sk-dim); opacity: .7; }
.dwe-institute[data-skin] .dwni-intro__art svg { filter: drop-shadow(0 0 30px var(--sk-line)); }
.dwe-institute[data-skin] .dwni-notice { border-color: var(--sk-line); }

/* Sliders and star ratings (shared widgets) */
.dwe-institute .dwni-range { display: flex; align-items: center; gap: 16px; max-width: 560px; }
.dwe-institute .dwni-range output { min-width: 2ch; font-family: var(--ni-serif); font-size: 34px; color: var(--ni-gold-hi); text-align: center; }
.dwe-institute input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer; --fill: 50%; }
.dwe-institute input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--ni-gold) var(--fill), rgba(255, 255, 255, .14) var(--fill)); }
.dwe-institute input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.dwe-institute input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--ni-gold); }
.dwe-institute input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--ni-gold-hi); border: 3px solid rgba(0, 0, 0, .35); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.dwe-institute input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ni-gold-hi); border: 3px solid rgba(0, 0, 0, .35); }
.dwe-institute input[type="range"]:focus-visible { outline: 3px solid var(--ni-gold-hi); outline-offset: 4px; border-radius: 8px; }
.dwe-institute .dwni-starrate { display: flex; gap: 10px; }
.dwe-institute .dwni-starrate button { width: 58px; height: 58px; padding: 6px; margin: 0; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; color: var(--ni-ivory-dim); }
.dwe-institute .dwni-starrate svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; transition: fill .2s, transform .25s; }
.dwe-institute .dwni-starrate button.is-lit { color: var(--ni-gold-hi); }
.dwe-institute .dwni-starrate button.is-lit svg { fill: currentColor; transform: scale(1.08); filter: drop-shadow(0 0 8px currentColor); }
.dwe-institute .dwni-starrate button:focus-visible { outline: 2px solid var(--ni-gold-hi); }
.dwe-institute .dwni-exitbtn { margin-left: auto; }
.dwe-institute .is-held { transform: scale(.97); }

/* =====================================================================
 * 001 · The Laboratory of Attention — bottle-green baize, brass lenses
 * ===================================================================== */
.dwe-institute[data-skin="001"] {
	--sk-bg: radial-gradient(900px 500px at 80% -10%, rgba(201, 164, 90, .18), transparent 60%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 5px), linear-gradient(170deg, #0d1d16 0%, #10281d 60%, #08130e 100%);
	--sk-accent: #C9A45A; --sk-accent2: #EBCB86; --sk-line: rgba(201, 164, 90, .38); --sk-panel: rgba(4, 14, 9, .55); --sk-btn-ink: #0c1a12; --sk-dim: #b9c4b3;
}
[data-skin="001"] .dwni-intro__art svg { border-radius: 50%; box-shadow: 0 0 0 10px #2a2416, 0 0 0 13px #C9A45A, 0 0 60px rgba(235, 203, 134, .25); }
.dwe-institute .ni1-intro { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; }
.dwe-institute .ni1-intro__lamp { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #fff3c4 0, #f0c56a 25%, rgba(240, 197, 106, .15) 60%, transparent 70%); animation: ni1-flicker 3s ease-in-out infinite; }
@keyframes ni1-flicker { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } 70% { opacity: .82; } }
.dwe-institute .ni1-hud { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-bottom: 10px; }
.dwe-institute .ni1-count { font-family: var(--ni-serif); font-size: 22px; color: var(--ni-gold-hi); }
.dwe-institute .ni1-timer .dwni-timer { margin: 0; }
.dwe-institute .ni1-dark { position: relative; border-radius: 18px; overflow: hidden; touch-action: none; cursor: none; outline-offset: 4px; border: 8px solid #2a2416; box-shadow: 0 0 0 2px #C9A45A, 0 20px 50px rgba(0, 0, 0, .5); --x: 50%; --y: 50%; --r: 110px; }
.dwe-institute .ni1-dark:focus-visible { outline: 3px solid var(--ni-gold-hi); }
.dwe-institute .ni1-scene svg { display: block; width: 100%; height: auto; }
.dwe-institute .ni1-shade { position: absolute; inset: 0; background: radial-gradient(circle var(--r) at var(--x) var(--y), rgba(255, 226, 160, .10) 0, rgba(0, 0, 0, 0) 45%, rgba(3, 7, 5, .96) 80%, rgba(2, 5, 3, .99) 100%); transition: background .6s; }
.dwe-institute .ni1-dark.is-lit .ni1-shade { background: rgba(2, 5, 3, .25); }
.dwe-institute .ni1-ring { position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(235, 203, 134, .35), 0 0 0 1px rgba(0, 0, 0, .3); pointer-events: none; }
.dwe-institute .ni1-dark.is-lit .ni1-ring { opacity: 0; }
.dwe-institute .ni1-moth { position: absolute; width: 5.2%; min-width: 30px; transform: translate(-50%, -50%); pointer-events: none; animation: ni1-flutter 1.6s ease-in-out infinite; animation-delay: var(--d); }
.dwe-institute .ni1-moth svg { display: block; width: 100%; height: auto; }
@keyframes ni1-flutter { 0%, 100% { transform: translate(-50%, -50%) scaleX(1); } 50% { transform: translate(-50%, -52%) scaleX(.82); } }
.dwe-institute .ni1-moth.is-caught { animation: ni1-away 1.1s ease-in forwards; }
@keyframes ni1-away { to { transform: translate(40%, -260%) rotate(25deg) scale(.5); opacity: 0; } }
.dwe-institute .ni1-moth.is-missed { animation: none; filter: drop-shadow(0 0 6px #EBCB86); z-index: 3; }
.dwe-institute .ni1-help { margin-top: 10px; }
.dwe-institute .ni1-viewer { border-radius: 16px; padding: 10px; background: linear-gradient(180deg, #2a2416, #18140c); box-shadow: 0 0 0 2px #C9A45A, 0 18px 40px rgba(0, 0, 0, .45); }
.dwe-institute .ni1-shelf { position: relative; aspect-ratio: 800 / 440; border-radius: 10px; overflow: hidden; background: #6f6a60; }
.dwe-institute .ni1-v, .dwe-institute .ni1-gap { position: absolute; inset: 0; visibility: hidden; }
.dwe-institute .ni1-v svg { display: block; width: 100%; height: 100%; }
.dwe-institute .ni1-gap { background: #6f6a60; }
.dwe-institute .ni1-shelf[data-show="a"] .ni1-v--a, .dwe-institute .ni1-shelf[data-show="b"] .ni1-v--b, .dwe-institute .ni1-shelf[data-show="gap"] .ni1-gap { visibility: visible; }
.dwe-institute .ni1-cell { position: absolute; width: 18.75%; height: 30%; margin: 0; padding: 0; border: 2px solid transparent; border-radius: 12px; background: transparent; cursor: crosshair; z-index: 2; }
.dwe-institute .ni1-cell:hover, .dwe-institute .ni1-cell:focus-visible { border-color: rgba(235, 203, 134, .55); outline: none; }
.dwe-institute .ni1-cell.is-wrong { animation: ni1-no .45s; border-color: #e7a08c; }
@keyframes ni1-no { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.dwe-institute .ni1-cell.is-correct { border-color: #8FD3A8; box-shadow: 0 0 0 4px rgba(143, 211, 168, .3); }
.dwe-institute .ni1-cell.is-missed { border-color: #EBCB86; border-style: dashed; }
.dwe-institute .ni1-flickfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
[data-skin="001"] .dwni-stream { border-radius: 50%; width: min(420px, 90%); height: auto; aspect-ratio: 1; margin: 0 auto; border: 12px solid #2a2416; box-shadow: 0 0 0 3px #C9A45A, inset 0 0 60px rgba(0, 0, 0, .7), 0 20px 50px rgba(0, 0, 0, .5); background: radial-gradient(circle, #1a3326 0, #08130e 72%); }

/* =====================================================================
 * 002 · Department of Imaginative Studies — watercolour night paper
 * ===================================================================== */
.dwe-institute[data-skin="002"] {
	--sk-bg: radial-gradient(520px 340px at 12% 18%, rgba(141, 116, 214, .32), transparent 70%), radial-gradient(600px 380px at 88% 80%, rgba(76, 168, 170, .22), transparent 70%), radial-gradient(400px 300px at 70% 10%, rgba(242, 160, 190, .14), transparent 70%), linear-gradient(170deg, #1b1f45 0%, #252156 50%, #151634 100%);
	--sk-accent: #e7c7ea; --sk-accent2: #f6e3f2; --sk-line: rgba(231, 199, 234, .35); --sk-panel: rgba(255, 255, 255, .06); --sk-btn-ink: #23204b; --sk-dim: #cbc6e6;
	--sk-display: "Cormorant", "Cormorant Garamond", Georgia, serif;
}
[data-skin="002"] .dwni-btn { border-radius: 14px 4px 14px 4px; }
[data-skin="002"] h2, [data-skin="002"] .dwni-exp-head__title { font-style: italic; }
.dwe-institute .ni2-doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; perspective: 900px; }
.dwe-institute .ni2-door { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; margin: 0; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }
.dwe-institute .ni2-door__frame { position: relative; display: block; width: 100%; aspect-ratio: 3 / 5; border-radius: 120px 120px 6px 6px; overflow: hidden; border: 4px solid #e7c7ea; box-shadow: 0 0 0 6px rgba(231, 199, 234, .12), 0 18px 40px rgba(0, 0, 0, .4); }
.dwe-institute .ni2-door__glow { position: absolute; inset: 0; }
.dwe-institute .ni2-door__glow svg { width: 100%; height: 100%; }
.dwe-institute .ni2-door__leaf { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .2), transparent 30%), var(--door); transform-origin: left center; transition: transform 1.2s cubic-bezier(.3, .7, .2, 1); border-right: 2px solid rgba(255, 255, 255, .1); }
.dwe-institute .ni2-door__leaf::before { content: ""; position: absolute; inset: 12% 14% 50%; border: 2px solid rgba(255, 255, 255, .22); border-radius: 80px 80px 4px 4px; }
.dwe-institute .ni2-door__leaf::after { content: ""; position: absolute; inset: 56% 14% 8%; border: 2px solid rgba(255, 255, 255, .22); border-radius: 4px; }
.dwe-institute .ni2-door__leaf i { position: absolute; right: 12%; top: 54%; width: 12px; height: 12px; border-radius: 50%; background: #f6e3f2; box-shadow: 0 0 10px #f6e3f2; }
.dwe-institute .ni2-door:hover .ni2-door__leaf, .dwe-institute .ni2-door:focus-visible .ni2-door__leaf { transform: rotateY(-22deg); }
.dwe-institute .ni2-door.is-open .ni2-door__leaf { transform: rotateY(-100deg); }
.dwe-institute .ni2-door:focus-visible { outline: none; }
.dwe-institute .ni2-door:focus-visible .ni2-door__frame { outline: 3px solid #f6e3f2; outline-offset: 4px; }
.dwe-institute .ni2-door__label { font-family: var(--ni-serif); font-style: italic; font-size: 19px; text-align: center; }
.dwe-institute .ni2-peek { border-radius: 18px; overflow: hidden; max-height: 220px; margin-bottom: 16px; }
.dwe-institute .ni2-peek svg { display: block; width: 100%; height: 220px; }
.dwe-institute .ni2-studio { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 20px; align-items: start; }
.dwe-institute .ni2-canvas { position: relative; aspect-ratio: 5 / 3; border-radius: 18px; overflow: hidden; touch-action: none; box-shadow: 0 0 0 3px rgba(231, 199, 234, .5), 0 0 0 9px rgba(231, 199, 234, .08), 0 20px 50px rgba(0, 0, 0, .45); }
.dwe-institute .ni2-canvas > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dwe-institute .ni2-piece { position: absolute; width: 15%; aspect-ratio: 1; padding: 0; margin: 0; border: 2px dashed transparent; border-radius: 50%; background: transparent; cursor: grab; transform: translate(-50%, -50%) scale(var(--s, 1)) rotate(var(--rot, 0deg)); touch-action: none; transition: border-color .2s; }
.dwe-institute .ni2-piece svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); pointer-events: none; }
.dwe-institute .ni2-piece.is-sel { border-color: rgba(246, 227, 242, .8); }
.dwe-institute .ni2-piece.is-drag { cursor: grabbing; }
.dwe-institute .ni2-piece:focus-visible { outline: none; border-color: #fff; border-style: solid; }
.dwe-institute .ni2-piece.is-new { animation: ni2-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes ni2-pop { from { transform: translate(-50%, -50%) scale(.1); opacity: 0; } }
.dwe-institute .ni2-piece.is-chosen svg { filter: drop-shadow(0 0 14px #f6e3f2) drop-shadow(0 0 30px rgba(246, 227, 242, .6)); }
.dwe-institute .ni2-canvas--still .ni2-piece { cursor: default; }
.dwe-institute .ni2-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.dwe-institute .ni2-tools__name { flex: 1 1 140px; font-family: var(--ni-serif); font-style: italic; font-size: 19px; }
.dwe-institute .ni2-tray { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(231, 199, 234, .3); }
.dwe-institute .ni2-tray__title { font-family: var(--ni-serif); font-size: 22px; margin: 0 0 10px; }
.dwe-institute .ni2-tray__title span { font-family: var(--ni-sans); font-size: 13px; color: var(--sk-dim); }
.dwe-institute .ni2-tray__grid, .dwe-institute .ni2-picklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dwe-institute .ni2-picklist { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-top: 14px; }
.dwe-institute .ni2-frag { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; margin: 0; border: 1px solid rgba(231, 199, 234, .25); border-radius: 12px; background: rgba(255, 255, 255, .04); color: inherit; font: inherit; font-size: 12px; line-height: 1.2; cursor: pointer; transition: transform .2s, background .2s; }
.dwe-institute .ni2-frag svg { width: 44px; height: 44px; }
.dwe-institute .ni2-frag:hover:not([disabled]) { transform: translateY(-2px); background: rgba(255, 255, 255, .1); }
.dwe-institute .ni2-frag[disabled] { opacity: .4; cursor: not-allowed; }
.dwe-institute .ni2-tray__help { font-size: 13px; margin-top: 10px; }
.dwe-institute .ni2-pickwrap, .dwe-institute .ni2-final { max-width: 760px; }
.dwe-institute .ni2-final { margin-bottom: 14px; }
.dwe-institute .ni2-shape { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 30px; align-items: center; }
.dwe-institute .ni2-shape__obj { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(246, 227, 242, .14), transparent 70%); }
.dwe-institute .ni2-shape__obj svg { width: 72%; height: 72%; transition: filter .3s; }
.dwe-institute .ni2-dial { margin: 0 0 16px; max-width: 460px; }
.dwe-institute .ni2-dial label { display: block; font-family: var(--ni-serif); font-size: 20px; margin-bottom: 2px; }

/* =====================================================================
 * 003 · The Laboratory of Expectation — red velvet theatre
 * ===================================================================== */
.dwe-institute[data-skin="003"] {
	--sk-bg: radial-gradient(700px 300px at 50% 110%, rgba(255, 196, 100, .22), transparent 70%), linear-gradient(90deg, #3b0a12 0, #6d1420 2%, #3b0a12 4%, transparent 9%, transparent 91%, #3b0a12 96%, #6d1420 98%, #3b0a12 100%), linear-gradient(180deg, #24070c 0%, #1a0508 100%);
	--sk-accent: #E3B656; --sk-accent2: #F6D98D; --sk-line: rgba(227, 182, 86, .4); --sk-panel: rgba(30, 4, 8, .6); --sk-btn-ink: #2a0a10; --sk-dim: #e6c9c0;
	--sk-display: "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
}
[data-skin="003"]::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: repeating-linear-gradient(90deg, #6d1420 0 26px, #8a1c2a 26px 52px); border-bottom: 3px solid #E3B656; border-radius: 22px 22px 60% 60% / 22px 22px 18px 18px; pointer-events: none; z-index: 1; }
[data-skin="003"] .dwni-stage { position: relative; z-index: 2; }
.dwe-institute[data-skin="003"] { padding-top: calc(clamp(18px, 3vw, 40px) + 18px); }
[data-skin="003"] .dwni-exp-head__title { letter-spacing: .04em; }
.dwe-institute .ni3-stage { position: relative; height: 300px; max-width: 720px; margin: 10px auto 0; --speed: 600ms; }
.dwe-institute .ni3-cloth { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; border-radius: 50% / 30%; background: radial-gradient(ellipse at 50% 30%, #2f6a4a, #163a28 70%); box-shadow: 0 -2px 0 #E3B656 inset, 0 20px 40px rgba(0, 0, 0, .5); }
.dwe-institute .ni3-cup { position: absolute; bottom: 52px; left: calc(18% + var(--slot) * 32%); width: 120px; height: 132px; margin-left: -60px; padding: 0; border: 0; background: none; cursor: pointer; transition: left var(--speed) cubic-bezier(.45, 0, .2, 1), transform .45s ease, bottom .45s ease; z-index: 2; }
.dwe-institute .ni3-cup svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .45)); }
.dwe-institute .ni3-cup[disabled] { cursor: default; }
.dwe-institute .ni3-cup.is-up { bottom: 120px; }
.dwe-institute .ni3-cup.is-arc { animation: ni3-arc var(--speed) ease-in-out; z-index: 3; }
.dwe-institute .ni3-cup.is-arc-low { animation: ni3-arclow var(--speed) ease-in-out; }
@keyframes ni3-arc { 50% { transform: translateY(-38px) scale(1.04); } }
@keyframes ni3-arclow { 50% { transform: translateY(14px) scale(.96); } }
.dwe-institute .ni3-cup.is-swap svg { filter: drop-shadow(0 0 10px #F6D98D); }
.dwe-institute .ni3-cup:not([disabled]):hover svg, .dwe-institute .ni3-cup:focus-visible svg { filter: drop-shadow(0 0 14px #F6D98D); }
.dwe-institute .ni3-cup:focus-visible { outline: none; }
.dwe-institute .ni3-cup.is-picked svg { filter: drop-shadow(0 0 18px #fff); }
.dwe-institute .ni3-pearl { position: absolute; bottom: 62px; left: calc(18% + var(--slot) * 32%); width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e8e2f0 40%, #a9a0b8); box-shadow: 0 0 18px rgba(255, 255, 255, .55); z-index: 1; transition: left var(--speed) cubic-bezier(.45, 0, .2, 1); }
.dwe-institute .ni3-prompter { position: absolute; right: 0; top: 0; display: flex; align-items: flex-start; gap: 10px; opacity: 0; transform: translateX(40px); transition: opacity .5s, transform .5s; pointer-events: none; z-index: 4; }
.dwe-institute .ni3-prompter.is-on { opacity: 1; transform: none; }
.dwe-institute .ni3-prompter__head { order: 2; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f0d0b4, #b88a6a); box-shadow: inset -6px -4px 0 rgba(0, 0, 0, .15), 0 0 0 4px #2a0a10; position: relative; }
.dwe-institute .ni3-prompter__head::after { content: ""; position: absolute; left: -8px; right: -8px; top: -12px; height: 24px; border-radius: 50% 50% 4px 4px; background: #1a0508; }
.dwe-institute .ni3-bubble { order: 1; max-width: 230px; padding: 10px 14px; border-radius: 16px 16px 2px 16px; background: #fbf3df; color: #2a0a10; font-family: var(--ni-serif); font-style: italic; font-size: 18px; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.dwe-institute .ni3-msg { font-family: var(--ni-serif); font-size: 21px; min-height: 2.6em; max-width: 680px; margin: 14px auto 0; }
.dwe-institute .ni3-colour { text-align: center; }
.dwe-institute .ni3-card { position: relative; max-width: 560px; margin: 10px auto 22px; padding: 46px 20px; border-radius: 14px; background: #1a0508; border: 3px double #E3B656; box-shadow: 0 0 60px rgba(255, 196, 100, .12), inset 0 0 40px rgba(0, 0, 0, .6); }
.dwe-institute .ni3-word { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: clamp(52px, 9vw, 92px); letter-spacing: .06em; text-transform: uppercase; line-height: 1; min-height: 1.1em; }
.dwe-institute .ni3-whisper { position: absolute; right: 12px; bottom: -18px; padding: 6px 14px; border-radius: 14px; background: #fbf3df; color: #2a0a10; font-family: var(--ni-serif); font-style: italic; font-size: 20px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.dwe-institute .ni3-whisper.is-on { opacity: 1; transform: none; }
.dwe-institute .ni3-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 620px; margin: 0 auto; }
.dwe-institute .ni3-key { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; margin: 0; border: 1px solid rgba(227, 182, 86, .5); border-radius: 10px 10px 2px 2px; background: linear-gradient(180deg, #3b0a12, #24070c); color: #fbf3df; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 0 #12030a; transition: transform .1s, box-shadow .1s; }
.dwe-institute .ni3-key:active { transform: translateY(4px); box-shadow: 0 2px 0 #12030a; }
.dwe-institute .ni3-curtain-intro, .dwe-institute .ni3-curtaincall { max-width: 720px; margin: 0 auto; text-align: center; }

/* =====================================================================
 * 004 · The Memory Vault — brushed steel, rivets, cold light
 * ===================================================================== */
.dwe-institute[data-skin="004"] {
	--sk-bg: radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .16) 2px, transparent 3px) 0 0 / 120px 120px, repeating-linear-gradient(90deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 3px), linear-gradient(170deg, #252c37 0%, #1a2029 60%, #12161d 100%);
	--sk-accent: #9fb0c8; --sk-accent2: #d6e0ee; --sk-line: rgba(159, 176, 200, .4); --sk-panel: rgba(10, 14, 20, .55); --sk-btn-ink: #12161d; --sk-dim: #b3bccb;
	--sk-display: "Rockwell", "Roboto Slab", "Courier New", Georgia, serif;
}
[data-skin="004"] .dwni-btn { border-radius: 6px; letter-spacing: .2em; }
[data-skin="004"] .dwni-exp-head__title { text-transform: uppercase; letter-spacing: .08em; font-size: 22px; }
.dwe-institute .ni4-hud { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-family: "Courier New", monospace; font-size: 18px; letter-spacing: .1em; color: #d6e0ee; }
.dwe-institute .ni4-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 520px; margin: 0 auto; perspective: 900px; }
.dwe-institute .ni4-card { aspect-ratio: 1; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; }
.dwe-institute .ni4-card__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3, .7, .3, 1); }
.dwe-institute .ni4-card.is-up .ni4-card__in, .dwe-institute .ni4-card.is-matched .ni4-card__in { transform: rotateY(180deg); }
.dwe-institute .ni4-card__back, .dwe-institute .ni4-card__face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; backface-visibility: hidden; }
.dwe-institute .ni4-card__back { background: radial-gradient(circle at 10px 10px, #d6e0ee 2px, transparent 3px) 0 0 / calc(100% - 14px) calc(100% - 14px) no-repeat, radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #d6e0ee 2px, transparent 3px), linear-gradient(145deg, #5b6778, #39424f); border: 2px solid #8d9bb0; box-shadow: inset 0 0 0 4px #2a3240, 0 6px 14px rgba(0, 0, 0, .4); }
.dwe-institute .ni4-card__back svg { width: 56%; height: 56%; }
.dwe-institute .ni4-card__face { transform: rotateY(180deg); flex-direction: column; background: linear-gradient(180deg, #e8edf3, #c9d2de); border: 2px solid #8d9bb0; color: #1a2029; padding: 6px; text-align: center; }
.dwe-institute .ni4-card__face svg { width: 58%; height: 58%; }
.dwe-institute .ni4-card__face small { font-size: 12px; line-height: 1.15; }
.dwe-institute .ni4-card.is-matched .ni4-card__face { box-shadow: 0 0 0 3px #8FD3A8, 0 0 18px rgba(143, 211, 168, .4); }
.dwe-institute .ni4-card:focus-visible { outline: 3px solid #d6e0ee; outline-offset: 3px; border-radius: 10px; }
.dwe-institute .ni4-plate { display: flex; justify-content: center; gap: 12px; margin: 20px auto; padding: 22px; max-width: 520px; border-radius: 10px; background: linear-gradient(180deg, #c9a45a, #8a6a2f); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 12px 30px rgba(0, 0, 0, .5); }
.dwe-institute .ni4-plate span { display: grid; place-items: center; width: 64px; height: 84px; border-radius: 6px; background: #12161d; color: #ffd98a; font-family: "Courier New", monospace; font-size: 54px; font-weight: 700; text-shadow: 0 0 14px rgba(255, 200, 100, .8); }
.dwe-institute .ni4-dialscreen { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.dwe-institute .ni4-door { position: relative; padding: 24px; border-radius: 50%; background: radial-gradient(circle, #3a4456 0, #252c37 60%, #1a2029 61%, #39424f 63%, #252c37 70%); box-shadow: 0 0 0 6px #56627a, 0 20px 50px rgba(0, 0, 0, .55); transition: transform 1.4s cubic-bezier(.3, .7, .2, 1); transform-origin: left center; max-width: 340px; margin: 0 auto; }
.dwe-institute .ni4-door.is-open { transform: perspective(900px) rotateY(-55deg); }
.dwe-institute .ni4-dialwrap { position: relative; }
.dwe-institute .ni4-dial { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; transition: transform .25s ease; border-radius: 50%; }
.dwe-institute .ni4-dial:focus-visible { outline: 3px solid #d6e0ee; outline-offset: 6px; }
.dwe-institute .ni4-pointer { position: absolute; left: 50%; top: -14px; width: 0; height: 0; margin-left: -12px; border: 12px solid transparent; border-top: 20px solid #ffd98a; z-index: 2; filter: drop-shadow(0 0 6px rgba(255, 217, 138, .7)); }
.dwe-institute .ni4-slots { display: flex; gap: 10px; margin: 14px 0; }
.dwe-institute .ni4-slots span { display: grid; place-items: center; width: 48px; height: 60px; border-radius: 6px; background: #12161d; border: 2px solid #56627a; font-family: "Courier New", monospace; font-size: 32px; color: #d6e0ee; }
.dwe-institute .ni4-slots span.is-set { border-color: #9fb0c8; }
.dwe-institute .ni4-slots span.is-ok { border-color: #8FD3A8; color: #8FD3A8; }
.dwe-institute .ni4-slots span.is-bad { border-color: #e7a08c; color: #e7a08c; }
.dwe-institute .ni4-shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 14px 12px 22px; margin: 12px 0; border-radius: 8px; background: linear-gradient(180deg, transparent 78%, #56627a 78%, #3a4456 86%, transparent 86%), linear-gradient(180deg, #2a3240, #1a2029); box-shadow: inset 0 0 0 2px #56627a; }
.dwe-institute .ni4-slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 130px; padding: 6px 4px 16px; margin: 0; border: 2px dashed rgba(159, 176, 200, .35); border-radius: 8px; background: transparent; color: inherit; font: inherit; }
.dwe-institute button.ni4-slot { cursor: pointer; }
.dwe-institute button.ni4-slot:hover, .dwe-institute button.ni4-slot:focus-visible { border-color: #d6e0ee; outline: none; background: rgba(214, 224, 238, .06); }
.dwe-institute .ni4-slot.is-full { border-style: solid; border-color: rgba(159, 176, 200, .5); }
.dwe-institute .ni4-slot.is-ok { border-color: #8FD3A8; box-shadow: 0 0 0 2px rgba(143, 211, 168, .35); }
.dwe-institute .ni4-slot.is-bad { border-color: #e7a08c; }
.dwe-institute .ni4-slot b { position: absolute; bottom: -2px; font-family: "Courier New", monospace; font-size: 12px; color: #9fb0c8; }
.dwe-institute .ni4-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; line-height: 1.15; text-align: center; color: #d6e0ee; }
.dwe-institute .ni4-item svg { width: 56px; height: 56px; }
.dwe-institute .ni4-tray { display: flex; flex-wrap: wrap; gap: 10px; min-height: 100px; padding: 12px; border-radius: 10px; background: rgba(10, 14, 20, .55); border: 1px solid rgba(159, 176, 200, .3); }
.dwe-institute .ni4-item--tray { width: 100px; padding: 8px 4px; margin: 0; border: 1px solid rgba(159, 176, 200, .4); border-radius: 8px; background: #252c37; cursor: pointer; font: inherit; font-size: 12px; }
.dwe-institute .ni4-item--tray.is-picked { border-color: #ffd98a; box-shadow: 0 0 0 3px rgba(255, 217, 138, .35); transform: translateY(-3px); }

/* =====================================================================
 * 005 · The Department of Absorption — a single candle
 * ===================================================================== */
.dwe-institute[data-skin="005"] {
	--sk-bg: radial-gradient(600px 460px at 50% 40%, rgba(255, 170, 80, .10), transparent 70%), #070605;
	--sk-accent: #e0a85a; --sk-accent2: #ffd59a; --sk-line: rgba(224, 168, 90, .25); --sk-panel: rgba(30, 20, 10, .5); --sk-btn-ink: #1a1008; --sk-dim: #c9b8a0;
}
.dwe-institute .ni5-room { position: relative; display: grid; grid-template-rows: auto auto 1fr auto auto; justify-items: center; min-height: 600px; padding: 10px 10px 0; border-radius: 18px; overflow: hidden; --p: 0; background: radial-gradient(circle at 50% 32%, rgba(255, 190, 110, calc(.06 + var(--p) * .16)), transparent calc(30% + var(--p) * 30%)); }
.dwe-institute .ni5-glow { position: absolute; left: 50%; top: 22%; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 120, .35), rgba(255, 160, 60, .08) 45%, transparent 70%); transform: scale(calc(.7 + var(--p) * .6)); transition: transform 3.5s ease, opacity 3.5s ease; pointer-events: none; }
.dwe-institute .ni5-room.is-in .ni5-glow { transform: scale(calc(.95 + var(--p) * .7)); }
.dwe-institute .ni5-candle { position: relative; width: 120px; z-index: 1; margin-top: 10px; }
.dwe-institute .ni5-candle svg { display: block; width: 100%; height: auto; overflow: visible; }
.dwe-institute .ni5-flame { transform-origin: 0 -16px; transform: scale(calc(.75 + var(--p) * .45)); transition: transform 3.5s ease; animation: ni5-flick 2.6s ease-in-out infinite; }
.dwe-institute .ni5-room.is-in .ni5-flame { transform: scale(calc(.95 + var(--p) * .55)); }
@keyframes ni5-flick { 0%, 100% { opacity: 1; } 40% { opacity: .9; } 60% { opacity: .97; } }
.dwe-institute .ni5-words { position: relative; z-index: 1; max-width: 680px; min-height: 5.5em; margin: 18px 0 8px; text-align: center; font-family: var(--ni-serif); font-size: clamp(21px, 2.6vw, 28px); line-height: 1.5; color: #f6e7cf; opacity: 0; transition: opacity 1.4s ease; text-shadow: 0 0 24px rgba(0, 0, 0, .8); }
.dwe-institute .ni5-words.is-shown { opacity: 1; }
.dwe-institute .ni5-words p { margin: 0 0 .3em; animation: none; }
.dwe-institute .ni5-breath { z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 12px; }
.dwe-institute .ni5-hold { position: relative; width: 150px; height: 150px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 213, 154, .12), rgba(255, 213, 154, .02) 70%); color: #ffd59a; cursor: pointer; font: inherit; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; touch-action: none; user-select: none; -webkit-user-select: none; }
.dwe-institute .ni5-hold span { position: relative; display: block; padding: 0 22px; line-height: 1.3; }
.dwe-institute .ni5-hold svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dwe-institute .ni5-ring-bg { fill: none; stroke: rgba(255, 213, 154, .18); stroke-width: 4; }
.dwe-institute .ni5-ring { fill: none; stroke: #ffd59a; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 276.5; transition: stroke-dashoffset 2.6s linear; }
.dwe-institute .ni5-room.is-in .ni5-ring { stroke-dashoffset: 0; transition: stroke-dashoffset 4s ease-out; }
.dwe-institute .ni5-hold:focus-visible { outline: 3px solid #ffd59a; outline-offset: 4px; }
.dwe-institute .ni5-hold[disabled] { cursor: default; opacity: .75; }
.dwe-institute .ni5-count { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #a8957a; min-height: 1.4em; margin: 0; }
.dwe-institute .ni5-bar { z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; padding: 10px 12px; border-top: 1px solid rgba(224, 168, 90, .18); }
.dwe-institute .ni5-slider input[type="range"] { --fill: 50%; }

/* =====================================================================
 * Responsive (labs 001–005)
 * ===================================================================== */
@media (max-width: 860px) {
	.dwe-institute .ni2-studio, .dwe-institute .ni4-dialscreen, .dwe-institute .ni2-shape { grid-template-columns: 1fr; }
	.dwe-institute .ni2-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dwe-institute .ni2-shape__obj { max-width: 200px; margin: 0 auto; }
}
@media (max-width: 560px) {
	.dwe-institute .ni1-intro { grid-template-columns: 1fr; justify-items: center; text-align: left; }
	.dwe-institute .ni1-hud { grid-template-columns: 1fr; gap: 4px; }
	.dwe-institute .ni2-tray__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.dwe-institute .ni2-frag span { display: none; }
	.dwe-institute .ni3-stage { height: 240px; }
	.dwe-institute .ni3-cup { width: 84px; height: 94px; margin-left: -42px; bottom: 46px; }
	.dwe-institute .ni3-cup.is-up { bottom: 100px; }
	.dwe-institute .ni3-pearl { bottom: 52px; }
	.dwe-institute .ni3-prompter { right: 0; }
	.dwe-institute .ni3-bubble { font-size: 15px; max-width: 170px; }
	.dwe-institute .ni3-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dwe-institute .ni4-grid { gap: 7px; }
	.dwe-institute .ni4-card__face small { display: none; }
	.dwe-institute .ni4-plate span { width: 48px; height: 66px; font-size: 40px; }
	.dwe-institute .ni4-plate { gap: 6px; padding: 14px; }
	.dwe-institute .ni4-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); background: linear-gradient(180deg, #2a3240, #1a2029); }
	.dwe-institute .ni4-item--tray { width: calc(33% - 8px); }
	.dwe-institute .ni5-room { min-height: 540px; }
	.dwe-institute .ni5-words { font-size: 20px; }
	.dwe-institute .ni5-bar .dwni-btn { min-height: 34px; padding: .35em .75em; font-size: 12px; letter-spacing: .06em; }
}

/* =====================================================================
 * 006 · The Laboratory of Perception — the optician's chart (light)
 * ===================================================================== */
.dwe-institute[data-skin="006"] {
	--sk-bg: linear-gradient(rgba(29, 26, 22, .045) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(29, 26, 22, .045) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(180deg, #f7f2e7, #ece4d2);
	--sk-ink: #1d1a16; --sk-dim: #5b544a; --sk-accent: #b3262f; --sk-accent2: #d0414a; --sk-line: rgba(29, 26, 22, .3); --sk-panel: rgba(255, 255, 255, .6); --sk-btn-ink: #fff;
	--sk-display: "Didot", "Bodoni MT", "Bodoni 72", "Playfair Display", Georgia, serif;
	box-shadow: 0 30px 80px rgba(8, 10, 22, .45);
}
[data-skin="006"] .dwni-btn { border-radius: 2px; }
[data-skin="006"] .dwni-intro__art svg { filter: invert(1) hue-rotate(180deg); }
[data-skin="006"] .dwni-notice, [data-skin="006"] .dwni-result__badge { color: #1d1a16; }
[data-skin="006"] .dwni-q__count, [data-skin="006"] .dwni-eyebrow, [data-skin="006"] .dwni-exp-head__code, [data-skin="006"] .dwni-topbar__name small { color: #b3262f; }
.dwe-institute .ni6-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.dwe-institute .ni6-plate { font-family: "Courier New", monospace; font-size: 13px; letter-spacing: .25em; text-transform: uppercase; padding: 3px 10px; border: 1px solid #1d1a16; }
.dwe-institute .ni6-name { font-family: var(--sk-display); font-size: 30px; font-style: italic; }
.dwe-institute .ni6-chart { max-width: 640px; margin: 0 auto; padding: 14px; background: #fffdf7; border: 1px solid rgba(29, 26, 22, .25); box-shadow: 0 1px 0 #fff inset, 0 14px 30px rgba(60, 40, 20, .15); }
.dwe-institute .ni6-chart svg { display: block; width: 100%; height: auto; }
.dwe-institute .ni6-chart--dark { background: #1d1a16; }
.dwe-institute .ni6-ctrl { max-width: 640px; margin: 16px auto 0; }
.dwe-institute .ni6-q { display: block; font-family: var(--sk-display); font-size: 22px; margin-bottom: 8px; }
.dwe-institute .ni6-row { display: flex; align-items: center; gap: 12px; }
.dwe-institute .ni6-nudge { flex: 0 0 44px; height: 44px; border: 1px solid #1d1a16; border-radius: 50%; background: #fffdf7; color: #1d1a16; font-size: 22px; line-height: 1; cursor: pointer; }
.dwe-institute .ni6-nudge:hover { background: #1d1a16; color: #fff; }
[data-skin="006"] input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, #b3262f var(--fill), #1d1a16 var(--fill)); }
[data-skin="006"] input[type="range"]::-webkit-slider-thumb { margin-top: -11px; background: #fffdf7; border: 3px solid #b3262f; }
[data-skin="006"] input[type="range"]::-moz-range-thumb { background: #fffdf7; border: 3px solid #b3262f; }
.dwe-institute .ni6-verdict { padding: 14px 18px; border-left: 4px solid #b3262f; background: rgba(255, 255, 255, .7); }
.dwe-institute .ni6-big { font-family: var(--sk-display); font-size: 28px; color: #b3262f; margin: 0 0 6px; }
.dwe-institute .ni6-flipcount { font-family: var(--sk-display); font-size: 26px; }
.dwe-institute .ni6-pulse { animation: ni6-p .4s ease-out; }
@keyframes ni6-p { from { box-shadow: 0 0 0 0 rgba(179, 38, 47, .5); } to { box-shadow: 0 0 0 16px rgba(179, 38, 47, 0); } }
.dwe-institute .ni6-test { max-width: 760px; margin: 0 auto; }

/* =====================================================================
 * 007 · The Laboratory of Perception — stained glass
 * ===================================================================== */
.dwe-institute[data-skin="007"] {
	--sk-bg: conic-gradient(from 30deg at 20% 30%, rgba(46, 125, 140, .18), rgba(140, 46, 74, .14), rgba(58, 90, 168, .16), rgba(168, 120, 46, .12), rgba(46, 125, 140, .18)), linear-gradient(170deg, #0d0b14, #15121f 60%, #0a0910);
	--sk-accent: #6fd3d8; --sk-accent2: #b5f0f2; --sk-line: rgba(111, 211, 216, .32); --sk-panel: rgba(8, 6, 14, .6); --sk-btn-ink: #0d0b14; --sk-dim: #c4c0d6;
	--sk-display: "Futura", "Century Gothic", "Avenir Next", var(--ni-sans);
}
[data-skin="007"] h2, [data-skin="007"] h3, [data-skin="007"] .dwni-exp-head__title { text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }
[data-skin="007"] .dwni-btn { border-radius: 0; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.dwe-institute .ni7-wrap { max-width: 640px; margin: 0 auto; }
.dwe-institute .ni7-hud { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #b5f0f2; }
.dwe-institute .ni7-window { padding: 16px; border-radius: 50% 50% 8px 8px / 26% 26% 8px 8px; background: #111; box-shadow: 0 0 0 6px #2a2632, 0 0 0 8px #6fd3d8, 0 30px 60px rgba(0, 0, 0, .6); padding-top: 18%; position: relative; }
.dwe-institute .ni7-window::before { content: ""; position: absolute; left: 16px; right: 16px; top: 16px; height: calc(18% - 22px); border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: conic-gradient(from 180deg at 50% 100%, #2e7d8c, #8c2e4a, #3a5aa8, #a8782e, #5a8c2e, #6a3aa8, #2e7d8c); opacity: .35; transition: opacity 1s; }
.dwe-institute .ni7-window.is-solved::before { opacity: 1; filter: drop-shadow(0 0 20px #fff); }
.dwe-institute .ni7-grid { display: grid; gap: 3px; background: #050407; }
.dwe-institute .ni7-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; }
.dwe-institute .ni7-tile { aspect-ratio: 1; padding: 0; margin: 0; border: 0; background: #0b0a10; cursor: pointer; overflow: hidden; }
.dwe-institute .ni7-tile:focus-visible { outline: 3px solid #fff; outline-offset: -3px; z-index: 2; }
.dwe-institute .ni7-rot { display: block; width: 100%; height: 100%; transition: transform .28s cubic-bezier(.3, .7, .3, 1.3); }
.dwe-institute .ni7-rot svg { display: block; width: 100%; height: 100%; }
.dwe-institute .ni7-glass { opacity: .28; transition: opacity .4s, filter .4s; }
.dwe-institute .ni7-lead { stroke: #050407; stroke-width: 22; stroke-linecap: round; }
.dwe-institute .ni7-light { stroke: #3a3644; stroke-width: 9; stroke-linecap: round; transition: stroke .3s; }
.dwe-institute .ni7-node { fill: #3a3644; stroke: #050407; stroke-width: 6; }
.dwe-institute .ni7-src { fill: #ffe9a8; stroke: #050407; stroke-width: 5; filter: drop-shadow(0 0 6px #ffe9a8); }
.dwe-institute .ni7-tile.is-lit .ni7-glass { opacity: .95; filter: saturate(1.3) brightness(1.15); }
.dwe-institute .ni7-tile.is-lit .ni7-light { stroke: #fff6d6; filter: drop-shadow(0 0 4px #ffe9a8); }
.dwe-institute .ni7-tile.is-lit .ni7-node { fill: #fff6d6; }
.dwe-institute .ni7-window.is-solved .ni7-tile .ni7-glass { animation: ni7-blaze 2s ease-in-out infinite alternate; }
@keyframes ni7-blaze { to { filter: saturate(1.6) brightness(1.4); } }
.dwe-institute .ni7-help { margin-top: 12px; }

/* =====================================================================
 * 008 · The Chamber of Imagination — the world machine (panorama + brass console)
 * ===================================================================== */
.dwe-institute[data-skin="008"] {
	--sk-bg: radial-gradient(900px 400px at 50% 0%, rgba(255, 170, 110, .18), transparent 70%), linear-gradient(180deg, #1c1630 0%, #2a1c2c 45%, #1a120c 100%);
	--sk-accent: #d9a64a; --sk-accent2: #f6d98d; --sk-line: rgba(217, 166, 74, .38); --sk-panel: rgba(26, 18, 12, .6); --sk-btn-ink: #1a120c; --sk-dim: #d8c8b0;
}
.dwe-institute .ni8-view { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 4px #3a2814, 0 0 0 6px #d9a64a, 0 20px 50px rgba(0, 0, 0, .55); }
.dwe-institute .ni8-world { transition: transform 1s cubic-bezier(.5, 0, .3, 1); }
.dwe-institute .ni8-world svg { display: block; width: 100%; height: auto; }
.dwe-institute .ni8-view.is-upside .ni8-world { transform: scaleY(-1); }
.dwe-institute .ni8-view.is-whirr .ni8-world { animation: ni8-whirr .6s ease-out; }
@keyframes ni8-whirr { 0% { filter: blur(6px) brightness(1.4); } 100% { filter: none; } }
.dwe-institute .ni8-tint { position: absolute; inset: 0; mix-blend-mode: soft-light; transition: background .8s; pointer-events: none; }
.dwe-institute .ni8-frame { position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(0, 0, 0, .55); pointer-events: none; }
.dwe-institute .ni8-text { font-family: var(--ni-serif); font-style: italic; font-size: 19px; line-height: 1.5; margin: 14px 4px; min-height: 3em; }
.dwe-institute .ni8-console { padding: 18px 16px 14px; border-radius: 16px 16px 30px 30px; background: linear-gradient(180deg, #4a321a, #2a1c0e); box-shadow: inset 0 2px 0 rgba(255, 220, 150, .25), inset 0 -10px 30px rgba(0, 0, 0, .5), 0 14px 30px rgba(0, 0, 0, .5); border: 2px solid #8a6a2f; }
.dwe-institute .ni8-dials { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.dwe-institute .ni8-dial { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.dwe-institute .ni8-turn { width: 84px; height: 84px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.dwe-institute .ni8-turn svg { width: 100%; height: 100%; }
.dwe-institute .ni8-knob { transition: transform .45s cubic-bezier(.3, .8, .3, 1.2); transform-origin: 0 0; }
.dwe-institute .ni8-turn:focus-visible { outline: 3px solid #f6d98d; outline-offset: 2px; }
.dwe-institute .ni8-plate { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; background: linear-gradient(180deg, #e8c77a, #a8823a); color: #2a1c0e; font-weight: 700; }
.dwe-institute .ni8-val { font-family: var(--ni-serif); font-size: 15px; line-height: 1.25; color: #f6e7c4; min-height: 2.5em; }
.dwe-institute .ni8-levers { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(217, 166, 74, .3); }
.dwe-institute .ni8-lever { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; }
.dwe-institute .ni8-lever label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #f6d98d; }
.dwe-institute .ni8-lever span { min-width: 7em; font-family: var(--ni-serif); font-style: italic; }
.dwe-institute .ni8-switch { display: inline-flex; align-items: center; gap: 10px; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; cursor: pointer; }
.dwe-institute .ni8-switch__track { position: relative; width: 54px; height: 28px; border-radius: 99px; background: #1a120c; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7); border: 1px solid #8a6a2f; }
.dwe-institute .ni8-switch__track i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6d98d, #8a6a2f); transition: transform .3s; }
.dwe-institute .ni8-switch[aria-checked="true"] .ni8-switch__track i { transform: translateX(26px); }
.dwe-institute .ni8-switch:focus-visible { outline: 3px solid #f6d98d; outline-offset: 4px; border-radius: 8px; }
.dwe-institute .ni8-file { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.dwe-institute .ni8-filed { text-align: center; max-width: 820px; margin: 0 auto; position: relative; }
.dwe-institute .ni8-stamp { position: absolute; right: 6%; top: 50px; z-index: 3; padding: 4px 16px; border: 3px solid #b3262f; color: #ff6b6b; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; transform: rotate(-12deg); border-radius: 6px; background: rgba(0, 0, 0, .25); animation: ni8-stamp .5s cubic-bezier(.3, 1.6, .5, 1) both .3s; }
@keyframes ni8-stamp { from { transform: rotate(-12deg) scale(2.4); opacity: 0; } }

/* =====================================================================
 * 009 · The Chamber of Imagination — the parchment map (light, sepia)
 * ===================================================================== */
.dwe-institute[data-skin="009"] {
	--sk-bg: radial-gradient(ellipse at 50% 40%, #efe3c4 0%, #e2d0a6 65%, #c4a674 100%);
	--sk-ink: #3b2a17; --sk-dim: #6b5332; --sk-accent: #7a2a1a; --sk-accent2: #9a3a24; --sk-line: rgba(90, 58, 26, .35); --sk-panel: rgba(255, 248, 230, .55); --sk-btn-ink: #fbf3df;
	--sk-display: "IM Fell English", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	box-shadow: 0 30px 80px rgba(8, 10, 22, .45), inset 0 0 120px rgba(90, 58, 26, .35);
}
[data-skin="009"] .dwni-btn { border-radius: 4px; }
[data-skin="009"] .dwni-intro__art svg { filter: sepia(1) saturate(.6) brightness(.9); }
[data-skin="009"] .dwni-q__count, [data-skin="009"] .dwni-eyebrow, [data-skin="009"] .dwni-exp-head__code, [data-skin="009"] .dwni-topbar__name small { color: #7a2a1a; }
.dwe-institute .ni9-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); gap: 20px; align-items: start; }
.dwe-institute .ni9-map { position: relative; aspect-ratio: 1000 / 620; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px #8a6a3a, 0 10px 30px rgba(60, 40, 20, .35); }
.dwe-institute .ni9-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dwe-institute .ni9-road { transition: stroke .5s, opacity .5s; opacity: .45; }
.dwe-institute .ni9-road.is-near { opacity: 1; stroke: #7a2a1a; }
.dwe-institute .ni9-road.is-walked { opacity: .8; }
.dwe-institute .ni9-place { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; margin: 0; border: 0; border-radius: 10px; background: none; color: #3b2a17; font: inherit; font-family: var(--sk-display); font-size: 13px; line-height: 1.1; cursor: pointer; z-index: 2; transition: opacity .6s, filter .6s, transform .3s; }
.dwe-institute .ni9-place svg { width: 46px; height: 46px; }
.dwe-institute .ni9-place span { max-width: 110px; text-align: center; background: rgba(239, 227, 196, .85); padding: 1px 6px; border-radius: 4px; }
.dwe-institute .ni9-place.is-fog { opacity: .55; filter: blur(.5px) sepia(1); }
.dwe-institute .ni9-place.is-near svg { filter: drop-shadow(0 0 6px rgba(122, 42, 26, .7)); animation: ni9-beckon 2.4s ease-in-out infinite; }
.dwe-institute .ni9-place.is-here span { background: #7a2a1a; color: #fbf3df; }
.dwe-institute .ni9-place[disabled] { cursor: default; }
.dwe-institute .ni9-place:not([disabled]):hover { transform: translate(-50%, -54%); }
.dwe-institute .ni9-place:focus-visible { outline: 2px dashed #7a2a1a; outline-offset: 2px; }
@keyframes ni9-beckon { 50% { transform: scale(1.12); } }
.dwe-institute .ni9-token { position: absolute; width: 26px; height: 26px; margin: -38px 0 0 -13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: radial-gradient(circle at 50% 50%, #fbf3df 0 4px, #7a2a1a 5px); box-shadow: 2px 3px 6px rgba(0, 0, 0, .35); transition: left 1.1s ease-in-out, top 1.1s ease-in-out; z-index: 3; pointer-events: none; }
.dwe-institute .ni9-side { padding: 18px; border-radius: 6px; background: rgba(255, 248, 230, .6); border: 1px solid rgba(90, 58, 26, .35); box-shadow: inset 0 0 30px rgba(160, 120, 60, .15); }
.dwe-institute .ni9-title { font-family: var(--sk-display); font-size: 26px; margin: 0 0 8px; color: #3b2a17; }
.dwe-institute .ni9-text p { font-family: var(--sk-display); font-size: 17px; line-height: 1.5; margin: 0 0 .7em; }
.dwe-institute .ni9-text p + p { color: #7a2a1a; font-style: italic; }
.dwe-institute .ni9-acts { display: grid; gap: 8px; margin: 10px 0; }
.dwe-institute .ni9-act { padding: 10px 12px; margin: 0; border: 1px solid #7a2a1a; border-radius: 4px; background: #fbf3df; color: #3b2a17; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.dwe-institute .ni9-act:hover:not([disabled]) { background: #7a2a1a; color: #fbf3df; }
.dwe-institute .ni9-act[disabled] { opacity: .7; cursor: default; border-style: dashed; }
.dwe-institute .ni9-hint { font-style: italic; color: #6b5332; font-size: 15px; }
.dwe-institute .ni9-satchel { margin-top: 12px; padding: 10px; border-radius: 10px 10px 18px 18px; background: linear-gradient(180deg, #8a5a2a, #6a4220); color: #fbf3df; }
.dwe-institute .ni9-satchel__label { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; }
.dwe-institute .ni9-satchel > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dwe-institute .ni9-item { display: flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px; border-radius: 99px; background: rgba(251, 243, 223, .92); color: #3b2a17; }
.dwe-institute .ni9-item svg { width: 28px; height: 28px; }
.dwe-institute .ni9-item small { font-size: 12px; }
.dwe-institute .ni9-empty { opacity: .75; }
.dwe-institute .ni9-steps { margin: 8px 0 0; font-size: 13px; color: #6b5332; }
.dwe-institute .ni9-lamproom { max-width: 140px; margin: 0 auto 10px; }
.dwe-institute .ni9-ending { text-align: center; max-width: 720px; margin: 0 auto; position: relative; }
.dwe-institute .ni9-beam { height: 90px; margin-bottom: 10px; background: conic-gradient(from 250deg at 50% 100%, transparent 0deg, rgba(255, 226, 138, .9) 20deg, transparent 40deg); animation: ni9-sweep 4s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes ni9-sweep { from { transform: rotate(-25deg); } to { transform: rotate(25deg); } }
[data-skin="009"] .dwni-option { background: #fbf3df; }

/* =====================================================================
 * 010 · The Suggestion Laboratory — clockwork
 * ===================================================================== */
.dwe-institute[data-skin="010"] {
	--sk-bg: radial-gradient(circle at 92% 12%, transparent 60px, rgba(212, 162, 76, .08) 61px, rgba(212, 162, 76, .08) 64px, transparent 65px), radial-gradient(circle at 6% 88%, transparent 90px, rgba(212, 162, 76, .07) 91px, rgba(212, 162, 76, .07) 95px, transparent 96px), linear-gradient(170deg, #22170d, #170f08 70%);
	--sk-accent: #d4a24c; --sk-accent2: #f2cf86; --sk-line: rgba(212, 162, 76, .38); --sk-panel: rgba(40, 26, 12, .6); --sk-btn-ink: #22170d; --sk-dim: #d6c4a4;
}
[data-skin="010"] .dwni-intro__art svg { animation: ni10-spin 30s linear infinite; }
@keyframes ni10-spin { to { transform: rotate(360deg); } }
.dwe-institute .ni10-hold, .dwe-institute .ni10-metro { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 30px; align-items: center; }
.dwe-institute .ni10-watch svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .6)); }
.dwe-institute .ni10-hand { transition: transform 1.2s cubic-bezier(.3, .7, .3, 1.2); opacity: 0; }
.dwe-institute .ni10-watch.is-shown .ni10-hand { opacity: 1; }
.dwe-institute .ni10-watch.is-shown .ni10-q { opacity: 0; }
.dwe-institute .ni10-watch.is-running svg { animation: ni10-hum 1s ease-in-out infinite; }
@keyframes ni10-hum { 50% { transform: rotate(.6deg); } }
.dwe-institute .ni10-watch.is-tick .ni10-q { animation: ni10-tickq .3s; }
@keyframes ni10-tickq { 50% { fill: #b3262f; } }
.dwe-institute .ni10-plunger { position: relative; display: block; width: 150px; height: 150px; margin: 18px 0 8px; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f6d98d, #8a6a2f 70%); box-shadow: 0 10px 0 #4a3418, 0 18px 30px rgba(0, 0, 0, .5), inset 0 3px 0 rgba(255, 255, 255, .4); cursor: pointer; transition: transform .12s, box-shadow .12s; touch-action: none; user-select: none; -webkit-user-select: none; }
.dwe-institute .ni10-plunger.is-held { transform: translateY(8px); box-shadow: 0 2px 0 #4a3418, 0 6px 14px rgba(0, 0, 0, .5), inset 0 3px 0 rgba(255, 255, 255, .3); }
.dwe-institute .ni10-plunger__cap { position: absolute; inset: 28px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff2c8, #c9a45a); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .3); }
.dwe-institute .ni10-plunger__label { position: relative; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #3b2a17; }
.dwe-institute .ni10-plunger:focus-visible { outline: 3px solid #f2cf86; outline-offset: 6px; }
.dwe-institute .ni10-metronome svg { width: 100%; max-width: 220px; display: block; margin: 0 auto; }
.dwe-institute .ni10-arm { transform-origin: 0 170px; transform: rotate(-24deg); transition: transform .8s ease-in-out; }
.dwe-institute .ni10-metronome.is-r .ni10-arm { transform: rotate(24deg); }
.dwe-institute .ni10-metronome.is-stopped .ni10-arm { transform: rotate(0); transition-duration: 1.4s; }
.dwe-institute .ni10-tap { animation: ni10-tap .25s; }
@keyframes ni10-tap { 50% { transform: scale(.94); } }
.dwe-institute .ni10-bellroom { text-align: center; }
.dwe-institute .ni10-lamps { display: flex; justify-content: center; gap: 18px; margin: 4px 0 10px; }
.dwe-institute .ni10-lamps span { padding: 8px 18px; border-radius: 99px; border: 2px solid #5a3a1e; color: #8a6a4a; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; transition: all .2s; }
.dwe-institute .ni10-lamps span.is-on { border-color: #f2cf86; color: #22170d; background: #f2cf86; box-shadow: 0 0 20px rgba(242, 207, 134, .6); }
.dwe-institute .ni10-bell { width: 180px; margin: 0 auto; transform-origin: 50% 0; }
.dwe-institute .ni10-bell svg { width: 100%; height: auto; }
.dwe-institute .ni10-bell.is-ring { animation: ni10-ring .5s ease-in-out 2; filter: drop-shadow(0 0 24px #f2cf86); }
@keyframes ni10-ring { 25% { transform: rotate(14deg); } 75% { transform: rotate(-14deg); } }
.dwe-institute .ni10-bell.is-false { animation: ni1-no .4s; filter: drop-shadow(0 0 16px #e7a08c); }
.dwe-institute .ni10-msg { font-family: var(--ni-serif); font-size: 24px; min-height: 1.6em; }
.dwe-institute .ni10-result { text-align: center; max-width: 620px; margin: 0 auto; }
.dwe-institute .ni10-big { display: block; font-family: var(--ni-serif); font-size: 84px; line-height: 1; color: #f2cf86; text-shadow: 0 0 30px rgba(242, 207, 134, .35); margin-bottom: 10px; }

/* =====================================================================
 * 011 · The Suggestion Laboratory — the chalk circle (blackboard)
 * ===================================================================== */
.dwe-institute[data-skin="011"] {
	--sk-bg: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .05), transparent 50%), radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, .04), transparent 40%), linear-gradient(170deg, #22302a, #1a2620 70%, #141d18);
	--sk-ink: #ecebe4; --sk-dim: #bfc6bd; --sk-accent: #e8e4d4; --sk-accent2: #ffffff; --sk-line: rgba(236, 235, 228, .3); --sk-panel: rgba(255, 255, 255, .04); --sk-btn-ink: #1a2620;
	--sk-display: "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Neue", "Marker Felt", cursive;
	box-shadow: 0 30px 80px rgba(8, 10, 22, .45), inset 0 0 0 14px #6b4a2a, inset 0 0 0 16px #3a2614;
}
[data-skin="011"]::before { inset: 22px; }
[data-skin="011"] .dwni-btn { border-radius: 4px; background: #ecebe4; border-color: #fff; }
[data-skin="011"] .dwni-intro__art svg { filter: grayscale(1) brightness(1.6); opacity: .85; }
.dwe-institute .ni11-board { position: relative; max-width: 460px; margin: 0 auto; aspect-ratio: 1; touch-action: none; }
.dwe-institute .ni11-chalk { position: absolute; inset: 0; width: 100%; height: 100%; }
.dwe-institute .ni11-c { fill: none; stroke: rgba(236, 235, 228, .7); stroke-width: 3; stroke-dasharray: 600 4 40 3; stroke-linecap: round; }
.dwe-institute .ni11-c--thin { stroke-width: 1.4; stroke: rgba(236, 235, 228, .3); }
.dwe-institute .ni11-axis { stroke: #ffe9a0; stroke-width: 3; }
.dwe-institute .ni11-gbob { fill: none; stroke: rgba(255, 233, 160, .7); stroke-width: 2.5; stroke-dasharray: 4 4; opacity: 0; }
.dwe-institute .ni11-board.is-swing .ni11-gbob { opacity: 1; }
.dwe-institute .ni11-board.is-swing .ni11-ghost--x { animation: ni11-sx 3.4s ease-in-out infinite; }
.dwe-institute .ni11-board.is-swing .ni11-ghost--y { animation: ni11-sy 3.4s ease-in-out infinite; }
@keyframes ni11-sx { 0%, 100% { transform: translateX(-90px); } 50% { transform: translateX(90px); } }
@keyframes ni11-sy { 0%, 100% { transform: translateY(-90px); } 50% { transform: translateY(90px); } }
.dwe-institute .ni11-trace { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; filter: drop-shadow(0 0 1px #fff); }
.dwe-institute .ni11-bob { position: absolute; left: 50%; top: 50%; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #cfd2c8); box-shadow: 0 0 0 4px rgba(236, 235, 228, .2), 0 0 24px rgba(255, 255, 255, .25); animation: ni11-beckon 2s ease-in-out infinite; }
.dwe-institute .ni11-board.is-on .ni11-bob { animation: none; box-shadow: 0 0 0 4px rgba(255, 233, 160, .5), 0 0 30px rgba(255, 233, 160, .45); }
@keyframes ni11-beckon { 50% { box-shadow: 0 0 0 12px rgba(236, 235, 228, .06), 0 0 24px rgba(255, 255, 255, .25); } }
.dwe-institute .ni11-line { position: absolute; left: 0; right: 0; max-width: 100%; overflow-wrap: anywhere; top: calc(100% + 8px); margin: 0; text-align: center; font-family: var(--sk-display); font-size: clamp(18px, 2.3vw, 24px); line-height: 1.35; opacity: 0; transition: opacity 1s; text-shadow: 0 0 2px rgba(255, 255, 255, .3); pointer-events: none; }
.dwe-institute .ni11-line.is-shown { opacity: 1; }
.dwe-institute .ni11-bar { display: flex; align-items: center; gap: 12px; margin-top: 96px; padding-top: 10px; border-top: 1px dashed rgba(236, 235, 228, .3); }
.dwe-institute .ni11-status { font-size: 15px; color: #bfc6bd; }
.dwe-institute .ni11-pick .ni11-board { max-width: 300px; }
.dwe-institute .ni11-pick .ni11-line { display: none; }
.dwe-institute .ni11-result .ni11-board { max-width: 420px; }
.dwe-institute .ni11-result .ni11-bob { animation: none; opacity: .5; }
.dwe-institute .ni11-verdict { font-family: var(--sk-display); font-size: 21px; text-align: center; max-width: 620px; margin: 10px auto 0; }

/* =====================================================================
 * 012 · Deep Absorption — the floating observatory (starfield)
 * ===================================================================== */
.dwe-institute[data-skin="012"] {
	--sk-bg: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 72% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 70%, #dfe8ff, transparent), radial-gradient(1px 1px at 88% 64%, #fff, transparent), radial-gradient(1px 1px at 22% 82%, #fff, transparent), radial-gradient(900px 500px at 50% 120%, rgba(90, 120, 200, .28), transparent 70%), linear-gradient(180deg, #03050f, #0a1030 70%, #101a44);
	--sk-accent: #a9c8ff; --sk-accent2: #dbe8ff; --sk-line: rgba(169, 200, 255, .3); --sk-panel: rgba(5, 9, 28, .6); --sk-btn-ink: #050816; --sk-dim: #b9c4e0;
}
.dwe-institute .ni12-sky { position: relative; min-height: 600px; border-radius: 50% 50% 18px 18px / 22% 22% 18px 18px; overflow: hidden; background: radial-gradient(ellipse at 50% 110%, rgba(110, 140, 220, calc(.15 + var(--p, 0) * .25)), transparent 60%), linear-gradient(180deg, #02040c, #08102c 75%, #0e1840); box-shadow: 0 0 0 3px #3a4a7a, 0 0 0 5px rgba(197, 164, 109, .6), 0 30px 60px rgba(0, 0, 0, .6); }
.dwe-institute .ni12-far { position: absolute; inset: -5%; width: 110%; height: 110%; animation: ni12-drift 120s linear infinite; }
@keyframes ni12-drift { to { transform: rotate(8deg) scale(1.04); } }
.dwe-institute .ni12-dome { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(180deg, transparent, rgba(2, 4, 12, .9)); pointer-events: none; }
.dwe-institute .ni12-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dwe-institute .ni12-line { stroke: #E2C792; stroke-width: .35; stroke-linecap: round; opacity: .85; stroke-dasharray: 60; stroke-dashoffset: 60; animation: ni12-draw 1.6s ease-out forwards; filter: drop-shadow(0 0 1px #E2C792); }
@keyframes ni12-draw { to { stroke-dashoffset: 0; } }
.dwe-institute .ni12-star { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: default; z-index: 2; }
.dwe-institute .ni12-star i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #cfdcff; box-shadow: 0 0 6px #cfdcff; opacity: .55; transition: all .8s; }
.dwe-institute .ni12-star.is-next { cursor: pointer; }
.dwe-institute .ni12-star.is-next i { width: 12px; height: 12px; margin: -6px 0 0 -6px; opacity: 1; background: #fff; box-shadow: 0 0 12px #fff, 0 0 30px #a9c8ff; animation: ni12-pulse 2.2s ease-in-out infinite; }
@keyframes ni12-pulse { 50% { box-shadow: 0 0 18px #fff, 0 0 50px #a9c8ff, 0 0 0 12px rgba(169, 200, 255, .12); } }
.dwe-institute .ni12-star.is-on i { width: 10px; height: 10px; margin: -5px 0 0 -5px; opacity: 1; background: #ffe9a8; box-shadow: 0 0 14px #ffe9a8, 0 0 30px rgba(226, 199, 146, .6); }
.dwe-institute .ni12-sky.is-complete .ni12-star.is-on i { animation: ni12-twinkle 3s ease-in-out infinite; }
@keyframes ni12-twinkle { 50% { box-shadow: 0 0 22px #ffe9a8, 0 0 60px rgba(226, 199, 146, .8); } }
.dwe-institute .ni12-star:focus-visible { outline: 2px solid #dbe8ff; outline-offset: 2px; }
.dwe-institute .ni12-words { position: absolute; left: 6%; right: 6%; bottom: 74px; z-index: 3; text-align: center; font-family: var(--ni-serif); font-size: clamp(19px, 2.4vw, 26px); line-height: 1.45; color: #eef3ff; text-shadow: 0 2px 16px #000; opacity: 0; transition: opacity 1.4s; pointer-events: none; }
.dwe-institute .ni12-words.is-shown { opacity: 1; }
.dwe-institute .ni12-words p { margin: 0 0 .3em; animation: none; }
.dwe-institute .ni12-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: linear-gradient(180deg, transparent, rgba(2, 4, 12, .85)); }
.dwe-institute .ni12-mini { display: block; width: 220px; margin: 14px auto 0; }
.dwe-institute .ni12-mini line { stroke: #E2C792; stroke-width: .8; }
.dwe-institute .ni12-mini circle { fill: #fff; }

/* =====================================================================
 * 013 · Deep Absorption — the corridor of calm (warm perspective)
 * ===================================================================== */
.dwe-institute[data-skin="013"] {
	--sk-bg: radial-gradient(700px 500px at 50% 45%, rgba(255, 200, 140, .14), transparent 70%), linear-gradient(180deg, #2a1712, #3a201a 50%, #2a1214);
	--sk-accent: #f0c27a; --sk-accent2: #ffe0a8; --sk-line: rgba(240, 194, 122, .32); --sk-panel: rgba(40, 18, 14, .6); --sk-btn-ink: #2a1712; --sk-dim: #e2c8b4;
}
.dwe-institute .ni13-hall { position: relative; border-radius: 18px; overflow: hidden; --p: 0; box-shadow: 0 0 0 3px #5a3420, 0 30px 60px rgba(0, 0, 0, .55); }
.dwe-institute .ni13-view { position: relative; height: 430px; overflow: hidden; background: #1a0e0a; }
.dwe-institute .ni13-view > svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.6s ease-out, filter 2s; filter: brightness(calc(1 - var(--p) * .35)) saturate(calc(1 - var(--p) * .2)); transform-origin: 50% 46%; }
.dwe-institute .ni13-view.is-step > svg { animation: ni13-step 1.8s ease-out; }
@keyframes ni13-step { 0% { transform: scale(1); } 40% { transform: scale(1.06) translateY(4px); } 100% { transform: scale(1); } }
.dwe-institute .ni13-hall.is-room .ni13-view > svg { transform: scale(2.6); }
.dwe-institute .ni13-wash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, var(--c, #f0c27a), transparent 75%); opacity: 0; mix-blend-mode: soft-light; transition: opacity 1.4s; pointer-events: none; }
.dwe-institute .ni13-wash.is-on { opacity: .85; }
.dwe-institute .ni13-doors { position: absolute; inset: 0; perspective: 800px; }
.dwe-institute .ni13-door { position: absolute; bottom: 12%; width: 18%; height: 58%; padding: 0; margin: 0; border: 3px solid #ffe0a8; border-radius: 80px 80px 4px 4px; background: rgba(0, 0, 0, .3); color: #fff4e0; font: inherit; cursor: pointer; overflow: visible; box-shadow: 0 0 30px rgba(255, 224, 168, .25); animation: ni2-pop .6s ease-out both; }
.dwe-institute .ni13-door--0 { left: 9%; transform: rotateY(28deg); }
.dwe-institute .ni13-door--1 { left: 41%; height: 50%; bottom: 20%; }
.dwe-institute .ni13-door--2 { right: 9%; transform: rotateY(-28deg); }
.dwe-institute .ni13-door__leaf { position: absolute; inset: 0; border-radius: 76px 76px 2px 2px; background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 40%), var(--c); transform-origin: left center; transition: transform .9s ease-in; }
.dwe-institute .ni13-door__leaf::after { content: ""; position: absolute; right: 12%; top: 55%; width: 10px; height: 10px; border-radius: 50%; background: #ffe0a8; }
.dwe-institute .ni13-door.is-open .ni13-door__leaf { transform: perspective(600px) rotateY(-95deg); }
.dwe-institute .ni13-door__label { position: absolute; left: -20%; right: -20%; top: calc(100% + 6px); font-family: var(--ni-serif); font-size: 16px; line-height: 1.2; text-shadow: 0 2px 8px #000; }
.dwe-institute .ni13-door__label small { display: block; font-style: italic; font-size: 14px; opacity: .85; }
.dwe-institute .ni13-door:hover, .dwe-institute .ni13-door:focus-visible { outline: none; box-shadow: 0 0 40px rgba(255, 224, 168, .6); }
.dwe-institute .ni13-plaque { padding: 18px 20px 6px; background: linear-gradient(180deg, #3a201a, #2a1712); border-top: 2px solid #8a5a34; }
.dwe-institute .ni13-words { min-height: 3.2em; max-width: 720px; margin: 0 auto; text-align: center; font-family: var(--ni-serif); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; color: #fff4e0; opacity: 0; transition: opacity 1.2s; }
.dwe-institute .ni13-words.is-shown { opacity: 1; }
.dwe-institute .ni13-plaque .dwni-actions { margin-top: 10px; }
.dwe-institute .ni13-bar { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: #2a1712; border-top: 1px solid rgba(240, 194, 122, .2); }
.dwe-institute .ni13-lamp { transition: opacity 2s; }
.dwe-institute .ni13-dimmer input[type="range"] { height: 44px; }

/* =====================================================================
 * 014 · The Director's Private Collection — mahogany, brass, green leather
 * ===================================================================== */
.dwe-institute[data-skin="014"] {
	--sk-bg: repeating-linear-gradient(92deg, rgba(0, 0, 0, .08) 0 3px, transparent 3px 11px, rgba(255, 255, 255, .02) 11px 13px, transparent 13px 29px), radial-gradient(ellipse at 50% 30%, #5a2a18, #2a120c 70%);
	--sk-accent: #c9a45a; --sk-accent2: #ecd08e; --sk-line: rgba(201, 164, 90, .4); --sk-panel: rgba(20, 40, 28, .6); --sk-btn-ink: #2a120c; --sk-dim: #dcc8ae;
}
.dwe-institute .ni14-hub { max-width: 760px; margin: 0 auto; }
.dwe-institute .ni14-clock { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; margin-bottom: 16px; padding: 10px 16px; border-radius: 10px; background: #1f3a2c; border: 2px solid #c9a45a; box-shadow: inset 0 0 20px rgba(0, 0, 0, .5); }
.dwe-institute .ni14-clock span { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #ecd08e; }
.dwe-institute .ni14-clock b { font-family: "Courier New", monospace; font-size: 28px; color: #ffe9a8; }
.dwe-institute .ni14-clockbar { height: 8px; border-radius: 99px; background: rgba(0, 0, 0, .4); overflow: hidden; }
.dwe-institute .ni14-clockbar i { display: block; height: 100%; background: linear-gradient(90deg, #8a6a2f, #ecd08e); transform-origin: left; transition: transform .5s linear; }
.dwe-institute .ni14-safe { perspective: 1200px; }
.dwe-institute .ni14-safe__door { position: relative; padding: 26px; border-radius: 14px; background: linear-gradient(145deg, #3a3e44, #22252a); box-shadow: inset 0 0 0 4px #4a4f57, inset 0 0 0 8px #1a1c20, 0 24px 60px rgba(0, 0, 0, .6); transform-origin: left center; transition: transform 1.6s cubic-bezier(.3, .7, .2, 1); }
.dwe-institute .ni14-safe__door.is-open { transform: rotateY(-35deg); }
.dwe-institute .ni14-safe__plate { margin: 0 auto 18px; width: max-content; padding: 4px 18px; border-radius: 4px; background: linear-gradient(180deg, #ecd08e, #a8823a); color: #2a120c; font-family: var(--ni-serif); font-size: 15px; letter-spacing: .2em; text-transform: uppercase; }
.dwe-institute .ni14-locks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dwe-institute .ni14-lockbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; margin: 0; border: 2px solid #5a5f67; border-radius: 12px; background: radial-gradient(circle at 50% 30%, #4a4f57, #2a2d32); color: #e8e4dc; font: inherit; cursor: pointer; transition: transform .2s, border-color .2s; }
.dwe-institute .ni14-lockbtn:hover:not([disabled]) { transform: translateY(-2px); border-color: #ecd08e; }
.dwe-institute .ni14-lockbtn b { font-family: var(--ni-serif); font-size: 21px; font-weight: 600; }
.dwe-institute .ni14-lockbtn small { font-size: 13px; color: #b8b2a6; }
.dwe-institute .ni14-lockbtn__dial { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, #ecd08e 0 6px, #8a6a2f 7px 9px, transparent 10px), repeating-conic-gradient(#c9a45a 0 4deg, #6a5228 4deg 12deg); box-shadow: 0 0 0 4px #1a1c20, 0 4px 10px rgba(0, 0, 0, .6); }
.dwe-institute .ni14-lockbtn.is-open { border-color: #8FD3A8; }
.dwe-institute .ni14-lockbtn.is-open .ni14-lockbtn__dial { background: radial-gradient(circle, #8FD3A8 0 10px, transparent 11px), repeating-conic-gradient(#5a8c6a 0 4deg, #2a4a34 4deg 12deg); }
.dwe-institute .ni14-lockbtn.is-jammed { border-color: #e7a08c; opacity: .8; }
.dwe-institute .ni14-lockbtn[disabled] { cursor: default; }
.dwe-institute .ni14-handle { width: 70px; height: 70px; margin: 18px auto 0; border-radius: 50%; border: 6px solid #6a6f77; background: radial-gradient(circle, #8a8f97 0 10px, #3a3e44 11px); }
.dwe-institute .ni14-msg { font-family: var(--ni-serif); font-size: 20px; margin-top: 12px; }
.dwe-institute .ni14-lock { padding: 20px; border-radius: 14px; background: #1f3a2c; border: 2px solid #c9a45a; box-shadow: inset 0 0 40px rgba(0, 0, 0, .5); }
.dwe-institute .ni14-cipher, .dwe-institute .ni14-slide { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 24px; align-items: center; }
.dwe-institute .ni14-wheel { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; border-radius: 50%; }
.dwe-institute .ni14-wheel:focus-visible { outline: 3px solid #ecd08e; outline-offset: 4px; }
.dwe-institute .ni14-inner { transition: transform .3s ease; }
.dwe-institute .ni14-strip { margin: 8px 0; padding: 8px 14px; border-radius: 4px; background: linear-gradient(180deg, #ecd08e, #a8823a); color: #2a120c; font-family: "Courier New", monospace; font-size: 30px; font-weight: 700; letter-spacing: .3em; text-align: center; }
.dwe-institute .ni14-strip--out { background: #f3e6c4; color: #1f3a2c; }
.dwe-institute .ni14-balance { max-width: 720px; margin: 0 auto; }
.dwe-institute .ni14-scales { position: relative; max-width: 420px; margin: 0 auto; }
.dwe-institute .ni14-scales svg { display: block; width: 100%; height: auto; overflow: visible; }
.dwe-institute .ni14-beam { transition: transform 1.2s cubic-bezier(.3, .7, .3, 1.3); transform-origin: 0 0; }
.dwe-institute .ni14-panload { position: absolute; top: 27%; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; width: 24%; min-height: 20px; }
.dwe-institute .ni14-panload--l { left: 2%; }
.dwe-institute .ni14-panload--r { right: 2%; }
.dwe-institute .ni14-panload i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50% 50% 4px 4px; background: #c9a45a; color: #2a120c; font-style: normal; font-size: 12px; font-weight: 700; }
.dwe-institute .ni14-weights { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 4px; }
.dwe-institute .ni14-weight { width: 58px; height: 64px; padding: 0; margin: 0; border: 0; border-radius: 50% 50% 8px 8px / 40% 40% 8px 8px; background: radial-gradient(circle at 40% 30%, #f6d98d, #8a6a2f 75%); color: #2a120c; font: inherit; font-weight: 700; font-size: 20px; cursor: pointer; box-shadow: 0 6px 0 #4a3418; transition: transform .2s; }
.dwe-institute .ni14-weight.is-p1 { transform: translateY(-8px) rotate(-6deg); box-shadow: 0 6px 0 #4a3418, 0 0 0 3px #8FD3A8; }
.dwe-institute .ni14-weight.is-p2 { transform: translateY(-8px) rotate(6deg); box-shadow: 0 6px 0 #4a3418, 0 0 0 3px #a9c8e8; }
.dwe-institute .ni14-weight.is-acc:hover { box-shadow: 0 6px 0 #4a3418, 0 0 0 3px #ff9f8a; }
.dwe-institute .ni14-weight:focus-visible { outline: 3px solid #ecd08e; outline-offset: 3px; }
.dwe-institute .ni14-board { position: relative; width: 100%; max-width: 330px; aspect-ratio: 1; margin: 0 auto; border-radius: 10px; background: #1a1c20; box-shadow: inset 0 0 0 4px #4a4f57; }
.dwe-institute .ni14-tile, .dwe-institute .ni14-gap { position: absolute; width: calc((100% - 8px) / 3 - 4px); height: calc((100% - 8px) / 3 - 4px); left: calc(6px + var(--c) * (100% - 8px) / 3); top: calc(6px + var(--r) * (100% - 8px) / 3); }
.dwe-institute .ni14-tile { padding: 0; margin: 0; border: 2px solid #c9a45a; border-radius: 6px; overflow: hidden; cursor: pointer; background: #22252a; transition: left .18s, top .18s; }
.dwe-institute .ni14-tile__art { position: absolute; width: 300%; height: 300%; left: calc(var(--ac) * -100%); top: calc(var(--ar) * -100%); background: #f3e6c4; }
.dwe-institute .ni14-tile__art svg { width: 100%; height: 100%; display: block; }
.dwe-institute .ni14-tile b { position: absolute; right: 4px; bottom: 2px; font-size: 13px; color: #2a120c; background: rgba(236, 208, 142, .9); border-radius: 4px; padding: 0 5px; }
.dwe-institute .ni14-tile:focus-visible { outline: 3px solid #ecd08e; outline-offset: -3px; }
.dwe-institute .ni14-board.is-whole .ni14-tile { border-color: transparent; border-radius: 0; }
.dwe-institute .ni14-board.is-whole .ni14-tile b { opacity: 0; }
.dwe-institute .ni14-ref svg { width: 90px; height: 90px; opacity: .7; }
.dwe-institute .ni14-final { max-width: 620px; margin: 0 auto; text-align: center; }
.dwe-institute .ni14-safe--small { max-width: 260px; margin: 0 auto 16px; }
.dwe-institute .ni14-safe--small .ni14-safe__door { height: 180px; }
.dwe-institute .ni14-lockintro { max-width: 620px; margin: 0 auto; text-align: center; }
[data-skin="014"] .dwni-pedestal { background: radial-gradient(circle at 50% 40%, #4a4f57, #22252a); border-color: #6a6f77; color: #ecd08e; }

/* =====================================================================
 * 015 · The Director's Private Collection — the Observatory Tower
 * ===================================================================== */
.dwe-institute[data-skin="015"] {
	--sk-bg: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 80% 20%, #fff, transparent), radial-gradient(1px 1px at 60% 80%, #fff, transparent), radial-gradient(1200px 700px at 50% -20%, rgba(197, 164, 109, .16), transparent 60%), linear-gradient(180deg, #070b1c, #0e1430 60%, #121a3c);
	--sk-accent: #C5A46D; --sk-accent2: #E2C792; --sk-line: rgba(197, 164, 109, .4); --sk-panel: rgba(8, 12, 30, .6); --sk-btn-ink: #0b0e1c;
}
.dwe-institute .ni15-letter { max-width: 640px; margin: 0 auto; padding: 26px; color: #241d36; background: linear-gradient(180deg, #faf5e9, #efe5cf); border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.dwe-institute .ni15-letter .dwni-story { color: #241d36; }
.dwe-institute .ni15-mark { width: 90px; margin: 14px auto 0; color: #8a6a2f; }
.dwe-institute .ni15-mark svg { width: 100%; height: auto; }
.dwe-institute .ni15-tower { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 26px; align-items: start; }
.dwe-institute .ni15-shaft svg { display: block; width: 100%; height: auto; }
.dwe-institute .ni15-here { animation: ni15-glow 2s ease-in-out infinite; }
@keyframes ni15-glow { 50% { fill: #dbe8ff; } }
.dwe-institute .ni15-room { min-height: 420px; }
.dwe-institute .ni15-p { font-family: var(--ni-serif); font-size: 21px; line-height: 1.45; }
.dwe-institute .ni15-white { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; background: linear-gradient(180deg, #fbfbf8, #f1f0ea 70%, #e8e7e0); box-shadow: inset 0 -40px 60px rgba(0, 0, 0, .05), 0 14px 30px rgba(0, 0, 0, .4); overflow: hidden; cursor: crosshair; }
.dwe-institute .ni15-key { position: absolute; width: 11%; aspect-ratio: 2.1; transform: translate(-50%, -50%) rotate(-18deg); padding: 0; margin: 0; border: 0; background: none; color: #ecebe5; cursor: crosshair; transition: color 1s; }
.dwe-institute .ni15-key svg { width: 100%; height: 100%; }
.dwe-institute .ni15-white.is-observer .ni15-key { color: #e2e0d6; }
.dwe-institute .ni15-white.is-hint .ni15-key { color: #c9c4b4; }
.dwe-institute .ni15-key.is-found { color: #C5A46D; filter: drop-shadow(0 0 10px #E2C792); }
.dwe-institute .ni15-key:focus-visible { outline: 2px dashed #8a6a2f; }
.dwe-institute .ni15-lock { width: 110px; margin: 10px auto; animation: ni15-float 4s ease-in-out infinite; }
@keyframes ni15-float { 50% { transform: translateY(-8px); } }
.dwe-institute .ni15-morph { font-family: var(--ni-serif); font-style: italic; font-size: 19px; color: var(--sk-accent2); }
.dwe-institute .ni15-marks { max-width: 360px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12px 0; }
.dwe-institute .ni15-orb { position: relative; display: grid; place-items: center; width: 170px; height: 170px; margin: 16px auto; padding: 0; border: 0; border-radius: 50%; cursor: pointer; --f: 0; background: radial-gradient(circle, rgba(255, 233, 168, calc(.15 + var(--f) * .8)) 0, rgba(255, 233, 168, calc(var(--f) * .3)) calc(20% + var(--f) * 40%), transparent 72%); box-shadow: 0 0 0 2px rgba(226, 199, 146, .4); color: #E2C792; font: inherit; letter-spacing: .2em; text-transform: uppercase; touch-action: none; user-select: none; -webkit-user-select: none; transition: background .2s; }
.dwe-institute .ni15-orb.is-full { box-shadow: 0 0 60px rgba(255, 233, 168, .8), 0 0 0 2px #E2C792; }
.dwe-institute .ni15-orb:focus-visible { outline: 3px solid #E2C792; outline-offset: 4px; }
.dwe-institute .ni15-line { text-align: center; font-family: var(--ni-serif); font-style: italic; font-size: 21px; min-height: 1.5em; }
.dwe-institute .ni15-scope { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 28px; align-items: center; }
.dwe-institute .ni15-dome { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, #0e1640, #03050f 70%); box-shadow: 0 0 0 10px #2a3460, 0 0 0 13px #C5A46D, 0 30px 60px rgba(0, 0, 0, .6); touch-action: none; cursor: grab; }
.dwe-institute .ni15-dome:focus-visible { outline: 3px solid #E2C792; outline-offset: 16px; }
.dwe-institute .ni15-wheel { position: absolute; inset: 0; transition: transform .35s ease-out; }
.dwe-institute .ni15-wheel svg { width: 100%; height: 100%; }
.dwe-institute .ni15-const { transition: opacity .4s; opacity: .55; }
.dwe-institute .ni15-const.is-aim { opacity: 1; filter: drop-shadow(0 0 6px #E2C792); }
.dwe-institute .ni15-lens { position: absolute; left: 50%; top: 20%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 2px #E2C792, 0 0 0 999px rgba(3, 5, 15, .35); pointer-events: none; }
.dwe-institute .ni15-lens::before, .dwe-institute .ni15-lens::after { content: ""; position: absolute; background: rgba(226, 199, 146, .5); }
.dwe-institute .ni15-lens::before { left: 50%; top: 10%; bottom: 10%; width: 1px; }
.dwe-institute .ni15-lens::after { top: 50%; left: 10%; right: 10%; height: 1px; }
.dwe-institute .ni15-target { font-family: var(--ni-serif); font-size: 20px; min-height: 3em; }
.dwe-institute .ni15-ending { text-align: center; max-width: 680px; margin: 0 auto; }

/* =====================================================================
 * Responsive (labs 006–015)
 * ===================================================================== */
@media (max-width: 860px) {
	.dwe-institute .ni8-dials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dwe-institute .ni8-file, .dwe-institute .ni9-wrap, .dwe-institute .ni10-hold, .dwe-institute .ni10-metro, .dwe-institute .ni14-cipher, .dwe-institute .ni14-slide, .dwe-institute .ni15-scope { grid-template-columns: 1fr; }
	.dwe-institute .ni10-watch, .dwe-institute .ni10-metronome { max-width: 220px; margin: 0 auto; }
	.dwe-institute .ni15-tower { grid-template-columns: 110px 1fr; gap: 14px; }
}
@media (max-width: 560px) {
	.dwe-institute .ni6-name { font-size: 22px; }
	.dwe-institute .ni7-window { padding: 8px; padding-top: 14%; }
	.dwe-institute .ni8-turn { width: 66px; height: 66px; }
	.dwe-institute .ni8-val { font-size: 13px; }
	.dwe-institute .ni9-place svg { width: 30px; height: 30px; }
	.dwe-institute .ni9-place span { font-size: 12px; max-width: 86px; padding: 0 3px; }
	.dwe-institute .ni10-big { font-size: 60px; }
	.dwe-institute .ni11-bar { flex-wrap: wrap; }
	.dwe-institute .ni12-sky { min-height: 560px; border-radius: 30% 30% 14px 14px / 12% 12% 14px 14px; }
	.dwe-institute .ni12-words { bottom: 140px; font-size: 18px; }
	.dwe-institute .ni12-sky { min-height: 620px; }
	.dwe-institute .ni12-bar, .dwe-institute .ni13-bar { flex-wrap: wrap; }
	.dwe-institute .ni12-bar .dwni-btn, .dwe-institute .ni13-bar .dwni-btn { min-height: 34px; padding: .35em .75em; font-size: 12px; letter-spacing: .06em; }
	.dwe-institute .ni13-view { height: 330px; }
	.dwe-institute .ni13-door { width: 24%; }
	.dwe-institute .ni13-door--0 { left: 3%; }
	.dwe-institute .ni13-door--1 { left: 38%; }
	.dwe-institute .ni13-door--2 { right: 3%; }
	.dwe-institute .ni13-door__label { font-size: 13px; }
	.dwe-institute .ni13-door__label small { display: none; }
	.dwe-institute .ni14-clock { grid-template-columns: 1fr auto; }
	.dwe-institute .ni14-clockbar { grid-column: 1 / -1; }
	.dwe-institute .ni14-locks { gap: 10px; }
	.dwe-institute .ni14-safe__door { padding: 14px; }
	.dwe-institute .ni14-strip { font-size: 22px; letter-spacing: .18em; }
	.dwe-institute .ni14-weight { width: 48px; height: 54px; font-size: 17px; }
	.dwe-institute .ni15-tower { grid-template-columns: 1fr; }
	.dwe-institute .ni15-shaft { max-width: 120px; margin: 0 auto; }
}
.dwe-institute .ni3-table { overflow: hidden; }

/* ---------- v1.2: inside an experiment on a phone, the Institute's menu steps aside ---------- */
@media (max-width: 640px) {
	.dwe-institute[data-skin] .dwni-topbar { display: none; }
	.dwe-institute[data-skin] .dwni-exp-head { flex-wrap: nowrap; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 0 0 10px; }
	.dwe-institute[data-skin] .dwni-exp-head__code { font-size: 12px; letter-spacing: .1em; }
	.dwe-institute[data-skin] .dwni-exp-head__title { font-size: 20px; }
	.dwe-institute[data-skin] .dwni-exp-head [data-leave] { flex: none; min-height: 36px; padding: .4em .8em; letter-spacing: .04em; }
	/* v1.189.8: stage labels wrap onto a second line instead of scrolling sideways off the phone screen. */
	.dwe-institute[data-skin] .dwni-steps { flex-wrap: wrap; overflow: visible; margin: 0 0 12px; gap: 5px; max-width: 100%; }
	.dwe-institute[data-skin] .dwni-steps span { flex: 0 1 auto; max-width: 100%; white-space: normal; overflow-wrap: anywhere; letter-spacing: .06em; font-size: 11px; padding: 3px 8px; }
}

/* v1.189.5: on phones the Final Experiment tower stacks into one column. */
@media (max-width: 640px) { .dwe-institute .ni15-tower { grid-template-columns: 1fr; } }

/* v1.189.7: inside an experiment the Institute covers the screen, so the site menu cannot sit above the scene on
   phones (iPhone Safari does not allow full screen for page elements). The Leave button returns to the dashboard. */
.dwe-institute.dwni-immersive { position: fixed; inset: 0; z-index: 2147483000; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0; padding: 12px; box-sizing: border-box; background: #0c0a1a; max-width: none; width: 100%; overflow-x: hidden; }
/* v1.189.8: the open experiment is centred on the screen (header, stage labels and scene share one centred column). */
.dwe-institute.dwni-immersive > * { box-sizing: border-box; max-width: 1180px; margin-left: auto; margin-right: auto; }
