/* Children's stories: list, reader and scene pages (same palette as the drawing pages) */
.story-breadcrumb { font-size: .9rem; margin-bottom: 1rem; }
.story-breadcrumb a { color: #6A67CE; text-decoration: none; }
.story-breadcrumb .sep { color: #94A3B8; margin: 0 .35rem; }

.story-card { background: #fff; border-radius: 18px; box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
    border: 1px solid rgba(15, 23, 42, .04); }

/* List */
.story-list-hero { background: linear-gradient(135deg, #FFF4E6 0%, #F3EEFF 100%); border-radius: 24px;
    padding: 2rem 2rem 1.75rem; margin-bottom: 2rem; }
.story-list-hero h1 { margin-bottom: .5rem; }
.story-list-hero p { font-size: 1.1rem; max-width: 46rem; margin: 0; color: #475569; }
.story-tile { display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none;
    color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.story-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15, 23, 42, .12); color: inherit; }
.story-tile img { width: 100%; height: auto; aspect-ratio: 2078 / 757; object-fit: cover; }
.story-tile-body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.story-tile-title { font-size: 1.35rem; margin: 0; }
.story-tile-summary { color: #475569; margin: 0; flex: 1; }
.story-badge { display: inline-flex; align-items: center; gap: .35rem; background: #F3EEFF; color: #6A67CE;
    border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; font-weight: 700; }
.story-draft { background: #FFF4E6; color: #B45309; }

/* Reader */
.story-hero { overflow: hidden; margin-bottom: 1.5rem; }
.story-hero img { width: 100%; height: auto; display: block; }
.story-hero-body { padding: 1.5rem 1.75rem; }
.story-hero-body h1 { margin-bottom: .35rem; }
.story-hero-body .lead { color: #475569; }
.story-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.story-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px;
    padding: 0 20px; border-radius: 999px; border: 0; font-weight: 700; color: #fff; text-decoration: none;
    transition: filter .2s ease; }
.story-btn:hover { filter: brightness(.94); color: #fff; }
.story-btn-read { background: #6A67CE; }
.story-btn-print { background: #FF6B6B; }
.story-btn-color { background: #9B5DE5; }
.story-btn-download { background: #4F7BF7; }
.story-btn-light { background: #fff; color: #475569; border: 1.5px solid #E4E8F0; }
.story-btn-light:hover { color: #2A2D34; }

.story-index { display: flex; flex-wrap: wrap; gap: .4rem; padding: 1rem 1.25rem; margin-bottom: 2rem; }
.story-index a { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; background: #F3EEFF; color: #6A67CE; font-weight: 800; text-decoration: none; }
.story-index a:hover, .story-index a.current { background: #6A67CE; color: #fff; }

.story-scene { padding: 1.5rem; margin-bottom: 1.5rem; scroll-margin-top: 1rem; }
.story-scene-number { display: inline-block; font-family: 'Baloo 2', cursive; font-weight: 800; color: #FF6B6B;
    font-size: 1rem; letter-spacing: .03em; text-transform: uppercase; }
.story-scene h2 { font-size: 1.5rem; margin: .1rem 0 .75rem; }
.story-text { font-size: 1.2rem; line-height: 1.8; color: #2A2D34; }
.story-scene-figure { margin: 0; text-align: center; }
.story-scene-figure img { max-width: 100%; height: auto; border-radius: 14px; border: 1px solid #E4E8F0;
    background: #fff; }
.story-scene-figure a { text-decoration: none; }
.story-the-end { text-align: center; font-family: 'Baloo 2', cursive; font-size: 2rem; color: #6A67CE;
    margin: 1rem 0 2rem; }

/* Scene page */
.scene-image { padding: 1rem; text-align: center; }
.scene-image img { max-width: 100%; height: auto; border-radius: 14px; }
.scene-text { padding: 1.5rem; margin-bottom: 1.5rem; }
.scene-text h2 { font-size: 1.2rem; color: #6A67CE; margin-bottom: .5rem; }
.scene-tip { background: #FFF9E6; border-radius: 14px; padding: 1rem 1.25rem; margin-top: 1rem; color: #7A5B00; }
.scene-nav { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.scene-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .6rem;
    padding: 1rem; }
.scene-strip a { display: block; border-radius: 10px; border: 2px solid transparent; overflow: hidden;
    background: #fff; position: relative; }
.scene-strip a.current { border-color: #6A67CE; }
.scene-strip img { width: 100%; height: auto; display: block; }
.scene-strip span { position: absolute; left: 4px; top: 4px; background: rgba(106, 103, 206, .9); color: #fff;
    font-size: .7rem; font-weight: 800; border-radius: 999px; padding: 0 .4rem; }
