/* ═══════════════════════════════════════════════════════════
   quiz.css — All quiz page styles for Little Turtlery
   Requires: public-layout.css (tokens, reset, nav, footer)
   Covers:   index, show, play, result pages
   ═══════════════════════════════════════════════════════════ */

/* ─── Page wrapper (all quiz pages) ─────────────────────── */
.q-page {
    max-width: 480px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 28px) 20px 72px;
}

/* ─── Error flash ────────────────────────────────────────── */
.q-flash {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: var(--r-md);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ══════════════════════════════════════════════════════════
   INDEX — Quiz listing
   ══════════════════════════════════════════════════════════ */
.qi-header {
    margin-bottom: 28px;
}

.qi-header__title {
    font-size: 22px;
    font-weight: var(--fw-medium);
    color: var(--lt-ink);
    margin-bottom: 4px;
}

.qi-header__sub {
    font-size: 14px;
    color: var(--lt-text-muted);
}

.quiz-card {
    background: var(--lt-white);
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--lt-border);
    display: block;
    color: inherit;
    margin-bottom: 16px;
    transition: border-color var(--ease), box-shadow var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.quiz-card:hover {
    border-color: var(--lt-sage);
    box-shadow: var(--shadow-sm);
}

.quiz-card:active {
    opacity: .92;
}

.quiz-card__cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: var(--lt-sage-light);
}

.quiz-card__cover-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(140deg, var(--lt-sage-dark) 0%, var(--lt-sage-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
}

.quiz-card__body {
    padding: 18px 20px 20px;
}

.quiz-card__title {
    font-size: 17px;
    font-weight: var(--fw-medium);
    color: var(--lt-ink);
    margin-bottom: 6px;
}

.quiz-card__desc {
    font-size: 13px;
    color: var(--lt-text-soft);
    line-height: 1.6;
    margin-bottom: 14px;
}

.quiz-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--lt-sage-dark);
}

.quiz-card__cta i {
    font-size: 13px;
}

.qi-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--lt-text-muted);
    font-size: 14px;
}

.qi-empty span {
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════════════
   SHOW — Quiz intro/start screen
   ══════════════════════════════════════════════════════════ */
.qs-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--lt-text-muted);
    margin-bottom: 24px;
    transition: color var(--ease);
}

.qs-back:hover {
    color: var(--lt-sage-dark);
}

.qs-back i {
    font-size: 12px;
}

.qs-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--r-md);
    display: block;
    margin-bottom: 24px;
    background: var(--lt-sage-light);
}

.qs-cover-placeholder {
    width: 100%;
    height: 200px;
    border-radius: var(--r-md);
    background: linear-gradient(140deg, var(--lt-sage-dark) 0%, var(--lt-sage-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    margin-bottom: 24px;
}

.qs-title {
    font-size: 22px;
    font-weight: var(--fw-medium);
    color: var(--lt-ink);
    margin-bottom: 8px;
    line-height: 1.4;
}

.qs-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.qs-meta__item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--lt-text-muted);
}

.qs-meta__item i {
    font-size: 13px;
    color: var(--lt-sage);
}

.qs-desc {
    font-size: 15px;
    color: var(--lt-text-soft);
    line-height: 1.8;
    margin-bottom: 32px;
}

.qs-start {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Constrained width — centered, not full-bleed */
    width: auto;
    max-width: 260px;
    margin-inline: auto;
    height: 54px;
    padding: 0 36px;
    background: var(--lt-sage);
    color: #fff;
    border-radius: var(--r-full);
    font-family: var(--font);
    font-size: 16px;
    font-weight: var(--fw-medium);
    letter-spacing: .02em;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--ease), box-shadow var(--ease);
    text-decoration: none;
}

.qs-start:hover {
    background: var(--lt-sage-dark);
    box-shadow: var(--shadow-sm);
    color: #fff;
}

.qs-start:active {
    opacity: .85;
    color: #fff;
}

.qs-footer-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--lt-text-muted);
    transition: color var(--ease);
}

.qs-footer-link:hover {
    color: var(--lt-sage-dark);
}

/* ══════════════════════════════════════════════════════════
   PLAY — Active quiz
   ══════════════════════════════════════════════════════════ */

/* Progress strip — sticky just below brand nav */
.qp-progress {
    height: 3px;
    background: var(--lt-border);
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 99;
}

.qp-progress__fill {
    height: 100%;
    background: var(--lt-sage);
    transition: width .35s ease;
    border-radius: 0 99px 99px 0;
}

.qp-counter {
    font-size: 12px;
    color: var(--lt-text-muted);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.qp-question {
    display: none;
}

.qp-question.active {
    display: block;
}

.qp-images {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

/* CSS safety net: if all child images fail / container is empty, collapse it */
.qp-images:empty {
    display: none;
}

.qp-img {
    flex: 1;
    aspect-ratio: 3/2;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--r-md);
    background: var(--lt-sage-light);
    display: block;
}

.qp-text {
    font-size: 18px;
    font-weight: var(--fw-regular);
    line-height: 1.6;
    color: var(--lt-ink);
    margin-bottom: 24px;
}

/* Answer buttons */
.qp-answer {
    display: block;
    width: 100%;
    min-height: 54px;
    text-align: left;
    background: var(--lt-white);
    border: 1.5px solid var(--lt-border);
    border-radius: var(--r-md);
    padding: 14px 18px;
    margin-bottom: 10px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: var(--fw-light);
    color: var(--lt-ink);
    cursor: pointer;
    line-height: 1.5;
    transition: border-color .12s, background .12s;
    -webkit-tap-highlight-color: transparent;
}

.qp-answer:focus {
    outline: none;
}

.qp-answer:hover {
    border-color: var(--lt-sage);
    background: var(--lt-sage-light);
}

.qp-answer.selected {
    border-color: var(--lt-sage-dark);
    background: var(--lt-sage-light);
    color: var(--lt-sage-dark);
}

/* Nav row */
.qp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

.qp-btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: var(--fw-light);
    color: var(--lt-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 0;
    -webkit-tap-highlight-color: transparent;
    min-width: 72px;
    transition: color var(--ease);
}

.qp-btn-back:hover {
    color: var(--lt-text-soft);
}

.qp-btn-back:disabled {
    opacity: .3;
    cursor: default;
}

.qp-btn-back i {
    font-size: 13px;
}

.qp-btn-next {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    padding: 0 28px;
    background: var(--lt-sage);
    color: #fff;
    border: none;
    border-radius: var(--r-full);
    font-family: var(--font);
    font-size: 15px;
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: background var(--ease), opacity .15s;
    -webkit-tap-highlight-color: transparent;
}

.qp-btn-next:hover {
    background: var(--lt-sage-dark);
}

.qp-btn-next:disabled {
    opacity: .3;
    cursor: default;
}

.qp-btn-next i {
    font-size: 13px;
}

/* ── Magic loading overlay ── */
#magicOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--lt-cream);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: fadeInOverlay .4s ease forwards;
}

#magicOverlay.show {
    display: flex;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.magic-turtle {
    font-size: 64px;
    animation: floatTurtle 1.6s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(40, 40, 31, .12));
}

@keyframes floatTurtle {
    0%, 100% { transform: translateY(0)    rotate(-3deg); }
    50%       { transform: translateY(-12px) rotate(3deg);  }
}

.magic-sparkles {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.magic-sparkles span {
    font-size: 18px;
    opacity: 0;
    animation: sparkle 1.8s ease-in-out infinite;
}

.magic-sparkles span:nth-child(1) { animation-delay: 0s;   }
.magic-sparkles span:nth-child(2) { animation-delay: .3s;  }
.magic-sparkles span:nth-child(3) { animation-delay: .6s;  }
.magic-sparkles span:nth-child(4) { animation-delay: .9s;  }
.magic-sparkles span:nth-child(5) { animation-delay: 1.2s; }

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(.6) translateY(4px); }
    50%       { opacity: 1; transform: scale(1)  translateY(0);   }
}

.magic-text {
    font-size: 15px;
    color: var(--lt-text-soft);
    letter-spacing: .02em;
    animation: pulseFade 1.6s ease-in-out infinite;
}

@keyframes pulseFade {
    0%, 100% { opacity: .5; }
    50%       { opacity: 1;  }
}

.magic-dots {
    display: flex;
    gap: 6px;
}

.magic-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lt-sage);
    opacity: .3;
    animation: dotBounce .9s ease-in-out infinite;
}

.magic-dots span:nth-child(2) { animation-delay: .15s; }
.magic-dots span:nth-child(3) { animation-delay: .3s;  }

@keyframes dotBounce {
    0%, 100% { transform: translateY(0);    opacity: .3; }
    50%       { transform: translateY(-5px); opacity: 1;  }
}

/* ══════════════════════════════════════════════════════════
   RESULT — Quiz result page
   ══════════════════════════════════════════════════════════ */

/* Hero image — full-width, starts right below nav (no overlap) */
.rh-img-wrap {
    margin: -28px -20px 0;
    line-height: 0;
}

.rh-img-wrap img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.rh-img-wrap__placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

/* Title block */
.rh-title-block {
    padding: 24px 0 28px;
    border-bottom: 1px solid var(--lt-border);
    margin-bottom: 28px;
}

.rh-title-block__you {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lt-text-muted);
    margin-bottom: 8px;
}

.rh-title-block__name {
    font-size: 30px;
    font-weight: var(--fw-medium);
    line-height: 1.2;
    color: var(--lt-ink);
    margin-bottom: 6px;
}

.rh-title-block__sub {
    font-size: 15px;
    color: var(--lt-text-soft);
}

/* Sections */
.rh-section {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--lt-border);
    margin-bottom: 28px;
}

.rh-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.rh-label {
    font-size: 12px;
    font-weight: var(--fw-semibold);  /* explicit weight — matches lt-section-label style */
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--lt-text-muted);
    margin-bottom: 14px;
}

.rh-desc {
    font-size: 15px;
    color: var(--lt-text-soft);
    line-height: 1.85;
}

/* Stone card — warm stone palette */
.rh-stone {
    background: var(--lt-stone-light);
    border-radius: var(--r-md);
    padding: 20px;              /* more generous: was 16px */
    border: 1px solid var(--lt-border-light);
}

/* Bonus stone — slightly lighter, smaller accent */
.rh-stone--bonus {
    background: var(--bg-page);
    border-color: var(--lt-border-light);
    padding: 14px 20px;
}
.rh-stone--bonus + .rh-stone--bonus {
    margin-top: 8px;
}
.rh-stone--bonus .rh-stone__name {
    font-size: 14px;
    color: var(--lt-text-soft);
}

.rh-stone__name {
    font-size: 16px;
    font-weight: var(--fw-medium);
    color: var(--lt-stone-dark);
    margin-bottom: 8px;
}

.rh-stone__reason {
    font-size: 14px;
    color: var(--lt-text-soft);
    line-height: 1.75;
    margin: 0;
}

/* Compatibility list */
.rh-compat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--lt-border);
}

.rh-compat-item:first-child {
    padding-top: 0;
}

.rh-compat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rh-compat-item__thumb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--lt-sage-light);
    border: 2px solid var(--lt-border);
    display: block;
}

.rh-compat-item__thumb-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--lt-sage-light);
    border: 2px solid var(--lt-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.rh-compat-item__info {
    flex: 1;
    min-width: 0;
}

.rh-compat-item__name {
    font-size: 15px;
    color: var(--lt-ink);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.rh-compat-item__note {
    font-size: 13px;
    color: var(--lt-text-muted);
    line-height: 1.55;
}

/* Compatibility pills */
.pill {
    display: inline-block;
    font-size: 11px;
    border-radius: var(--r-full);
    padding: 2px 9px;
    flex-shrink: 0;
}

.pill-great {
    background: #dcfce7;
    color: #166534;
}

.pill-good {
    background: #dbeafe;
    color: #1e40af;
}

.pill-clash {
    background: #fee2e2;
    color: #991b1b;
}

/* Action buttons */
.rh-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 28px;
}

.rh-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px;
    background: var(--lt-sage);
    color: #fff;
    border: none;
    border-radius: var(--r-full);
    font-family: var(--font);
    font-size: 15px;
    font-weight: var(--fw-medium);
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--ease), opacity .15s;
}

.rh-btn-primary:hover {
    background: var(--lt-sage-dark);
    color: #fff;
}

.rh-btn-primary:active {
    opacity: .85;
    color: #fff;
}

.rh-btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    background: none;
    color: var(--lt-text-soft);
    border: 1.5px solid var(--lt-border);
    border-radius: var(--r-full);
    font-family: var(--font);
    font-size: 15px;
    font-weight: var(--fw-light);
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color var(--ease), color var(--ease);
}

.rh-btn-ghost:hover {
    border-color: var(--lt-sage);
    color: var(--lt-sage-dark);
}

.rh-btn-ghost:active {
    border-color: var(--lt-text-muted);
    color: var(--lt-ink);
}

.rh-btn-ghost i,
.rh-btn-primary i {
    font-size: 15px;
}

.rh-copy-feedback {
    display: none;
    text-align: center;
    font-size: 13px;
    color: var(--lt-sage-dark);
    padding: 4px 0;
    animation: fadeIn .2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Discovery cross-links — quiet, below actions */
.rh-discovery {
    text-align: center;
    padding: var(--sp-lg) 0 var(--sp-sm);
    border-top: 1px solid var(--lt-border-light);
    margin-top: var(--sp-sm);
}

.rh-discovery__label {
    font-size: 11px;
    font-weight: var(--fw-semibold);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lt-text-muted);
    margin-bottom: 10px;
}

.rh-discovery__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rh-discovery__link {
    font-size: 14px;
    font-weight: var(--fw-medium);
    color: var(--lt-sage-dark);
    text-decoration: none;
    transition: opacity var(--ease);
}

.rh-discovery__link:hover { opacity: .65; }

.rh-discovery__sep {
    color: var(--lt-border);
    font-size: 14px;
}

.rh-footer-link {
    display: block;
    text-align: center;
    padding-top: 16px;
    font-size: 13px;
    color: var(--lt-text-muted);
    transition: color var(--ease);
}

.rh-footer-link:hover {
    color: var(--lt-sage-dark);
}

/* External merch CTA — for "buy the real turtle box" type links.
   Warm peach treatment so it's noticeable but not pushy. */
.rh-btn-merch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff1e3 0%, #ffe1d0 100%);
    color: #8a4a2b;
    border: 1.5px solid #f5c9a8;
    border-radius: var(--r-full);
    font-family: var(--font);
    font-size: 14.5px;
    font-weight: var(--fw-medium, 500);
    line-height: 1.5;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
    box-shadow: 0 2px 6px rgba(245, 160, 110, .12);
}

.rh-btn-merch:hover {
    background: linear-gradient(135deg, #ffe7d2 0%, #ffd1b8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 160, 110, .2);
    color: #6e3818;
}

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

/* Support / QR button */
.rh-btn-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 16px;
    background: var(--lt-stone-xlight);
    color: var(--lt-stone-dark);
    border: 1.5px solid var(--lt-border);
    border-radius: var(--r-full);
    font-family: var(--font);
    font-size: 14px;
    font-weight: var(--fw-regular);
    line-height: 1.5;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--ease);
}

.rh-btn-support:hover {
    background: var(--lt-stone-light);
}

/* QR Modal */
.qr-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(40, 40, 31, .55);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.qr-overlay.open {
    display: flex;
}

.qr-box {
    background: var(--lt-white);
    border-radius: var(--r-xl);
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: popIn .22s ease;
}

@keyframes popIn {
    from { transform: scale(.88); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.qr-box__title {
    font-size: 15px;
    color: var(--lt-ink);
    margin-bottom: 4px;
    font-weight: var(--fw-medium);
}

.qr-box__sub {
    font-size: 13px;
    color: var(--lt-text-soft);
    line-height: 1.65;
    margin-bottom: 20px;
}

.qr-box__img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: var(--r-md);
    border: 1px solid var(--lt-border);
    display: block;
    margin: 0 auto 20px;
}

.qr-box__close {
    display: block;
    width: 100%;
    padding: 12px;
    background: none;
    border: 1.5px solid var(--lt-border);
    border-radius: var(--r-full);
    font-family: var(--font);
    font-size: 14px;
    color: var(--lt-text-soft);
    cursor: pointer;
    transition: border-color var(--ease);
}

.qr-box__close:hover {
    border-color: var(--lt-sage);
}

/* Save-image modal */
.save-img-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(40, 40, 31, .72);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.save-img-overlay.open {
    display: block;
}

.save-img-box {
    background: var(--lt-white);
    border-radius: var(--r-xl);
    padding: 20px 16px 16px;
    width: 100%;
    max-width: 360px;
    margin: 16px auto;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: popIn .22s ease;
    box-sizing: border-box;
}

.save-img-box__hint {
    font-size: 14px;
    font-weight: var(--fw-semibold);
    color: var(--lt-ink);
    margin-bottom: 10px;
}

.save-img-box__sub {
    font-size: 12px;
    color: var(--lt-text-soft);
    margin-bottom: 14px;
    line-height: 1.5;
}

.save-img-box img {
    width: 100%;
    border-radius: var(--r-md);
    display: block;
    margin-bottom: 12px;
}

.save-img-box__tip {
    font-size: 13px;
    color: var(--lt-text-soft);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.55;
}

.save-img-box__btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Share card — off-screen render target for html-to-image.
   All browsers (incl. in-app) see the normal result page; saveImage()
   handles in-app via upload+modal, others via Web Share / direct download. */
#shareCard {
    position: fixed;
    top: -9999px;
    left: 0;
    width: 360px;
    max-width: 360px;
    height: 640px;
    overflow: hidden;
}


/* ════════════════════════════════════════════════════════════
   Screenshot mode — full-screen modal that displays the share
   card so the user can take a native screenshot.
   ════════════════════════════════════════════════════════════ */
.ss-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(40, 40, 31, .92);
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
}
.ss-overlay.open {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ss-modal {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ss-hint {
    text-align: center;
    color: #fff;
    line-height: 1.6;
    padding: 4px 8px;
}
.ss-hint strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 500;
}
.ss-hint__device {
    font-size: 12px;
    opacity: .78;
    line-height: 1.65;
}
.ss-hint__device b { font-weight: 500; opacity: 1; }

#ssCardSlot {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* When share card is moved into slot, override fixed positioning */
#ssCardSlot #shareCard {
    position: static !important;
    top: auto !important;
    left: auto !important;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    transform: none;
}

.ss-close {
    width: 100%;
    max-width: 200px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, .12);
    border: 1.5px solid rgba(255, 255, 255, .25);
    border-radius: 9999px;
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    cursor: pointer;
    transition: background var(--ease);
    margin-top: 4px;
}
.ss-close:hover {
    background: rgba(255, 255, 255, .2);
}
