/* ==========================================================================
   Nuestra Historia — cinematic editorial landing.
   Scoped under .story-page. Reuses the --lux-* token layer from gold.css
   and the motion contract of lux-reveal.js (data-lux-reveal / data-lux-stagger).
   ========================================================================== */

.story-page {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(5, 150, 105, 0.10), transparent 60%),
        linear-gradient(180deg, #07090c 0%, #07120d 38%, #07090c 100%);
    color: var(--lux-text);
}

/* --- Reading progress bar ------------------------------------------------- */
.story-progress {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1030;
    height: 2px;
    pointer-events: none;
}

.story-progress__bar {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--lux-gold-grad);
    transform-origin: 0 50%;
    transform: scaleX(0);
    will-change: transform;
}

/* --- Shared type ---------------------------------------------------------- */
.story-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-family: var(--lux-font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.32em;
    color: var(--lux-gold-300);
}

.story-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--lux-gold-grad);
}

.story-h2 {
    max-width: 720px;
    margin: 0 0 22px;
    font-family: var(--lux-font-display);
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--lux-text);
}

.story-h2--center {
    margin-inline: auto;
    text-align: center;
}

.story-lede {
    max-width: 720px;
    margin: 0 0 14px;
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    line-height: 1.75;
    color: var(--lux-body);
}

.story-prose p {
    margin: 0 0 16px;
    font-size: clamp(0.98rem, 1.5vw, 1.05rem);
    line-height: 1.8;
    color: var(--lux-body);
}

.story-prose__key {
    max-width: 720px;
    margin: 0 0 14px;
    font-size: clamp(0.98rem, 1.5vw, 1.05rem);
    line-height: 1.8;
    color: var(--lux-body);
}

.story-quote {
    position: relative;
    max-width: 620px;
    margin: 0;
    padding: 18px 0 18px 26px;
    border-left: 2px solid rgba(245, 158, 11, 0.55);
    font-family: var(--lux-font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--lux-gold-300);
}

.story-quote--block {
    margin-top: 10px;
    color: var(--lux-text);
}

.story-phrase {
    max-width: 760px;
    margin: 34px auto 0;
    text-align: center;
    font-family: var(--lux-font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.5;
    color: var(--lux-body);
}

.story-phrase strong {
    display: block;
    margin-top: 6px;
    background: var(--lux-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* --- Buttons --------------------------------------------------------------- */
.story-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding: 15px 30px;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.25s var(--lux-ease), box-shadow 0.25s var(--lux-ease), filter 0.25s var(--lux-ease);
}

.story-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s var(--lux-ease);
}

.story-btn:hover,
.story-btn:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: var(--lux-gold-glow);
    outline: none;
}

.story-btn:hover::after,
.story-btn:focus-visible::after {
    transform: translateX(120%);
}

.story-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   S01 · Hero
   ========================================================================== */
.story-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(100vh, 860px);
    min-height: min(100svh, 860px);
    overflow: clip;
}

.story-hero__media,
.story-hero__media > * {
    position: absolute;
    inset: 0;
}

.story-hero__media img,
.story-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 9, 12, 0.55) 0%, rgba(7, 9, 12, 0.35) 40%, rgba(7, 9, 12, 0.96) 100%),
        radial-gradient(90% 70% at 50% 110%, rgba(5, 150, 105, 0.22), transparent 65%);
}

.story-hero__light {
    position: absolute;
    top: -20%;
    left: 50%;
    width: min(720px, 90vw);
    height: min(720px, 90vw);
    background: radial-gradient(closest-side, rgba(245, 158, 11, 0.20), transparent 70%);
    filter: blur(60px);
    transform: translateX(-50%);
    animation: story-light-drift 14s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes story-light-drift {
    from { transform: translateX(-58%) translateY(0); opacity: 0.75; }
    to   { transform: translateX(-42%) translateY(4%); opacity: 1; }
}

.story-hero__content {
    position: relative;
    z-index: 2;
    padding-block: 120px 140px;
    text-align: center;
}

.story-hero__title {
    display: grid;
    gap: 10px;
    justify-items: center;
    margin: 0 0 26px;
    font-family: var(--lux-font-display);
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.025em;
    color: var(--lux-text);
}

.story-hero__line:last-child {
    background: var(--lux-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.story-hero__subtitle {
    max-width: 640px;
    margin: 0 auto 8px;
    font-size: clamp(1rem, 1.7vw, 1.12rem);
    line-height: 1.75;
    color: var(--lux-body);
}

.story-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 46px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 999px;
    transform: translateX(-50%);
}

.story-hero__scroll-dot {
    width: 4px;
    height: 10px;
    border-radius: 999px;
    background: var(--lux-gold-300);
    animation: story-scroll-dot 2.2s var(--lux-ease) infinite;
}

@keyframes story-scroll-dot {
    0%   { transform: translateY(-4px); opacity: 0; }
    35%  { opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* ==========================================================================
   Photo slots — designed fallback while the photography set lands.
   Each fallback keeps the emerald/black + gold art direction.
   ========================================================================== */
.story-fallback {
    background:
        radial-gradient(120% 100% at var(--fb-x, 50%) var(--fb-y, 40%), rgba(245, 158, 11, var(--fb-glow, 0.22)), transparent 62%),
        linear-gradient(160deg, #0a1510 0%, #07090c 55%, #0b1210 100%);
}

.story-fallback--hero      { --fb-x: 50%;  --fb-y: 30%; --fb-glow: 0.26; }
.story-fallback--origin    { --fb-x: 30%;  --fb-y: 70%; --fb-glow: 0.20; }
.story-fallback--gesture   { --fb-x: 70%;  --fb-y: 35%; --fb-glow: 0.22; }
.story-fallback--mission   { --fb-x: 35%; --fb-y: 25%; --fb-glow: 0.24; }
.story-fallback--vision   { --fb-x: 65%; --fb-y: 20%; --fb-glow: 0.24; }
.story-fallback--community { --fb-x: 30%; --fb-y: 65%; --fb-glow: 0.18; }
.story-fallback--education { --fb-x: 70%; --fb-y: 60%; --fb-glow: 0.18; }
.story-fallback--closing   { --fb-x: 50%; --fb-y: 55%; --fb-glow: 0.30; }

/* --- Media blocks ---------------------------------------------------------- */
.story-media {
    position: relative;
    margin: 0;
    overflow: clip;
    border-radius: var(--lux-radius-md, 16px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.story-media img,
.story-media .story-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-media__cap {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--lux-glass);
    backdrop-filter: var(--lux-blur);
    font-family: var(--lux-font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--lux-body);
}

/* Clip-path reveal (activated by lux-reveal's .is-visible) */
.story-js .story-media[data-lux-reveal] {
    opacity: 1;
    transform: none;
    clip-path: inset(0 12% 0 12% round var(--lux-radius-md, 16px));
    transition: clip-path 1.1s var(--lux-ease-out-expo);
}

.story-js .story-media[data-lux-reveal].is-visible {
    clip-path: inset(0 0 0 0 round var(--lux-radius-md, 16px));
}

/* Slow cinematic zoom (gesture section) */
[data-story-zoom] {
    transform: scale(1.12);
    transition: transform 9s linear;
}

.is-visible [data-story-zoom],
[data-story-zoom].is-visible {
    transform: scale(1);
}

/* ==========================================================================
   S02 · Origen
   ========================================================================== */
.story-origin {
    position: relative;
    padding-block: clamp(80px, 10vw, 140px);
}

.story-line {
    position: absolute;
    background: var(--lux-gold-grad);
    opacity: 0.75;
    transform-origin: 0 50%;
    transform: scaleY(var(--story-line-progress, 0));
}

.story-line--v {
    top: 0;
    bottom: 0;
    left: clamp(18px, 4vw, 64px);
    width: 2px;
    display: none;
}

.story-origin__grid {
    display: grid;
    gap: clamp(36px, 5vw, 64px);
    align-items: center;
}

.story-media--origin {
    aspect-ratio: 4 / 3;
}

@media (min-width: 992px) {
    .story-line--v { display: block; }
    .story-origin__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* ==========================================================================
   S03 · El gesto
   ========================================================================== */
.story-gesture {
    position: relative;
    padding-block: clamp(80px, 10vw, 140px);
}

.story-gesture__media {
    position: relative;
    margin: 0 0 clamp(28px, 4vw, 44px);
    border-radius: var(--lux-radius-lg, 22px);
    overflow: clip;
    aspect-ratio: 16 / 9;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.story-gesture__media img,
.story-gesture__media .story-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-gesture__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 9, 12, 0.15) 0%, rgba(7, 9, 12, 0.35) 55%, rgba(7, 9, 12, 0.85) 100%);
}

.story-gesture__content { position: relative; }

.story-gesture__quote {
    margin: 30px 0 0;
    padding: 22px 28px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: var(--lux-radius-md, 16px);
    background: var(--lux-gold-grad-soft);
    font-family: var(--lux-font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--lux-gold-300);
    text-align: center;
}

/* ==========================================================================
   S04 · Por qué nació
   ========================================================================== */
.story-why {
    padding-block: clamp(80px, 10vw, 140px);
}

.story-why__track {
    position: relative;
    display: grid;
    gap: clamp(24px, 3vw, 40px);
    margin-top: clamp(36px, 5vw, 56px);
}

.story-line--h {
    position: absolute;
    top: 34px;
    left: 8%;
    right: 8%;
    height: 2px;
    display: none;
    transform-origin: 0 50%;
    transform: scaleX(var(--story-line-progress, 0));
}

.story-why__block {
    position: relative;
    padding: 30px 26px 28px;
    border: 1px solid var(--lux-line);
    border-radius: var(--lux-radius-md, 16px);
    background: linear-gradient(180deg, var(--lux-surface-2) 0%, var(--lux-surface) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.3s var(--lux-ease), border-color 0.3s var(--lux-ease), box-shadow 0.3s var(--lux-ease);
}

.story-why__block:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 48px -24px rgba(245, 158, 11, 0.35);
}

.story-why__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(245, 158, 11, 0.16), transparent);
    font-size: 24px;
    color: var(--lux-gold-300);
}

.story-why__block h3 {
    margin: 0 0 10px;
    font-family: var(--lux-font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lux-text);
}

.story-why__block p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--lux-body);
}

@media (min-width: 992px) {
    .story-why__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .story-line--h { display: block; }
}

/* ==========================================================================
   Cards (pillars, values, areas, team)
   ========================================================================== */
.story-card {
    position: relative;
    padding: 28px 24px 26px;
    border: 1px solid var(--lux-line);
    border-radius: var(--lux-radius-md, 16px);
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(5, 150, 105, 0.08), transparent 70%),
        linear-gradient(180deg, var(--lux-surface-2) 0%, var(--lux-surface) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.3s var(--lux-ease), border-color 0.3s var(--lux-ease), box-shadow 0.3s var(--lux-ease);
}

.story-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 48px -28px rgba(245, 158, 11, 0.4);
}

.story-card__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 14px;
    background: var(--lux-gold-grad-soft);
    font-size: 22px;
    color: var(--lux-gold-300);
}

.story-card h3 {
    margin: 0 0 10px;
    font-family: var(--lux-font-display);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--lux-text);
}

.story-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--lux-body);
}

.story-card--team .story-card__meta {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 12px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    background: var(--lux-gold-grad-soft);
    font-family: var(--lux-font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--lux-gold-300);
}

.story-what__grid,
.story-team__grid {
    display: grid;
    gap: 22px;
    margin-top: clamp(32px, 4vw, 48px);
}

.story-values__grid {
    display: grid;
    gap: 20px;
    margin-top: clamp(32px, 4vw, 48px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-commitment__areas {
    display: grid;
    gap: 20px;
    margin-top: 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .story-what__grid,
    .story-team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .story-commitment__areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .story-values__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   S06 · Misión y visión
   ========================================================================== */
.story-mv { padding-block: clamp(80px, 10vw, 140px); }

.story-mv__grid {
    display: grid;
    gap: clamp(24px, 3vw, 40px);
    margin-top: clamp(32px, 4vw, 52px);
}

.story-mv__panel {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--lux-line);
    border-radius: var(--lux-radius-lg, 22px);
    overflow: clip;
    background: linear-gradient(180deg, var(--lux-surface-2) 0%, var(--lux-surface) 100%);
    transition: transform 0.3s var(--lux-ease), border-color 0.3s var(--lux-ease);
}

.story-mv__panel:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.3);
}

.story-mv__media {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 8;
    overflow: clip;
}

.story-mv__media img,
.story-mv__media .story-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-mv__tag {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: var(--lux-glass);
    backdrop-filter: var(--lux-blur);
    font-family: var(--lux-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--lux-gold-300);
}

.story-mv__body {
    padding: 26px 26px 30px;
}

.story-mv__body h3 {
    margin: 0 0 12px;
    font-family: var(--lux-font-display);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--lux-text);
}

.story-mv__body p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--lux-body);
}

@media (min-width: 992px) {
    .story-mv__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   S08 · Compromiso
   ========================================================================== */
.story-commitment { padding-block: clamp(80px, 10vw, 140px); }

.story-commitment__grid {
    display: grid;
    gap: 22px;
    margin-top: clamp(28px, 4vw, 44px);
}

.story-media--commit { aspect-ratio: 4 / 3; }

.story-commitment__note {
    margin: clamp(32px, 4vw, 48px) 0 0;
    font-family: var(--lux-font-mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--lux-gold-300);
}

@media (min-width: 768px) {
    .story-commitment__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   S10 · Cierre
   ========================================================================== */
.story-closing {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(88vh, 760px);
    overflow: clip;
    text-align: center;
}

.story-closing__media,
.story-closing__media > * {
    position: absolute;
    inset: 0;
}

.story-closing__shade {
    background:
        linear-gradient(180deg, rgba(7, 9, 12, 0.92) 0%, rgba(7, 9, 12, 0.55) 45%, rgba(7, 18, 13, 0.96) 100%),
        radial-gradient(70% 60% at 50% 55%, rgba(5, 150, 105, 0.18), transparent 70%);
}

.story-closing__light {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(560px, 80vw);
    height: min(560px, 80vw);
    background: radial-gradient(closest-side, rgba(245, 158, 11, 0.16), transparent 70%);
    filter: blur(50px);
    transform: translate(-50%, -50%);
    animation: story-light-breathe 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes story-light-breathe {
    from { opacity: 0.65; }
    to   { opacity: 1; }
}

.story-closing__content {
    position: relative;
    z-index: 2;
    padding-block: clamp(100px, 14vw, 160px);
}

.story-closing__title {
    margin: 0 0 18px;
    font-family: var(--lux-font-display);
    font-size: clamp(1.8rem, 4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--lux-text);
}

.story-closing__text {
    max-width: 640px;
    margin: 0 auto 14px;
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    line-height: 1.75;
    color: var(--lux-body);
}

.story-closing__final {
    max-width: 720px;
    margin: 6px auto 22px;
    font-family: var(--lux-font-display);
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 800;
    line-height: 1.35;
    background: var(--lux-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.story-slogan {
    margin: 0 0 6px;
    font-family: var(--lux-font-mono);
    font-size: 13px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--lux-gold-300);
}

/* ==========================================================================
   Reduced motion & small screens
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .story-hero__light,
    .story-hero__scroll-dot,
    .story-closing__light {
        animation: none;
    }

    .story-btn::after { display: none; }

    .story-btn,
    .story-card,
    .story-why__block,
    .story-mv__panel,
    [data-story-zoom] {
        transition: none;
    }

    .story-guide { transition: none; }

    .story-js .story-media[data-lux-reveal] {
        clip-path: none;
        transition: none;
    }

    .story-line { transform: none; opacity: 0.5; }
}

@media (max-width: 767px) {
    .story-hero__content { padding-block: 96px 110px; }

    .story-fallback,
    .story-hero__media > * { background-position: center; }

    .story-gesture__media { aspect-ratio: 4 / 3; }

    .story-quote { padding-inline: 18px; }
}

/* ==========================================================================
   Abstract line art for the photo slots (until the photography set lands)
   ========================================================================== */
.story-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: clamp(24px, 6vw, 64px);
    color: rgba(251, 191, 36, 0.30);
    pointer-events: none;
}

/* ==========================================================================
   Doradin — story guide
   ========================================================================== */
.story-guide {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 1020;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: min(360px, calc(100vw - 44px));
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s var(--lux-ease), transform 0.45s var(--lux-ease);
    pointer-events: none;
}

.story-guide.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.story-guide[hidden] { display: none; }

.story-guide__mascot {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: #0b1210;
    object-fit: cover;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8), 0 0 24px rgba(245, 158, 11, 0.18);
}

.story-guide__bubble {
    position: relative;
    padding: 12px 34px 12px 14px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 14px 14px 14px 4px;
    background: var(--lux-glass);
    backdrop-filter: var(--lux-blur);
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}

.story-guide__bubble::before {
    content: "";
    position: absolute;
    left: -6px;
    bottom: 12px;
    width: 10px;
    height: 10px;
    background: inherit;
    border-left: 1px solid rgba(245, 158, 11, 0.28);
    border-bottom: 1px solid rgba(245, 158, 11, 0.28);
    transform: rotate(45deg);
}

.story-guide__text {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--lux-text);
}

.story-guide__close {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--lux-muted);
    font-size: 12px;
    cursor: pointer;
}

.story-guide__close:hover,
.story-guide__close:focus-visible {
    color: var(--lux-gold-300);
    outline: 1px solid rgba(245, 158, 11, 0.4);
}

@media (max-width: 575px) {
    .story-guide { left: 12px; bottom: 12px; max-width: calc(100vw - 24px); }
    .story-guide__mascot { width: 46px; height: 46px; }
    .story-guide__text { font-size: 0.8rem; }
}
