.dsp-story { margin: 2em 0; }
.dsp-story *, .dsp-story *::before, .dsp-story *::after { box-sizing: border-box; }

/* Frame (one storyboard panel) */
.dsp-frame { margin: 0 0 1.5em; background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.dsp-media { position: relative; background: #f3f3f3; }
.dsp-media .dsp-img { display: block; width: 100%; height: auto; margin: 0; }
.dsp-badge { position: absolute; top: 12px; left: 12px; background: rgba(17, 17, 17, .82); color: #fff; font-size: 13px; font-weight: 600; line-height: 1; padding: 7px 11px; border-radius: 999px; letter-spacing: .02em; }
.dsp-badge-inline { position: static; display: inline-block; margin: 16px 18px 0; }
.dsp-caption { padding: 16px 18px 18px; }
.dsp-title { margin: 0 0 .4em; font-size: 1.35em; line-height: 1.3; }
.dsp-text > :last-child { margin-bottom: 0; }

/* One-part-per-page navigation */
.dsp-nav { margin-top: 1em; }
.dsp-progress { height: 4px; background: #ececec; border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.dsp-progress span { display: block; height: 100%; background: #111; }
.dsp-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dsp-btn { display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; text-decoration: none !important; line-height: 1.2; border: 1px solid #111; color: #111 !important; background: #fff; }
.dsp-next { background: #111; color: #fff !important; }
.dsp-btn:hover { opacity: .85; }
.dsp-btn.is-disabled { opacity: .3; pointer-events: none; }
.dsp-end { background: #f3f3f3; border-color: #f3f3f3; }
.dsp-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dsp-dots li { margin: 0; padding: 0; }
.dsp-dots a, .dsp-dots span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 50%; border: 1px solid #ddd; font-size: 14px; text-decoration: none !important; color: #333 !important; }
.dsp-dots .is-current { background: #111; border-color: #111; color: #fff !important; font-weight: 700; }

/* Storyboard grid (all parts) */
.dsp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dsp-grid .dsp-frame { margin: 0; }
.dsp-grid .dsp-media .dsp-img { aspect-ratio: 16 / 10; object-fit: cover; }
.dsp-grid .dsp-title { font-size: 1.1em; }

@media (max-width: 600px) {
	.dsp-grid { grid-template-columns: 1fr; }
	.dsp-nav-row { justify-content: center; }
	.dsp-dots { order: -1; width: 100%; }
	.dsp-btn { flex: 1; text-align: center; }
}

/* Per-part link button */
.dsp-link-wrap { margin: 14px 0 0; }
.dsp-link { display: inline-block; padding: 9px 16px; border-radius: 8px; background: #111; color: #fff !important; font-weight: 600; text-decoration: none !important; line-height: 1.2; }
.dsp-link:hover { opacity: .85; }

/* Story header (name + part number) */
.dsp-story-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 1.25em; padding: 12px 16px; background: #fff; border: 1px solid #e6e6e6; border-left: 4px solid #111; border-radius: 10px; }
.dsp-story-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #777; }
.dsp-story-name { font-size: 1.1em; line-height: 1.3; }
.dsp-story-partno { margin-left: auto; background: #111; color: #fff; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; line-height: 1; }

/* Story links */
.dsp-story-links { margin: 2em 0 1em; padding: 16px 18px; background: #fafafa; border: 1px solid #e6e6e6; border-radius: 12px; }
.dsp-story-links-title { margin: 0 0 10px; font-weight: 700; font-size: 1.05em; }
.dsp-story-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dsp-story-links li { margin: 0; padding: 0; }
.dsp-story-links a { display: inline-block; padding: 9px 14px; border: 1px solid #111; border-radius: 8px; background: #fff; color: #111 !important; font-weight: 600; text-decoration: none !important; line-height: 1.2; }
.dsp-story-links a:hover { background: #111; color: #fff !important; }
@media (max-width: 600px) {
	.dsp-story-links ul { flex-direction: column; }
	.dsp-story-links a { display: block; }
}

/* Clickable part number */
a.dsp-story-partno.is-link { text-decoration: none !important; color: #fff !important; }
a.dsp-story-partno.is-link:hover { background: #333; }

/* Chapter navigation: Previous | LIST STORY | Next */
.dsp-chapters { margin: 2em 0 1.5em; }
.dsp-ch-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; padding: 14px; background: #f3f9fa; border: 1px solid #d3e8eb; border-radius: 24px; box-shadow: 0 10px 28px rgba(13, 59, 94, .08); }
.dsp-ch-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 0 22px; border-radius: 16px; font-weight: 700; font-size: 1.15em; line-height: 1.2; text-decoration: none !important; text-align: center; box-sizing: border-box; }
a.dsp-ch-btn { background: linear-gradient(90deg, #0f7b86 0%, #0d3b5e 100%); color: #fff !important; transition: filter .15s, transform .15s; }
a.dsp-ch-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.dsp-ch-btn.is-disabled { background: #ece5ec; border: 1px solid #e0d5e0; color: #6d5f71; cursor: default; }
.dsp-ch-list { position: relative; }
.dsp-ch-list > summary { list-style: none; height: 100%; }
.dsp-ch-list > summary::-webkit-details-marker { display: none; }
.dsp-ch-mid { cursor: pointer; padding: 0 34px; background: #fff; color: #12395a; border: 2px solid #12395a; box-shadow: inset 0 0 0 3px #dcefF2; text-transform: uppercase; letter-spacing: .04em; user-select: none; }
.dsp-ch-mid:hover, .dsp-ch-list[open] > .dsp-ch-mid { background: #f0f8f9; }
.dsp-ch-list ol { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); z-index: 60; width: max-content; min-width: 260px; max-width: min(420px, 90vw); max-height: 60vh; overflow: auto; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid #d3e8eb; border-radius: 16px; box-shadow: 0 16px 36px rgba(13, 59, 94, .18); }
.dsp-ch-list li { margin: 0; padding: 0; }
.dsp-ch-list li a, .dsp-ch-list li span { display: block; padding: 10px 14px; border-radius: 10px; color: #12395a !important; text-decoration: none !important; line-height: 1.35; font-size: .95em; }
.dsp-ch-list li b { display: block; font-size: .8em; text-transform: uppercase; letter-spacing: .05em; color: #0f7b86; }
.dsp-ch-list li a:hover { background: #f0f8f9; }
.dsp-ch-list li .is-current { background: #e3f2f4; font-weight: 600; }
@media (max-width: 600px) {
	.dsp-ch-bar { gap: 8px; padding: 10px; border-radius: 18px; }
	.dsp-ch-btn { min-height: 52px; padding: 0 10px; font-size: .95em; border-radius: 12px; }
	.dsp-ch-mid { padding: 0 12px; font-size: .85em; }
}

/* LIST STORY button animation */
.dsp-chapters button.dsp-ch-mid { -webkit-appearance: none; appearance: none; margin: 0; font-family: inherit; font-size: 1.15em; font-weight: 700; line-height: 1.2; background: #fff; color: #12395a; border: 2px solid #12395a; box-shadow: inset 0 0 0 3px #dceff2; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .25s ease, background .2s ease; }
.dsp-chapters button.dsp-ch-mid:hover { background: #f0f8f9; transform: translateY(-2px); box-shadow: inset 0 0 0 3px #dceff2, 0 8px 18px rgba(18, 57, 90, .15); }
.dsp-chapters button.dsp-ch-mid:active { transform: scale(.96); }
.dsp-chapters button.dsp-ch-mid:focus-visible { outline: 3px solid #0f7b86; outline-offset: 3px; }
.dsp-ch-icon { flex: none; transition: transform .3s ease; }
.dsp-chapters button.dsp-ch-mid:hover .dsp-ch-icon { transform: rotate(-8deg) scale(1.1); }
.dsp-chapters button.dsp-ch-mid::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(15, 123, 134, .25); transform: scale(0); opacity: 0; pointer-events: none; }
.dsp-chapters button.dsp-ch-mid.is-pressed::after { animation: dsp-ripple .55s ease-out; }
@keyframes dsp-ripple { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(22); opacity: 0; } }

/* LIST STORY pop-up card */
html.dsp-modal-lock { overflow: hidden; }
.dsp-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; pointer-events: none; transition: visibility 0s linear .35s; }
.dsp-modal.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.dsp-modal-backdrop { position: absolute; inset: 0; background: rgba(9, 32, 48, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
.dsp-modal.is-open .dsp-modal-backdrop { opacity: 1; }
.dsp-modal-card { position: relative; width: 100%; max-width: 460px; max-height: min(78vh, 640px); display: flex; flex-direction: column; background: #fff; border-radius: 24px; box-shadow: 0 30px 70px rgba(9, 32, 48, .35); overflow: hidden; opacity: 0; transform: translateY(28px) scale(.94); transition: transform .38s cubic-bezier(.2, .9, .25, 1.15), opacity .25s ease; }
.dsp-modal.is-open .dsp-modal-card { opacity: 1; transform: none; }
.dsp-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 18px; background: linear-gradient(120deg, #0f7b86 0%, #0d3b5e 100%); color: #fff; }
.dsp-modal-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.dsp-modal-title { margin: 4px 0 2px !important; font-size: 1.35em; line-height: 1.25; color: #fff !important; }
.dsp-modal-sub { margin: 0 !important; font-size: .9em; opacity: .8; }
.dsp-modal-close { -webkit-appearance: none; appearance: none; flex: none; width: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; line-height: 38px; text-align: center; cursor: pointer; transition: background .2s, transform .25s; }
.dsp-modal-close:hover { background: rgba(255, 255, 255, .28); transform: rotate(90deg); }
.dsp-modal-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.dsp-modal-list { list-style: none; margin: 0 !important; padding: 10px !important; overflow-y: auto; }
.dsp-modal-list li { margin: 0 !important; padding: 0 !important; opacity: 0; transform: translateY(10px); }
.dsp-modal.is-open .dsp-modal-list li { animation: dsp-item-in .4s ease forwards; animation-delay: calc(.08s + var(--i, 0) * .05s); }
@keyframes dsp-item-in { to { opacity: 1; transform: none; } }
.dsp-m-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; color: #12395a !important; text-decoration: none !important; transition: background .2s, transform .2s; }
a.dsp-m-item:hover, a.dsp-m-item:focus-visible { background: #eef7f8; transform: translateX(4px); outline: none; }
.dsp-m-num { flex: none; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; background: #e8f3f5; color: #0d3b5e; }
.dsp-m-text { flex: 1; min-width: 0; line-height: 1.35; font-size: .95em; }
.dsp-m-text b { display: block; font-size: .75em; letter-spacing: .08em; text-transform: uppercase; color: #0f7b86; }
.dsp-m-arrow { flex: none; color: #0f7b86; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
a.dsp-m-item:hover .dsp-m-arrow { opacity: 1; transform: none; }
.dsp-m-item.is-current { background: #e3f2f4; }
.dsp-m-item.is-current .dsp-m-num { background: linear-gradient(135deg, #0f7b86, #0d3b5e); color: #fff; }
.dsp-m-tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #0f7b86; padding: 4px 8px; border-radius: 999px; }
@media (max-width: 600px) {
	.dsp-chapters button.dsp-ch-mid { font-size: .85em; }
	.dsp-ch-icon { display: none; }
	.dsp-modal { align-items: flex-end; padding: 0; }
	.dsp-modal-card { max-width: none; max-height: 82vh; border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .38s cubic-bezier(.2, .9, .25, 1), opacity .2s ease; }
}
@media (prefers-reduced-motion: reduce) {
	.dsp-modal-card, .dsp-modal-backdrop, .dsp-modal-list li, .dsp-chapters button.dsp-ch-mid { transition: none !important; animation: none !important; opacity: 1; transform: none; }
}

/* LIST STORY neon moving light */
@property --dsp-neon-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.dsp-chapters button.dsp-ch-mid { border: 0; isolation: isolate; background: #fff; box-shadow: 0 4px 14px rgba(13, 59, 94, .10); transition: transform .25s ease, box-shadow .25s ease, background .2s ease; }
.dsp-chapters button.dsp-ch-mid:hover { transform: translateY(-2px); background: #fbfeff; box-shadow: 0 8px 22px rgba(15, 123, 134, .18), 0 0 0 4px rgba(94, 234, 212, .12); }
.dsp-chapters button.dsp-ch-mid > * { position: relative; z-index: 1; }
.dsp-chapters button.dsp-ch-mid::before { content: ""; position: absolute; inset: 0; z-index: 0; padding: 2px; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--dsp-neon-a), #cfe3ea 0deg, #cfe3ea 250deg, rgba(15, 123, 134, .35) 285deg, #2dd4bf 320deg, #a7f3d0 335deg, rgba(45, 212, 191, .3) 348deg, #cfe3ea 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: dsp-neon-spin 6s linear infinite; }
@keyframes dsp-neon-spin { to { --dsp-neon-a: 360deg; } }
@media (prefers-reduced-motion: reduce) {
	.dsp-chapters button.dsp-ch-mid::before { animation: none !important; }
}
