.gte-player,
.gte-route-grid,
.gte-empty {
    box-sizing: border-box;
}

.gte-player *,
.gte-route-grid * {
    box-sizing: border-box;
}

.gte-player {
    --gte-border: #e5e7eb;
    --gte-muted: #667085;
    --gte-bg: #f8fafc;
    --gte-primary: #111827;
    max-width: 760px;
    margin: 28px auto;
    border: 1px solid var(--gte-border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    color: #111827;
}

.gte-task-stage {
    scroll-margin-top: 88px;
}

.treasure-play-layout > .gte-task-stage {
    min-width: 0;
}

.gte-task-stage__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.gte-task-stage__head p {
    margin: 6px 0 0;
    color: #667085;
    line-height: 1.65;
}

.gte-task-stage__step {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: #9e3015;
    color: #fff8ef;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.gte-task-stage .gte-player {
    max-width: none;
    margin: 0;
}

@media (min-width: 1024px) {
    .treasure-play-layout > .gte-task-stage {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .gte-task-stage > .card-content {
        display: grid;
        grid-template-columns: minmax(220px, .42fr) minmax(0, 1.58fr);
        gap: 24px;
        align-items: start;
    }

    .gte-task-stage__head {
        position: sticky;
        top: 18px;
        margin-bottom: 0;
    }
}

.gte-comment-gate-note {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(158, 48, 21, .24);
    border-radius: 10px;
    background: rgba(158, 48, 21, .07);
    color: #6f3a2b;
    font-size: 14px;
    line-height: 1.65;
}

.gte-comment-gate-note a {
    color: #9e3015;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gte-player__loading,
.gte-player__intro,
.gte-finish {
    padding: 32px;
}

.gte-player__intro,
.gte-finish {
    text-align: center;
}

.gte-player__eyebrow {
    margin-bottom: 7px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.gte-player h2,
.gte-player h3,
.gte-route-card h3 {
    margin-top: 0;
    color: #111827;
}

.gte-player__intro h2,
.gte-finish h2 {
    margin-bottom: 12px;
    font-size: clamp(26px, 5vw, 38px);
}

.gte-player__meta,
.gte-route-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 20px;
}

.gte-player__meta span,
.gte-route-card__meta span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475467;
    font-size: 13px;
}

.gte-player__actions,
.gte-player__footer-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.gte-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid #111827;
    border-radius: 12px;
    background: #111827;
    color: #fff !important;
    text-decoration: none !important;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.gte-button:hover { transform: translateY(-1px); }
.gte-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.gte-button--secondary { background: #fff; color: #111827 !important; }
.gte-link-button { border: 0; background: transparent; color: #667085; cursor: pointer; text-decoration: underline; }
.gte-privacy-note { margin: 20px 0 0; color: #667085; font-size: 12px; }

.gte-player__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 15px;
}

.gte-player__score {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    font-weight: 800;
}

.gte-progress {
    height: 7px;
    background: #eef2f6;
}

.gte-progress span {
    display: block;
    height: 100%;
    background: #111827;
    transition: width .3s ease;
}

.gte-task-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 24px 0;
}

.gte-task-heading h3 { margin: 0 0 3px; font-size: 23px; }
.gte-task-type { color: #667085; font-size: 13px; }
.gte-task-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    font-weight: 800;
}

.gte-task-card-front { padding: 20px 24px 26px; }
.gte-task-instruction {
    padding: 18px;
    border-radius: 14px;
    background: #f8fafc;
    line-height: 1.75;
}

.gte-task-interaction { margin-top: 18px; }
.gte-answer-row { display: flex; gap: 10px; }
.gte-answer-input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 16px;
}

.gte-choice-list { display: grid; gap: 10px; margin-bottom: 14px; }
.gte-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    cursor: pointer;
}
.gte-choice:has(input:checked) { border-color: #111827; background: #f8fafc; }
.gte-choice input { width: 18px; height: 18px; }

.gte-location-box,
.gte-photo-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 22px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    text-align: center;
}

.gte-location-icon { font-size: 38px; line-height: 1; }
.gte-location-box p { margin: 0; color: #667085; }
.gte-photo-picker input { max-width: 100%; }
.gte-photo-preview { margin: 14px 0; text-align: center; }
.gte-photo-preview img { max-width: 100%; max-height: 420px; border-radius: 14px; }

.gte-feedback {
    min-height: 0;
    margin-top: 14px;
    padding: 0;
    border-radius: 10px;
    font-weight: 700;
}
.gte-feedback.is-success,
.gte-feedback.is-error { padding: 11px 13px; }
.gte-feedback.is-success { background: #ecfdf3; color: #067647; }
.gte-feedback.is-error { background: #fef3f2; color: #b42318; }

.gte-hints {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}
.gte-hint-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.gte-hint-button {
    padding: 7px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    cursor: pointer;
}
.gte-hint-button.is-used { background: #f1f5f9; }
.gte-hint-content { color: #667085; font-size: 14px; line-height: 1.6; }

.gte-finish__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 36px;
    font-weight: 900;
}
.gte-finish__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}
.gte-finish__stats div { padding: 16px 10px; border-radius: 14px; background: #f8fafc; }
.gte-finish__stats strong { display: block; font-size: 23px; }
.gte-finish__stats span { color: #667085; font-size: 13px; }
.gte-finish__score-note { color: #667085; font-size: 13px; }

.gte-route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.gte-route-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}
.gte-route-card__image { display: block; aspect-ratio: 16/9; overflow: hidden; }
.gte-route-card__image img { width: 100%; height: 100%; object-fit: cover; }
.gte-route-card__body { padding: 18px; }
.gte-route-card h3 { margin-bottom: 8px; }
.gte-route-card__meta { justify-content: flex-start; margin: 0 0 10px; }
.gte-route-card p { color: #667085; }
.gte-empty { padding: 20px; border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; }

@media (max-width: 600px) {
    .gte-player { margin: 18px 0; border-radius: 14px; }
    .gte-player__intro,
    .gte-finish { padding: 24px 18px; }
    .gte-player__header { padding: 17px 18px 13px; }
    .gte-task-heading { padding: 20px 18px 0; }
    .gte-task-card-front { padding: 17px 18px 22px; }
    .gte-answer-row { flex-direction: column; }
    .gte-finish__stats { grid-template-columns: 1fr; }
    .gte-task-stage__head { margin-bottom: 14px; }
}

/* Rich task copy is sanitized by WordPress before it reaches the player. */
.gte-task-instruction p,
.gte-hint-content p,
.gte-finish p { margin: 0 0 10px; }
.gte-task-instruction p:last-child,
.gte-hint-content p:last-child,
.gte-finish p:last-child { margin-bottom: 0; }
.gte-task-instruction img,
.gte-hint-content img,
.gte-finish img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    border-radius: 12px;
}
.gte-task-instruction ul,
.gte-task-instruction ol,
.gte-hint-content ul,
.gte-hint-content ol { margin: 10px 0 10px 22px; padding: 0; }
.gte-task-instruction a,
.gte-hint-content a,
.gte-finish a { color: #9a5d16; font-weight: 700; text-underline-offset: 3px; }

.gte-interaction-note {
    margin: 0 0 12px;
    color: #667085;
    font-size: 14px;
}

.gte-choice-list--images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gte-choice--image {
    position: relative;
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    overflow: hidden;
    padding: 10px;
}

.gte-choice--image img {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 9px;
    border-radius: 9px;
    object-fit: cover;
    background: #f1f5f9;
}

.gte-choice--image input { margin-top: 2px; }
.gte-choice--image span { line-height: 1.45; }

.gte-sort-list {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    counter-reset: gte-sort;
}

.gte-sort-item {
    counter-increment: gte-sort;
    display: grid;
    grid-template-columns: 30px 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 10px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #fff;
    cursor: grab;
    touch-action: manipulation;
}

.gte-sort-item::before {
    content: counter(gte-sort);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 800;
}

.gte-sort-item.is-dragging { opacity: .45; }
.gte-sort-handle { display: none; color: #98a2b3; font-size: 18px; }
.gte-sort-item > .gte-sort-artwork { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: #f1f5f9; }
.gte-sort-item--text { grid-template-columns: 30px minmax(0, 1fr) auto; }
.gte-sort-label { font-weight: 700; line-height: 1.45; }
.gte-sort-controls { display: inline-flex; gap: 5px; }
.gte-sort-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    cursor: pointer;
    font-size: 16px;
}

@media (min-width: 700px) {
    .gte-sort-handle { display: inline; }
    .gte-sort-item { grid-template-columns: 22px 30px 64px minmax(0, 1fr) auto; }
    .gte-sort-item--text { grid-template-columns: 22px 30px minmax(0, 1fr) auto; }
}

@media (max-width: 600px) {
    .gte-choice-list--images { grid-template-columns: 1fr; }
    .gte-sort-item { grid-template-columns: 28px 50px minmax(0, 1fr) auto; gap: 8px; }
    .gte-sort-item--text { grid-template-columns: 28px minmax(0, 1fr) auto; }
    .gte-sort-item > .gte-sort-artwork { width: 50px; height: 42px; }
    .gte-sort-controls { flex-direction: column; }
    .gte-sort-controls button { width: 40px; height: 40px; }
}
.gte-sort-label { min-width:0; overflow-wrap:anywhere; }
.gte-save-notice, .gte-demo-note { padding:10px 12px; border-radius:10px; background:#edf6ef; color:#245b3d; font-size:14px; line-height:1.6; }
.gte-task-stage-label { margin-bottom: 3px; color: #9e3015; font-size: 12px; font-weight: 800; letter-spacing: .04em; }

/* 通关奖励（兑换码 / 徽章） */
.gte-rewards {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 10px;
    background: rgba(0,0,0,.02);
}
.gte-rewards--locked { border-style: dashed; }
.gte-rewards__title {
    font-weight: 700;
    margin-bottom: 10px;
}
.gte-reward {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid rgba(0,0,0,.06);
}
.gte-reward:first-of-type { border-top: 0; }
.gte-reward__label { color: #6b7280; font-size: 13px; }
.gte-reward__code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.15);
    user-select: all;
}
.gte-reward__note { color: #6b7280; font-size: 12px; }
.gte-reward__img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.gte-reward.is-empty .gte-reward__note { color: #9b2c2c; }

/* 幕次抬头 */
.gte-stage-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
    padding: 8px 12px;
    border-left: 3px solid currentColor;
    border-radius: 0 6px 6px 0;
    background: rgba(0,0,0,.03);
    color: #6b7280;
    font-size: 13px;
}
.gte-stage-header.is-opening { background: rgba(21,101,192,.08); color: #1565c0; }
.gte-stage-no {
    font-weight: 700;
    letter-spacing: .04em;
}
.gte-stage-name { color: inherit; font-weight: 600; }
.gte-stage-step {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    opacity: .75;
}

/* 线索册。默认折叠，展开后是一册按拿到顺序排的完成反馈。 */
.gte-cluebook {
    margin: 14px 0 0;
    padding: 0;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 8px;
    background: rgba(0,0,0,.02);
}
.gte-cluebook > summary {
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #4b5563;
    list-style: none;
}
.gte-cluebook > summary::-webkit-details-marker { display: none; }
.gte-cluebook > summary::after {
    content: '▾';
    float: right;
    transition: transform .2s;
}
.gte-cluebook[open] > summary::after { transform: rotate(180deg); }
.gte-cluebook__tip {
    margin: 0 12px;
    color: #9ca3af;
    font-size: 12px;
}
.gte-cluebook__list {
    margin: 8px 0 12px;
    padding: 0 12px 0 30px;
}
.gte-clue { margin: 0 0 10px; }
.gte-clue > label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
}
.gte-clue__text {
    margin-top: 2px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}
/* 勾掉的线索压暗但不隐藏：访客可能勾错，也可能要回头再看 */
.gte-clue.is-checked > label { text-decoration: line-through; opacity: .55; }
.gte-clue.is-checked .gte-clue__text { opacity: .5; }

/* 通关但未登录：给一个直接可点的登录入口，别只留一句话 */
.gte-rewards--locked { text-align: center; }
.gte-rewards__login {
    display: inline-block;
    margin-top: 10px;
}

/* 本关地点：解锁了才由服务器下发（旧多步 / 多步宝迁移后「答对显示下一个点」） */
.gte-place { margin: 12px 0; padding: 12px 14px; border: 1px solid #d6e4d9; border-radius: 12px; background: #f3faf5; }
.gte-place__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.gte-place__head span { color: #3c4a3f; }
.gte-place__coords { margin-top: 4px; color: #667085; font-size: 13px; font-variant-numeric: tabular-nums; }
.gte-place__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gte-place__actions a, .gte-place__actions button {
    display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border: 1px solid #b9d3bf; border-radius: 999px;
    background: #fff; color: #1e6b34; font: inherit; font-size: 13px; text-decoration: none; cursor: pointer;
}
.gte-place__actions a:first-child { background: #1e6b34; border-color: #1e6b34; color: #fff; }
.gte-place__status { margin-top: 6px; color: #1e6b34; font-size: 13px; min-height: 1em; }

/* 关卡配图 */
.gte-level-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.gte-level-gallery.is-single { grid-template-columns: 1fr; }
.gte-level-gallery figure { margin: 0; }
.gte-level-gallery__open { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #f1f5f9; cursor: zoom-in; }
.gte-level-gallery__open img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gte-level-gallery.is-single .gte-level-gallery__open img { aspect-ratio: auto; max-height: 420px; object-fit: contain; }
.gte-level-gallery figcaption { margin-top: 4px; color: #667085; font-size: 13px; }
/* 任务说明、提示、完成反馈里手写或迁移来的图片不撑破版面 */
.gte-task-instruction img, .gte-hint-content img, .gte-feedback img, .gte-clue img { max-width: 100%; height: auto; border-radius: 10px; }

/* 大图浏览 */
.gte-lightbox { position: fixed; inset: 0; z-index: 100060; display: flex; align-items: center; justify-content: center; background: rgba(10, 10, 10, .88); }
.gte-lightbox[hidden] { display: none; }
.gte-lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.gte-lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; }
.gte-lightbox figcaption { margin-top: 8px; color: #e5e7eb; font-size: 14px; }
.gte-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; line-height: 1; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.gte-lightbox__close { top: 16px; right: 16px; }
.gte-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.gte-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.gte-lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #d1d5db; font-size: 13px; }

/* 语音朗读的喇叭按钮 */
.gte-speak { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 6px 12px; border: 1px solid #d0d5dd; border-radius: 999px; background: #fff; color: #344054; font-size: 13px; line-height: 1.2; cursor: pointer; }
.gte-speak:hover { border-color: #98a2b3; }
.gte-speak.is-playing { border-color: #f79009; background: #fffaeb; color: #b54708; }
.gte-speak.is-playing .gte-speak__icon { animation: gte-speak-pulse 1s ease-in-out infinite; }
.gte-feedback .gte-speak { margin: 8px 0 0; display: flex; width: fit-content; }
.gte-clue .gte-speak { margin: 6px 0 0; padding: 4px 10px; font-size: 12px; }
@keyframes gte-speak-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .gte-speak.is-playing .gte-speak__icon { animation: none; } }

/* 通关页的结语。用老的解锁文案时是富文本（可能有图、有列表），靠左排更好读 */
.gte-finish__message.is-unlock-text { text-align: left; line-height: 1.7; }
.gte-finish__message.is-unlock-text p { margin: 0 0 10px; }
.gte-finish__message.is-unlock-text p:last-child { margin-bottom: 0; }
.gte-finish__message.is-unlock-text img { display: block; max-width: 100%; height: auto; margin: 12px auto; border-radius: 8px; }
.gte-finish__message.is-unlock-text ul, .gte-finish__message.is-unlock-text ol { margin: 8px 0 10px 20px; padding: 0; }

/* 扫码过关 */
.gte-scan-row { margin-top: 10px; }
.gte-scan-row .gte-button { width: 100%; }
.gte-scanner { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .82); }
.gte-scanner__frame { width: min(420px, 100%); text-align: center; color: #fff; }
.gte-scanner__frame video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #000; display: block; }
.gte-scanner__frame p { margin: 12px 0; font-size: 15px; }

/* ---- 实体宝箱密码栏 ---- */
.gte-lockbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0; padding: 10px 14px; border: 1px dashed #c9a35a; border-radius: 10px; background: #fff9ea; color: #5a4320; font-size: 14px; }
.gte-lockbar__label { font-weight: 700; }
.gte-lockbar__slots { display: inline-flex; gap: 6px; }
.gte-lockbar__slots b, .gte-lockbar__slots i { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 36px; padding: 0 6px; border-radius: 6px; font: 700 20px/1 ui-monospace, Menlo, Consolas, monospace; font-style: normal; }
.gte-lockbar__slots b { background: #2f281f; color: #ffd77a; }
.gte-lockbar__slots i { background: #efe3c6; color: #b9a377; }
.gte-lockbar__note { margin-left: auto; font-size: 13px; opacity: .85; }
.gte-lockbar.is-open { border-style: solid; border-color: #2e8b57; background: #eefaf1; color: #1f5c3a; }
.gte-lock-new { display: inline-block; padding: 0 8px; border-radius: 5px; background: #2f281f; color: #ffd77a; font: 700 18px/1.5 ui-monospace, Menlo, Consolas, monospace; }
.gte-task-perk { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; background: #f3ead4; color: #7a5a1e; font-size: 12px; }
.gte-task-perk.is-rare { background: #2f281f; color: #ffd77a; }
.gte-intro-extra { margin: 8px 0 0; font-size: 14px; color: #6a5a3f; }

/* ---- 首位通关 / 名次 ---- */
.gte-first { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 12px 0 0; padding: 8px 12px; border-left: 3px solid #c0892f; background: rgba(192, 137, 47, .08); font-size: 14px; }
.gte-first span { font-weight: 700; color: #8a5f17; }
.gte-first em { font-style: normal; opacity: .7; font-size: 13px; }
.gte-first.is-open { color: #6a5a3f; }
.gte-rank { margin: 12px 0; font-size: 15px; }
.gte-rank.is-first { padding: 10px 14px; border-radius: 10px; background: #2f281f; color: #ffd77a; font-weight: 700; }

/* ---- 图鉴卡 ---- */
.gte-card-toast { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(20, 15, 8, .55); animation: gte-fade .2s ease; }
.gte-card-toast__inner { width: 220px; padding: 14px 14px 16px; border-radius: 16px; background: #fffdf7; border: 3px solid #e2d5b8; text-align: center; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); animation: gte-card-in .45s cubic-bezier(.2, 1.2, .3, 1); }
.gte-card-toast__inner.is-rare { border-color: #e9b44c; box-shadow: 0 0 0 4px rgba(233, 180, 76, .35), 0 18px 50px rgba(0, 0, 0, .4); }
.gte-card-toast__eyebrow { font-size: 12px; letter-spacing: 2px; color: #9a681f; margin-bottom: 8px; }
.gte-card-toast__art { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #efe6d2; display: flex; align-items: center; justify-content: center; font-size: 56px; margin-bottom: 10px; }
.gte-card-toast__art img { width: 100%; height: 100%; object-fit: cover; }
.gte-card-toast__inner strong { display: block; font-size: 16px; color: #2f281f; }
.gte-card-toast__inner small { display: block; margin-top: 4px; color: #8a7a62; }
@keyframes gte-card-in { from { transform: translateY(30px) rotate(-6deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gte-fade { from { opacity: 0; } to { opacity: 1; } }
.gte-finish-cards { margin: 14px 0; text-align: left; }
.gte-finish-cards__title { font-weight: 700; margin-bottom: 8px; }
.gte-finish-cards__list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.gte-finish-cards__list figure { flex: 0 0 92px; margin: 0; border-radius: 8px; overflow: hidden; border: 2px solid #e2d5b8; background: #efe6d2; position: relative; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.gte-finish-cards__list figure.is-rare { border-color: #e9b44c; }
.gte-finish-cards__list img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gte-finish-cards__list figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 4px 4px; font-size: 11px; line-height: 1.2; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); text-align: center; }
.gte-album-link { display: inline-block; margin-top: 6px; }

/* ---- 口令条（别处扫码 / 碰一碰带回来） ---- */
.gte-bridge { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #1f2a44; color: #e8eefc; }
.gte-bridge__code { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.gte-bridge__code span { font-size: 13px; opacity: .85; }
.gte-bridge__code b { font: 700 28px/1.1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 3px; color: #ffd77a; }
.gte-bridge p { margin: 8px 0 4px; font-size: 13px; line-height: 1.6; opacity: .9; }
.gte-bridge .gte-bridge__close { color: #b9c8ee; }
.gte-bridge-entry { margin-top: 12px; font-size: 14px; }
.gte-bridge-entry summary { cursor: pointer; color: #8a5f17; }
.gte-bridge-entry .gte-answer-row { margin-top: 8px; }

/* ---- 老照片对位相机 ---- */
.gte-photo-picker--minor { opacity: .85; font-size: 13px; }
.gte-compare-save { display: block; margin-top: 8px; text-align: center; }
.gte-overlay-cam { position: fixed; inset: 0; z-index: 100100; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gte-overlay-cam__shutter:disabled { opacity: .45; cursor: wait; }
.gte-overlay-cam__stage { position: relative; overflow: hidden; background: #111; max-width: 100vw; }
.gte-overlay-cam__stage video, .gte-overlay-cam__old { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gte-overlay-cam__old { pointer-events: none; opacity: .5; }
.gte-overlay-cam__bar { width: 100%; max-width: 560px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); color: #fff; }
.gte-overlay-cam__bar label { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.gte-overlay-cam__bar input[type=range] { flex: 1; }
.gte-overlay-cam__actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.gte-overlay-cam__shutter { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; border: 4px solid #fff; background: #e9b44c; cursor: pointer; }
.gte-overlay-cam__shutter:active { transform: scale(.94); }
.gte-overlay-cam__tip { font-size: 12px; opacity: .8; line-height: 1.4; }

/* ---- 长的完成反馈（剧情）：等玩家点「继续」 ---- */
.gte-continue-row { margin: 12px 0 4px; text-align: center; }
.gte-continue-row .gte-button { min-width: 160px; }

/* 密码盘的操作容器也用于室内弹窗与地图闯关视图，不依赖主题父级。 */
.gte-dial { width:100%; max-width:420px; margin:0 auto; box-sizing:border-box; }
.gte-dial-face { display:block; width:100%; height:auto; max-width:350px; margin:8px auto; touch-action:none; user-select:none; }
.gte-dial-base { fill:#29231d; stroke:#c5a467; stroke-width:3; }
.gte-dial-track { fill:none; stroke:#4a4033; stroke-width:30; }
.gte-dial-ring { cursor:grab; outline:none; }
.gte-dial-ring:active { cursor:grabbing; }
.gte-dial-ring:focus .gte-dial-track { stroke:#756040; }
.gte-dial-ring text { fill:#fff2d7; pointer-events:none; font-weight:600; }
.gte-dial-pointer { fill:#f8ce74; pointer-events:none; }
.gte-dial-guide { fill:none; stroke:#f8ce74; stroke-width:2; stroke-dasharray:3 5; pointer-events:none; }
.gte-dial-hub { fill:#2e281f; stroke:#c5a467; stroke-width:2; }
.gte-dial-center { fill:#f8ce74; font-size:15px; font-weight:700; }
.gte-dial-controls { display:grid; gap:8px; }
.gte-dial-row { display:grid; grid-template-columns:60px 44px minmax(0,1fr) 44px; gap:8px; align-items:center; }
.gte-dial-row label { font-size:14px; margin:0; }
.gte-dial-row button,.gte-dial-row select { box-sizing:border-box; margin:0; padding:6px; min-width:0; min-height:44px; border:1px solid #cbbda4; border-radius:8px; background:#fffaf0; color:#312b24; font:inherit; text-align:center; }
.gte-dial-selection { margin:12px 0; text-align:center; font-size:14px; overflow-wrap:anywhere; }
.gte-submit-dial { width:100%; }

/* Picture choices: selection and inspection are separate actions. */
.gte-choice-option { position: relative; min-width: 0; }
.gte-choice-list .gte-choice { box-sizing: border-box; width: 100%; height: 100%; min-height: 54px; padding: 14px 14px 14px 46px; border: 2px solid #d5ded9; border-radius: 14px; background: #fff; color: #253b32; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.gte-choice-list .gte-choice--image { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 10px; padding: 44px 10px 12px; }
.gte-choice-list .gte-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gte-choice-mark { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; box-sizing: border-box; width: 23px; height: 23px; border: 2px solid #7a9186; border-radius: 50%; background: #fff; color: transparent; font-size: 16px; font-weight: 800; line-height: 1; }
.gte-choice input[type=checkbox] + .gte-choice-mark { border-radius: 6px; }
.gte-choice-option.is-selected .gte-choice { border-color: #17644e; background: #edf8f1; box-shadow: 0 0 0 2px rgba(23,100,78,.16); }
.gte-choice-option.is-selected .gte-choice-mark { border-color: #17644e; background: #17644e; color: #fff; }
.gte-choice-option:focus-within .gte-choice { outline: 3px solid #ba822e; outline-offset: 3px; }
.gte-choice-list .gte-choice img { display: block; width: 100%; height: auto; max-height: 260px; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 8px; background: #f8f4e9; }
.gte-choice-label { font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.gte-choice--image .gte-choice-label { text-align: center; }
.gte-choice-zoom { position: absolute; z-index: 2; top: 6px; right: 6px; min-width: 48px; min-height: 36px; padding: 6px 10px; border: 1px solid #cbd7d0; border-radius: 9px; background: #fff; color: #24563f; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: zoom-in; }
.gte-choice-zoom:focus-visible { outline: 3px solid #ba822e; outline-offset: 2px; }
.gte-choice-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0 4px; }
.gte-selection-status { min-width: 0; color: #315744; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.gte-selection-status.is-error { color: #a23b29; }
.gte-choice-actions .gte-button { flex: 0 0 auto; margin: 0; }
.gte-choice-actions .gte-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none !important; }
.gte-task-notes { margin: 10px 0 16px; padding: 10px 12px; border: 1px solid #e1e5df; border-radius: 10px; color: #536458; font-size: 14px; line-height: 1.65; }
.gte-task-notes > summary { cursor: pointer; font-weight: 600; }
.gte-task-notes p { margin: 10px 0 0; }
.gte-route-counter { display: block; margin-top: 4px; color: #66766b; font-size: 13px; }
#treasure-tasks .gte-level-gallery__open img { object-fit: contain; background: #f1f0e9; }
#treasure-tasks .gte-level-gallery.is-single .gte-level-gallery__open img { max-height: 240px; }
@media (max-width: 768px) {
    .gte-choice-list--images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gte-choice-list--images .gte-choice img { max-height: 190px; }
    .gte-choice-zoom { min-height: 44px; top: 0; }
    .gte-choice-actions.is-in-view { position: fixed; z-index: 9990; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 12px 14px; border: 1px solid #bed2c5; border-radius: 16px; background: #fffef8; box-shadow: 0 8px 34px rgba(25,48,32,.25); }
    .gte-choice-action-space { min-height: 78px; }
    .gte-choice-actions .gte-button { min-width: 112px !important; min-height: 48px; }
    .gte-selection-status { font-size: 13px; }
    body:has(.gte-choice-actions.is-in-view) .mobile-treasure-bar { display: none !important; }
    #treasure-tasks .gte-level-gallery.is-single .gte-level-gallery__open img { max-height: 170px; }
}
@media (prefers-reduced-motion: reduce) { .gte-choice-list .gte-choice { transition: none; } }

.gte-discovery__title { display: block; margin-bottom: 12px; color: #215b48; font-size: 18px; }
.gte-discovery__body { line-height: 1.75; }
.gte-discovery__body > p:first-child { font-weight: 600; }
.gte-discovery__score { margin-top: 12px; font-size: 13px; opacity: .85; }
