/* Project demos and real pictures, re-skinned for the Apple-style layout. */
.theme-light, .theme-alt {
  --d-frame: #ffffff; --d-stage: #fbfbfd; --d-fg: #1d1d1f; --d-muted: #6e6e73; --d-line: #e5e5ea;
  --d-accent: #0066cc; --d-ok: #248a3d; --d-bad: #d70015; --d-warn: #b25000; --d-panel: #f5f5f7;
  --d-shadow: 0 30px 60px -20px rgba(0,0,0,0.18), 0 8px 24px rgba(0,0,0,0.06);
}
.theme-light .demo { --d-frame: #ffffff; }
.theme-dark {
  --d-frame: #1d1d1f; --d-stage: #161617; --d-fg: #f5f5f7; --d-muted: #a1a1a6; --d-line: #2c2c2e;
  --d-accent: #2997ff; --d-ok: #30d158; --d-bad: #ff453a; --d-warn: #ff9f0a; --d-panel: #2c2c2e;
  --d-shadow: 0 30px 80px -20px rgba(41,151,255,0.12), 0 8px 30px rgba(0,0,0,0.5);
}
.project-media { max-width: 980px; margin: 72px auto 0; display: flex; flex-direction: column; gap: 18px; }

/* demo frame */
.demo { background: var(--d-frame); border-radius: var(--radius-lg, 28px); box-shadow: var(--d-shadow); overflow: hidden; position: relative; border: 1px solid var(--d-line); }
.demo-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--d-line); font-size: 13px; color: var(--d-muted); letter-spacing: -0.01em; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--d-ok); flex: none; transition: background 0.3s; }
.demo.is-paused .demo-dot { background: var(--d-muted); }
.demo-title { flex: 1; min-width: 0; color: var(--d-fg); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-btn { font: inherit; font-size: 13px; color: var(--d-accent); background: transparent; border: 0; border-radius: 980px; padding: 6px 12px; min-height: 32px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.demo-btn:hover { background: var(--d-panel); }
.demo-stage { position: relative; height: 360px; padding: 26px 30px; background: var(--d-stage); color: var(--d-fg); font-size: 14px; }
.demo-note { font-size: 13px; line-height: 1.5; color: var(--d-muted); text-align: center; max-width: 720px; margin: 4px auto 0; letter-spacing: -0.01em; }
.demo-note strong { color: var(--d-fg); font-weight: 600; }
.demo-note code { font-family: var(--mono); font-size: 0.92em; }
.mono, .term, .dga-head, .dga-row, .ph-row, .ids-eve, .ids .flow { font-family: var(--mono); }

/* picture strip */
.shots { display: grid; grid-template-columns: repeat(var(--shots, 3), minmax(0, 1fr)); gap: 18px; margin-top: 10px; }
.shots.one { --shots: 1; max-width: 820px; margin-left: auto; margin-right: auto; width: 100%; }
.shot { margin: 0; }
.shot button { display: block; width: 100%; padding: 0; border: 0; background: var(--d-panel); cursor: zoom-in; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius-md, 18px); box-shadow: 0 10px 30px -12px rgba(0,0,0,0.25); }
.shots.one .shot button { aspect-ratio: 1200 / 690; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.shot img.center { object-position: center; }
.shot.contain img { object-fit: contain; }
.shot button:hover img { transform: scale(1.03); }
.shot figcaption { font-size: 12px; color: var(--d-muted); margin-top: 10px; text-align: center; line-height: 1.4; letter-spacing: -0.01em; }

/* lightbox */
.shot-lightbox { border: 0; border-radius: 22px; background: #1d1d1f; padding: 0; max-width: min(1100px, 94vw); max-height: 92vh; color: #f5f5f7; overflow: hidden; }
.shot-lightbox::backdrop { background: rgba(0,0,0,0.72); backdrop-filter: blur(8px); }
.shot-lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 56px); margin: 0 auto; }
.shot-lightbox .lb-bar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 10px 14px 10px 20px; font-size: 13px; color: #a1a1a6; }
.shot-lightbox .lb-bar button { font: inherit; background: #2c2c2e; border: 0; color: #f5f5f7; padding: 7px 16px; border-radius: 980px; cursor: pointer; }

/* ---------- RealCost ---------- */
.rc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; height: 100%; align-items: center; }
.rc-product { background: var(--d-frame); border-radius: 20px; padding: 26px; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 8px; box-shadow: 0 1px 0 var(--d-line) inset, 0 0 0 1px var(--d-line); }
.rc-ex { font-size: 12px; font-weight: 600; color: var(--d-warn); letter-spacing: 0; }
.rc-name { font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -0.025em; }
.rc-sticker { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.rc-sticker small { font-size: 13px; color: var(--d-muted); font-weight: 400; letter-spacing: 0; }
.rc-badge { align-self: flex-start; margin-top: 6px; padding: 6px 14px; border-radius: 980px; background: rgba(36,138,61,0.12); color: var(--d-ok); font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s; }
.rc-badge.on { opacity: 1; transform: none; }
.rc-receipt { background: var(--d-frame); border-radius: 20px; padding: 22px 24px; box-shadow: 0 0 0 1px var(--d-line); }
.rc-receipt h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.02em; color: var(--d-muted); font-weight: 600; }
.rc-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 15px; opacity: 0; transform: translateX(-8px); transition: opacity 0.35s, transform 0.35s; font-variant-numeric: tabular-nums; }
.rc-line.on { opacity: 1; transform: none; }
.rc-line .add { color: var(--d-ok); }
.rc-total { border-top: 1px solid var(--d-line); margin-top: 8px; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.rc-total .num { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--d-accent); font-variant-numeric: tabular-nums; }

/* ---------- Spell Dungeon (keeps the game's own palette) ---------- */
.sd { height: 100%; display: flex; flex-direction: column; gap: 12px; }
.sd-arena { position: relative; flex: 1; border-radius: 16px; background: repeating-conic-gradient(#14243a 0% 25%, #182b44 0% 50%) 0 0 / 28px 28px; overflow: hidden; min-height: 110px; box-shadow: 0 0 0 2px #6b5326 inset; }
.sd-wiz { position: absolute; left: 12%; top: 50%; width: 105px; height: 87.5px; transform: translateY(-50%); background: url(img/spell-dungeon-wizard-tints.png) 0 0 / 420px 87.5px no-repeat; image-rendering: pixelated; border-radius: 6px; }
.sd-wiz[data-tint="1"] { background-position: -105px 0; }
.sd-wiz[data-tint="2"] { background-position: -210px 0; }
.sd-wiz[data-tint="3"] { background-position: -315px 0; }
.sd-tint { position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-size: 11px; color: #f2d48a; letter-spacing: 0.06em; }
.sd-target { position: absolute; right: 14%; top: 50%; width: 40px; height: 40px; transform: translateY(-50%); border: 2px dashed #ff6b8b; border-radius: 50%; }
.sd-target::after { content: ''; position: absolute; inset: 10px; background: #ff6b8b; border-radius: 50%; opacity: 0.6; }
.sd-target.hit { animation: sd-hit 0.5s ease; }
@keyframes sd-hit { 40% { transform: translateY(-50%) scale(1.5); border-color: #ffd36b; } }
.sd-ball { position: absolute; left: calc(12% + 105px); top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: radial-gradient(circle, #fff6c9 0 25%, #ffb347 45%, #ff5e3a 75%, transparent 76%); box-shadow: 0 0 16px #ff8a3a; opacity: 0; }
.sd-ball.fly { animation: sd-fly 0.7s cubic-bezier(.5,0,.8,.6) forwards; }
@keyframes sd-fly { 0% { opacity: 1; left: calc(12% + 105px); } 100% { opacity: 1; left: calc(86% - 26px); } }
.sd-panel { background: #e8d4a6; color: #3b2a14; border-radius: 14px; padding: 14px 18px; font-family: var(--mono); box-shadow: 0 0 0 2px #8a6a2c inset; }
.sd-panel-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.06em; margin-bottom: 6px; }
.sd-timer { color: #a1261b; font-weight: 700; }
.sd-sentence { font-size: 16px; line-height: 1.45; color: #8f7c5c; min-height: 2.9em; }
.sd-sentence .ok { color: #1f7a2e; font-weight: 700; }
.sd-sentence .cur { border-left: 2px solid #3b2a14; margin-left: -1px; }
.sd-meters { display: flex; gap: 18px; font-size: 11px; margin-top: 6px; }

/* ---------- terminal + flow (SpellBattle 2D, IDS) ---------- */
.term { height: 100%; display: flex; flex-direction: column; gap: 16px; }
.term-out { white-space: pre-wrap; line-height: 1.7; min-height: 5.1em; font-size: 14px; background: #1d1d1f; color: #f5f5f7; border-radius: 14px; padding: 14px 18px; }
.term-out .p { color: #30d158; }
.term-out .c { color: #8e8e93; }
.caret { display: inline-block; width: 0.55em; height: 1.05em; background: #f5f5f7; vertical-align: -0.18em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.flow { display: flex; align-items: stretch; gap: 10px; }
.flow .node { flex: 1; min-width: 0; border-radius: 14px; padding: 12px 14px; background: var(--d-frame); box-shadow: 0 0 0 1px var(--d-line); opacity: 0.35; transition: opacity 0.4s, box-shadow 0.4s, transform 0.4s; }
.flow .node.on { opacity: 1; box-shadow: 0 0 0 1.5px var(--d-accent), 0 8px 20px -10px rgba(0,102,204,0.35); }
.flow .node b { display: block; color: var(--d-fg); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.flow .node span { display: block; font-size: 11px; color: var(--d-muted); margin-top: 2px; line-height: 1.35; font-family: var(--font); }
.flow .arrow { align-self: center; color: var(--d-muted); font-size: 14px; flex: none; }
.win { flex: 1; border-radius: 14px; box-shadow: 0 0 0 1px var(--d-line), 0 18px 40px -20px rgba(0,0,0,0.3); background: var(--d-frame); display: flex; flex-direction: column; opacity: 0; transform: scale(0.96); transition: opacity 0.5s, transform 0.5s; min-height: 70px; overflow: hidden; }
.win.on { opacity: 1; transform: none; }
.win-bar { font-size: 12px; padding: 8px 12px; border-bottom: 1px solid var(--d-line); color: var(--d-muted); display: flex; gap: 6px; align-items: center; font-family: var(--font); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-body { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--d-muted); font-size: 13px; font-family: var(--font);
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(0,0,0,0.025) 12px 24px); }
.win-body .fa-play { color: var(--d-accent); }

/* ---------- DGA ---------- */
.dga-head, .dga-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 5em 5.4em; gap: 16px; align-items: center; }
.dga-head { font-size: 11px; color: var(--d-muted); letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--d-line); }
.dga-rows { position: relative; height: calc(100% - 2.6rem); overflow: hidden; }
.dga-row { padding: 9px 0; border-bottom: 1px solid var(--d-line); animation: dga-in 0.35s ease both; font-size: 14px; }
@keyframes dga-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.dga-dom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dga-bar { position: relative; height: 8px; border-radius: 4px; background: var(--d-panel); }
.dga-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: var(--d-ok); transition: width 0.6s ease-out; }
.dga-row.alert .dga-bar i { background: var(--d-bad); }
.dga-bar::after { content: ''; position: absolute; left: 85%; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--d-warn); }
.dga-score { text-align: right; font-variant-numeric: tabular-nums; }
.dga-tag { text-align: center; font-size: 11px; font-weight: 600; padding: 3px 0; border-radius: 980px; color: var(--d-ok); background: rgba(48,209,88,0.12); }
.dga-row.alert .dga-tag { color: var(--d-bad); background: rgba(255,69,58,0.14); }
.dga-legend { position: absolute; right: 30px; bottom: 12px; font-size: 11px; color: var(--d-warn); font-family: var(--mono); }

/* ---------- IDS pipeline + Telegram (light) ---------- */
.ids { height: 100%; display: flex; flex-direction: column; gap: 12px; }
.ids .flow .node { padding: 9px 10px; }
.ids-packet { position: relative; height: 4px; border-radius: 2px; background: var(--d-panel); }
.ids-packet i { position: absolute; top: -4px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--d-warn); box-shadow: 0 0 10px var(--d-warn); opacity: 0; }
.ids-packet i.go { animation: ids-go 2.2s linear forwards; }
@keyframes ids-go { 0% { left: 0; opacity: 1; } 95% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
.ids-eve { font-size: 12px; color: var(--d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; }
.ids-eve b { color: var(--d-warn); font-weight: 400; }
.tg { flex: 1; background: #e7ebf0; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end; }
.tg-msg { align-self: flex-start; max-width: 100%; background: #ffffff; color: #1d1d1f; border-radius: 16px 16px 16px 4px; padding: 9px 13px; font-size: 13px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,0.08); opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s; }
.tg-msg.on { opacity: 1; transform: none; }
.tg-msg .from { color: #168acd; font-weight: 600; font-size: 12px; }
.tg-msg .hdr { font-weight: 700; }
.tg-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.tg-btns span { background: #f0f4f8; color: #168acd; text-align: center; padding: 6px 4px; border-radius: 10px; font-size: 12px; font-weight: 600; transition: background 0.2s, box-shadow 0.2s; }
.tg-btns span.press { background: #d9e8f5; box-shadow: 0 0 0 1.5px #168acd inset; }
.demo[data-demo="ids"] .demo-stage { height: 470px; }

/* ---------- Pi-hole ---------- */
.ph { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; height: 100%; }
.ph-log { overflow: hidden; display: flex; flex-direction: column; gap: 7px; }
.ph-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(48,209,88,0.10); animation: dga-in 0.35s ease both; font-size: 13px; }
.ph-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-row.blk { background: rgba(255,69,58,0.13); }
.ph-row .st { font-size: 11px; font-weight: 600; color: var(--d-ok); }
.ph-row.blk .st { color: var(--d-bad); }
.ph-side { display: flex; flex-direction: column; gap: 12px; }
.ph-hole { border-radius: 18px; padding: 18px; text-align: center; background: var(--d-panel); }
.ph-hole b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.ph-hole span { font-size: 12px; color: var(--d-muted); }
.ph-hole.pulse { animation: ph-pulse 0.5s ease; }
@keyframes ph-pulse { 50% { box-shadow: 0 0 0 4px rgba(255,69,58,0.35); } }
.ph-stat { display: flex; justify-content: space-between; border-bottom: 1px solid var(--d-line); padding: 6px 0; font-size: 14px; color: var(--d-muted); }
.ph-stat b { color: var(--d-fg); font-variant-numeric: tabular-nums; font-size: 17px; }
.ph-meter { height: 8px; border-radius: 4px; background: var(--d-panel); position: relative; overflow: hidden; }
.ph-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--d-bad); transition: width 0.4s; }

/* ---------- Garmin LTC planner (real simulator screens in a round watch) ---------- */
.ltc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 30px; height: 100%; align-items: center; }
.ltc-watch-col { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.ltc-watch { position: relative; width: 250px; height: 250px; border-radius: 50%; padding: 17px; flex: none;
  background: radial-gradient(circle at 30% 25%, #4a4a4e, #1c1c1e 60%, #0a0a0b); box-shadow: 0 0 0 3px #2c2c2e, 0 22px 40px -18px rgba(0,0,0,0.55), inset 0 2px 3px rgba(255,255,255,0.18); }
.ltc-btn { position: absolute; width: 9px; height: 30px; border-radius: 3px; background: linear-gradient(90deg, #3a3a3c, #1c1c1e); }
.ltc-btn.b1 { right: -7px; top: 56px; } .ltc-btn.b2 { right: -7px; bottom: 56px; } .ltc-btn.b3 { left: -7px; top: 50%; margin-top: -15px; }
.ltc-lens { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #000; box-shadow: inset 0 0 0 2px #000, 0 0 0 2px #3a3a3c; }
.ltc-lens img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: translateY(6%); transition: opacity 0.18s ease, transform 0.3s ease; }
.ltc-lens img.on { opacity: 1; transform: none; transition: opacity 0.35s ease 0.2s, transform 0.4s ease 0.2s; }
.ltc-lens img.up { transform: translateY(-6%); }
.ltc-cap { font-size: 13px; line-height: 1.4; color: var(--d-muted); text-align: center; min-height: 2.8em; max-width: 280px; margin: 0; letter-spacing: -0.01em; }
.ltc-cap b { color: var(--d-fg); font-weight: 600; }
.ltc-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ltc-side .flow .node { padding: 10px 11px; }
.ltc-side .flow .node b, .ltc-side .flow .node span { font-family: var(--font); }
.ltc-wire { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 12px; line-height: 1.55; }
.ltc-req, .ltc-res { background: #1d1d1f; color: #f5f5f7; border-radius: 12px; padding: 10px 14px; overflow: hidden; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
.ltc-req.on, .ltc-res.on { opacity: 1; transform: none; }
.ltc-wire .m { color: #2997ff; font-weight: 700; }
.ltc-wire .m.ok { color: #30d158; }
.shots-watch .shot button { background: #000; aspect-ratio: 16 / 11; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .project-media { margin-top: 48px; }
  .demo { border-radius: 22px; }
  .demo-stage { height: 330px; padding: 18px; font-size: 12.5px; }
  .shots { gap: 10px; }
  .shot button { border-radius: 12px; }
  .shot figcaption { font-size: 11px; }
  .rc { grid-template-columns: 1fr; gap: 12px; align-items: stretch; }
  .demo[data-demo="realcost"] .demo-stage { height: auto; }
  .rc-product { height: auto; padding: 16px 18px; gap: 4px; }
  .rc-name { font-size: 18px; } .rc-sticker { font-size: 22px; }
  .rc-receipt { padding: 14px 18px; } .rc-line { padding: 3px 0; font-size: 14px; } .rc-total .num { font-size: 24px; }
  .sd-sentence { font-size: 13px; }
  .sd-wiz { left: 8%; width: 84px; height: 70px; background-size: 336px 70px; }
  .sd-wiz[data-tint="1"] { background-position: -84px 0; } .sd-wiz[data-tint="2"] { background-position: -168px 0; } .sd-wiz[data-tint="3"] { background-position: -252px 0; }
  @keyframes sd-fly { 0% { opacity: 1; left: calc(8% + 84px); } 100% { opacity: 1; left: calc(86% - 26px); } }
  .term-out { font-size: 12px; padding: 12px 14px; }
  .flow { gap: 6px; } .flow .arrow { display: none; } .flow .node { padding: 9px 8px; } .flow .node span { display: none; }
  .flow .node b { font-size: 11px; overflow-wrap: normal; }
  .dga-head, .dga-row { grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.7fr) 4.4em 4.6em; gap: 8px; font-size: 12px; }
  .dga-head { font-size: 10px; } .dga-head span:nth-child(2) { visibility: hidden; }
  .dga-legend { right: 18px; }
  .ids .flow .node { padding: 8px 3px; text-align: center; }
  .ids .flow .node b { font-size: 9.5px; letter-spacing: -0.03em; word-break: keep-all; }
  .demo[data-demo="ids"] .demo-stage { height: 470px; }
  .tg-msg { font-size: 11.5px; } .tg-btns span { font-size: 10.5px; padding: 6px 2px; }
  .ph { grid-template-columns: 1fr; gap: 12px; }
  .ph-side { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .ph-hole { flex: 1 1 100%; padding: 10px; } .ph-hole b { font-size: 17px; }
  .ph-stat { flex: 1 1 40%; font-size: 12px; } .ph-stat b { font-size: 14px; }
  .ph-meter { flex: 1 1 100%; }
  .demo[data-demo="pihole"] .demo-stage { height: 360px; }
  .demo[data-demo="ltc"] .demo-stage { height: auto; }
  .ltc { grid-template-columns: 1fr; gap: 14px; }
  .ltc-watch { width: 190px; height: 190px; padding: 13px; }
  .ltc-btn { height: 24px; } .ltc-btn.b1 { top: 42px; } .ltc-btn.b2 { bottom: 42px; } .ltc-btn.b3 { margin-top: -12px; }
  .ltc-cap { font-size: 12px; min-height: 2.8em; }
  .ltc-side .flow .node { padding: 8px 4px; text-align: center; }
  .ltc-side .flow .node b { font-size: 10.5px; letter-spacing: -0.02em; }
  .ltc-wire { font-size: 10.5px; }
  .ltc-req, .ltc-res { padding: 8px 10px; }
}
@media (max-width: 420px) { .shots { --shots: 3; } .demo-head { padding: 12px 14px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .sd-ball.fly, .ids-packet i.go, .dga-row, .ph-row, .sd-target.hit, .ph-hole.pulse, .caret { animation: none !important; }
  .ltc-lens img, .ltc-req, .ltc-res { transform: none !important; }
}

/* "More" toggles: screenshot galleries and extra demos, collapsed by default */
.more { margin-top: 6px; }
.more > summary { list-style: none; display: block; width: fit-content; margin: 0 auto; cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--d-accent); background: var(--d-panel); border-radius: 980px; padding: 9px 20px; min-height: 40px; line-height: 22px; transition: background 0.2s; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.25s; }
.more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.more > summary:hover { background: var(--d-line); }
.more > summary:focus-visible { outline: 2px solid var(--d-accent); outline-offset: 3px; }
.more[open] > summary { margin-bottom: 18px; }
.more .demo { margin-bottom: 14px; }
.more > .demo-note { margin-bottom: 4px; }

/* ---- Round 2 additions ---- */
.demo-tag { flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 3px 10px; border-radius: 980px; border: 1px solid var(--d-line); color: var(--d-muted); white-space: nowrap; }
.sd-panel-top { align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.sd-time { white-space: nowrap; margin-left: auto; }
.sd-spell { white-space: nowrap; }
@media (max-width: 420px) { .demo-tag { font-size: 10px; padding: 2px 8px; } .sd-panel-top { font-size: 10px; letter-spacing: 0.04em; } }
