/* /bhagvad-gita/read - full-screen flip book. Layout and page turns are
   driven by gita-book.js; sizes come in as --gb-page-w / --gb-page-h / --gb-fs. */

.gb-open,
.gb-open body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

.gb {
    --gb-ink: #3a2216;
    --gb-ink-soft: #6b5345;
    --gb-saffron: #a44d17;
    --gb-sanskrit: #6a2d10;
    --gb-gold: #f0bd83;
    --gb-paper-1: #fffaf0;
    --gb-paper-2: #f6e7cc;
    --gb-gap: 14px;
    /* Same column as the rest of the app, never wider. */
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1300;
    width: 100%;
    max-width: var(--sb-app-width, 440px);
    margin-inline: auto;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background:
        radial-gradient(circle at 50% 30%, rgba(214, 120, 40, 0.22), transparent 42%),
        radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.45), transparent 50%),
        linear-gradient(160deg, #3b2115 0%, #24120b 55%, #160a06 100%);
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
}

/* ---- Top bar / bottom bar ---- */
.gb-bar,
.gb-foot {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.gb-bar {
    padding-top: max(8px, env(safe-area-inset-top));
}

.gb-foot {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.gb-immersive .gb-bar {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.gb-immersive .gb-foot {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.gb-bar-title {
    flex: 1;
    min-width: 0;
    padding-left: 2px;
    text-align: left;
    line-height: 1.25;
}

.gb-bar-title b,
.gb-bar-title small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gb-bar-title b {
    color: #ffe3b3;
    font-size: 14.5px;
}

.gb-bar-title small {
    margin-top: 2px;
    color: rgba(255, 227, 179, 0.55);
    font-size: 11px;
}

.gb-icon-btn,
.gb-nav-btn {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(240, 189, 131, 0.22);
    border-radius: 12px;
    background: rgba(255, 220, 162, 0.08);
    color: #ffe3b3;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}

.gb-icon-btn:hover,
.gb-icon-btn:focus-visible,
.gb-nav-btn:hover,
.gb-nav-btn:focus-visible {
    background: rgba(255, 220, 162, 0.18);
    color: #fff;
    text-decoration: none;
}

.gb-icon-btn--text {
    font-size: 14px;
    font-weight: 800;
}

.gb-nav-btn[disabled] {
    opacity: 0.35;
    cursor: default;
}

.gb-progress {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.gb-progress > span:first-child {
    display: block;
    color: rgba(255, 227, 179, 0.8);
    font-size: 11.5px;
    font-weight: 700;
}

.gb-progress-track {
    display: block;
    height: 3px;
    margin: 6px auto 0;
    max-width: 260px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 227, 179, 0.16);
}

.gb-progress-track i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--gb-gold);
    transition: width 0.3s ease;
}

/* ---- Stage and book ---- */
.gb-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    perspective: 2200px;
    touch-action: none;
}

.gb-book {
    position: relative;
    width: var(--gb-page-w, 340px);
    height: var(--gb-page-h, 560px);
    transform-style: preserve-3d;
    font-size: var(--gb-fs, 16px);
}

.gb-book::before {
    /* soft floor shadow */
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: -18px;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 70%);
    filter: blur(6px);
    pointer-events: none;
}

.gb-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 227, 179, 0.8);
    font-size: 13px;
}

.gb-loading[hidden] {
    display: none;
}

.gb-loading-om {
    color: var(--gb-gold);
    font-size: 46px;
    animation: gb-breathe 1.6s ease-in-out infinite;
}

@keyframes gb-breathe {
    50% { opacity: 0.45; transform: scale(0.94); }
}

/* ---- Pages ---- */
.gb-page {
    position: absolute;
    top: 0;
    width: var(--gb-page-w, 340px);
    height: var(--gb-page-h, 560px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 12px;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.55), transparent 70%),
        linear-gradient(180deg, var(--gb-paper-1), var(--gb-paper-2));
    color: var(--gb-ink);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    left: 0;
    border-radius: 3px 14px 14px 3px;
    box-shadow:
        inset 22px 0 26px -18px rgba(90, 50, 20, 0.35),
        1px 0 0 #e8d3ae, 2px 1px 0 #d9bf93, 3px 1px 0 #ecd9b8, 4px 2px 0 #cfb286,
        0 18px 38px rgba(0, 0, 0, 0.45);
}

.gb-page-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 7px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(164, 77, 23, 0.18);
    color: #a07a5c;
    font-size: 11px;
    white-space: nowrap;
}

.gb-page-head span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.gb-page-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--gb-gap);
    min-height: 0;
    overflow: hidden;
}

.gb-page-foot {
    padding-top: 6px;
    color: #a07a5c;
    font-size: 11px;
    text-align: center;
}

.gb-page--solo {
    padding: 0;
}

/* Shading overlays driven during a turn */
.gb-shade,
.gb-cast {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
}

.gb-shade {
    background: linear-gradient(90deg, rgba(60, 30, 10, 0.35), rgba(255, 255, 255, 0.15) 45%, rgba(60, 30, 10, 0.25));
}

.gb-cast {
    background: linear-gradient(90deg, rgba(20, 10, 5, 0.55), rgba(20, 10, 5, 0) 70%);
}

/* The turning leaf */
.gb-sheet {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    transform-origin: left center; /* the spine */
    width: var(--gb-page-w, 340px);
    height: var(--gb-page-h, 560px);
    transform-style: preserve-3d;
    pointer-events: none;
    will-change: transform;
}

.gb-sheet .gb-page {
    left: 0;
}

.gb-sheet-back {
    transform: rotateY(180deg);
}

.gb-page--blank-back {
    /* reverse side of the turning leaf, seen once it passes the spine */
    border-radius: 14px 3px 3px 14px;
    background: linear-gradient(180deg, #f3e2c2, #ead4ad);
}

/* ---- Content blocks ---- */
.gb-verse {
    position: relative;
}

.gb-verse + .gb-verse {
    padding-top: calc(var(--gb-gap) * 0.9);
    border-top: 1px dashed rgba(164, 77, 23, 0.22);
}

.gb-verse-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.gb-ref {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(164, 77, 23, 0.1);
    color: var(--gb-saffron);
    font-size: 0.72em;
    font-weight: 800;
}

.gb-speaker {
    color: #a07a5c;
    font-size: 0.7em;
}

.gb-verse-tools {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.gb-verse-share {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    font-size: 17px;
    text-decoration: none;
}

.gb-verse-share,
.gb-verse-share .fa {
    color: #2f8a55;
}

.gb-verse-share:hover,
.gb-verse-share:focus-visible {
    background: rgba(47, 138, 85, 0.1);
    color: #1a6b3c;
    text-decoration: none;
}

.gb-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #c09a78;
    font-size: 15px;
    cursor: pointer;
}

.gb-mark:hover,
.gb-mark:focus-visible {
    background: rgba(164, 77, 23, 0.08);
}

.gb-mark.is-marked {
    color: var(--gb-saffron);
}

.gb-merged {
    margin: -2px 0 8px;
    color: #a07a5c;
    font-size: 0.7em;
    font-style: italic;
}

.gb-sa {
    margin: 0;
    color: var(--gb-sanskrit);
    font-size: 1.04em;
    font-weight: 700;
    line-height: 1.75;
    white-space: pre-line;
}

.gb-hi {
    margin: 6px 0 0;
    color: var(--gb-ink);
    font-size: 0.9em;
    line-height: 1.72;
}

.gb-cont-label {
    color: #a07a5c;
    font-size: 0.7em;
    font-weight: 700;
}

.gb-more {
    color: #a07a5c;
    font-size: 0.7em;
    text-align: right;
}

/* Chapter opening */
.gb-chapter {
    text-align: center;
}

.gb-chapter-no {
    color: var(--gb-saffron);
    font-size: 0.8em;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.gb-chapter h2 {
    margin: 6px 0 2px;
    color: var(--gb-ink);
    font-size: 1.45em;
    line-height: 1.3;
}

.gb-chapter-translit {
    color: #a07a5c;
    font-size: 0.75em;
    font-style: italic;
}

.gb-divider {
    position: relative;
    height: 1px;
    width: 64%;
    margin: 14px auto;
    background: linear-gradient(90deg, transparent, rgba(164, 77, 23, 0.6), transparent);
}

.gb-divider::after {
    content: "✦";
    position: absolute;
    top: -0.62em;
    left: 50%;
    padding: 0 6px;
    transform: translateX(-50%);
    background: var(--gb-paper-1);
    color: var(--gb-saffron);
    font-size: 12px;
}

.gb-summary {
    margin: 0;
    color: var(--gb-ink-soft);
    font-size: 0.86em;
    line-height: 1.75;
    text-align: left;
}

/* Cover */
.gb-cover {
    position: absolute;
    inset: 0;
    display: flex;
    padding: 14px;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 200, 120, 0.22), transparent 55%),
        linear-gradient(145deg, #7a2a12 0%, #4a1a0b 55%, #2d0f06 100%);
    color: #ffe3b3;
}

.gb-cover-frame {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    border: 1.5px solid rgba(240, 189, 131, 0.7);
    border-radius: 10px;
    box-shadow: inset 0 0 0 5px rgba(240, 189, 131, 0.08), inset 0 0 0 6px rgba(240, 189, 131, 0.35);
    text-align: center;
}

.gb-cover-om {
    color: var(--gb-gold);
    font-size: 3.4em;
    line-height: 1;
    text-shadow: 0 0 24px rgba(255, 190, 110, 0.45);
}

.gb-cover h1 {
    margin: 0;
    color: #ffe3b3;
    font-size: 1.9em;
    line-height: 1.3;
}

.gb-cover-sub {
    margin: 0;
    color: rgba(255, 227, 179, 0.8);
    font-size: 0.85em;
}

.gb-cover-meta {
    margin: 10px 0 0;
    padding: 5px 12px;
    border: 1px solid rgba(240, 189, 131, 0.35);
    border-radius: 999px;
    color: var(--gb-gold);
    font-size: 0.75em;
    font-weight: 700;
}

/* WhatsApp share - cover only */
.gb-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #1a6b3c;
    color: #fff;
    font-size: 0.82em;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.gb-share:hover,
.gb-share:focus-visible {
    background: #1f7d46;
    color: #fff;
    text-decoration: none;
}

.gb-share .fa {
    font-size: 1.25em;
}

/* "जहाँ छोड़ा था" - returning readers only */
.gb-resume {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 290px;
    margin-top: 18px;
    padding: 11px 12px;
    border: 1px solid rgba(240, 189, 131, 0.55);
    border-radius: 14px;
    background: rgba(255, 220, 162, 0.12);
    color: #ffe3b3;
    text-align: left;
    cursor: pointer;
}

.gb-resume:hover,
.gb-resume:focus-visible {
    background: rgba(255, 220, 162, 0.2);
}

.gb-resume-label {
    display: block;
    margin-bottom: 3px;
    color: var(--gb-gold);
    font-size: 0.66em;
    font-weight: 800;
}

.gb-resume-place {
    flex: 1;
    min-width: 0;
}

.gb-resume-place b,
.gb-resume-place small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gb-resume-place b {
    font-size: 0.8em;
}

.gb-resume-place small {
    margin-top: 2px;
    color: rgba(255, 227, 179, 0.75);
    font-size: 0.7em;
}

.gb-resume-go {
    display: grid;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--gb-gold);
    color: #2d0f06;
    font-size: 18px;
    line-height: 1;
}

.gb-cover-cta {
    margin-top: 18px;
    color: rgba(255, 227, 179, 0.7);
    font-size: 0.75em;
    animation: gb-nudge 1.8s ease-in-out infinite;
}

@keyframes gb-nudge {
    50% { transform: translateX(6px); }
}

/* Contents: two pages of 9 chapters under the same heading. Sized to the
   page height rather than the reader's font setting, so it always fits. */
.gb-contents {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 12px;
    font-size: clamp(13px, calc(var(--gb-page-h, 560px) / 44), 16px);
}

.gb-contents-top {
    text-align: center;
}

.gb-contents .gb-invocation {
    margin: 0;
    color: var(--gb-sanskrit);
    font-size: 1em;
    font-weight: 700;
}

.gb-contents h2 {
    margin: 4px 0 2px;
    color: var(--gb-ink);
    font-size: 1.5em;
    line-height: 1.3;
}

.gb-contents-note {
    margin: 0;
    color: #a07a5c;
    font-size: 0.78em;
}

.gb-contents-label {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-bottom: 5px;
    border-bottom: 1.5px solid rgba(164, 77, 23, 0.4);
    color: var(--gb-saffron);
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.gb-contents-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.gb-contents-item {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px dotted rgba(164, 77, 23, 0.28);
    background: transparent;
    color: var(--gb-ink);
    font-size: 1em;
    text-align: left;
    cursor: pointer;
}

.gb-contents-item:hover,
.gb-contents-item:focus-visible {
    background: rgba(164, 77, 23, 0.06);
}

.gb-contents-no {
    flex: 0 0 1.6em;
    color: var(--gb-saffron);
    font-weight: 800;
}

.gb-contents-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gb-contents-count {
    flex: 0 0 auto;
    min-width: 2.2em;
    color: #a07a5c;
    font-size: 0.85em;
    font-weight: 700;
    text-align: right;
}

.gb-contents-tip {
    margin: 8px 0 0;
    color: #a07a5c;
    font-size: 0.74em;
    text-align: center;
}

/* Verse audio - Paath's audio button, centred under the meaning */
.gb-audio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

/* Light variant, same as the Paath reading page's audio button */
.gb-audio .sb-paath-audio-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 1px solid #e9c28b;
    border-radius: 50%;
    background: #fff2da;
    box-shadow: none;
    filter: none;
    animation: none;
}

.gb-audio .sb-paath-audio-btn i {
    background: none;
    color: #9c501c;
    -webkit-text-fill-color: currentColor;
}

.gb-audio .sb-paath-audio-btn.is-playing {
    background: #9c501c;
    animation: sbTogglePulse 900ms ease-in-out infinite;
}

.gb-audio .sb-paath-audio-btn.is-playing i {
    color: #fff;
}

/* Voice picker (Paath module's): pages clip overflow, so the menu opens
   upward from the audio row instead of downward. */
.gb-audio .sb-paath-voice-menu {
    top: auto;
    right: auto;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
}

/* End page */
.gb-end {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.gb-end p {
    margin: 0;
    color: var(--gb-sanskrit);
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.7;
}

.gb-end-btn {
    padding: 9px 16px;
    border: 0;
    border-radius: 12px;
    background: var(--gb-saffron);
    color: #fff;
    font-size: 0.8em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.gb-end-btn--ghost {
    border: 1px solid rgba(164, 77, 23, 0.35);
    background: transparent;
    color: var(--gb-saffron);
}

/* Offscreen measuring page */
.gb-measure {
    position: fixed;
    left: -10000px;
    top: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ---- Toast ---- */
.gb-toast {
    position: absolute;
    left: 50%;
    bottom: calc(76px + env(safe-area-inset-bottom));
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 32px);
    padding: 10px 14px;
    border: 1px solid rgba(240, 189, 131, 0.25);
    border-radius: 14px;
    background: rgba(28, 14, 8, 0.92);
    color: #ffe3b3;
    font-size: 12.5px;
    transform: translateX(-50%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.gb-toast[hidden] {
    display: none;
}

.gb-toast button {
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 0;
    border-radius: 10px;
    background: var(--gb-gold);
    color: #2d0f06;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

/* ---- Panels (settings, bookmarks) ---- */
.gb-panel {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.gb-panel[hidden] {
    display: none;
}

.gb-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 2, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.gb-panel-card {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    max-width: 460px;
    max-height: 80dvh;
    overflow-y: auto;
    padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: #fffaf2;
    color: var(--gb-ink);
    transform: translateX(-50%);
    outline: none;
    touch-action: pan-y;
    user-select: text;
    -webkit-user-select: text;
}

.gb-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.gb-panel-head h2 {
    margin: 0;
    font-size: 17px;
}

.gb-panel-x {
    width: 34px;
    height: 34px;
    border: 1px solid #eddcc7;
    border-radius: 11px;
    background: #fff;
    color: #6b4a35;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.gb-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 13px 2px;
    border: 0;
    border-bottom: 1px solid #f0e2d0;
    background: transparent;
    color: var(--gb-ink);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.gb-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gb-stepper button {
    width: 42px;
    height: 34px;
    border: 1px solid #eddcc7;
    border-radius: 10px;
    background: #fff;
    color: var(--gb-saffron);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.gb-stepper b {
    min-width: 42px;
    font-size: 13px;
    text-align: center;
}

.gb-switch {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 26px;
    margin: 0;
    border-radius: 999px;
    background: #e4d2bb;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gb-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.gb-switch:checked {
    background: var(--gb-saffron);
}

.gb-switch:checked::after {
    transform: translateX(18px);
}

.gb-panel-note {
    margin: 12px 0 0;
    color: #8f725d;
    font-size: 11.5px;
    line-height: 1.55;
}

.gb-marks {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.gb-mark-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    border: 1px solid #eddcc7;
    border-radius: 14px;
    background: #fff;
}

.gb-mark-go {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gb-ink);
    text-align: left;
    cursor: pointer;
}

.gb-mark-go b {
    display: block;
    color: var(--gb-saffron);
    font-size: 13.5px;
    line-height: 1.4;
}

.gb-mark-go small {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: #8f725d;
    font-size: 12.5px;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gb-marks-empty {
    margin: 4px 0;
    color: #8f725d;
    font-size: 13px;
    text-align: center;
}

.gb-noscript {
    position: absolute;
    inset: auto 16px 40% 16px;
    color: #ffe3b3;
    text-align: center;
}

.gb-noscript a {
    color: var(--gb-gold);
}

@media (prefers-reduced-motion: reduce) {
    .gb-loading-om,
    .gb-cover-cta {
        animation: none;
    }
}

/* First-visit swipe hint (gita-book.js showSwipeHint) */
.gb-swipe-hint {
    position: fixed;
    left: 50%;
    bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(45, 24, 14, .88);
    box-shadow: 0 8px 22px rgba(30, 15, 8, .3);
    color: #fff6ea;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
    animation: gbHintIn .35s ease-out;
    transition: opacity .45s ease;
}

.gb-swipe-hint.is-leaving { opacity: 0; }

.gb-swipe-hint-hand {
    display: inline-block;
    font-size: 18px;
    animation: gbHintNudge 1.3s ease-in-out .3s 3;
}

@keyframes gbHintIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes gbHintNudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .gb-swipe-hint, .gb-swipe-hint-hand { animation: none; }
}

/* Page foot shows the how-to tip (not the number - the bar below has "पन्ना N / M"): one line */
.gb-page-foot { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10.5px; }
