.wpg-globle-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 10px; }
.wpg-globle-status { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.wpg-globle-status b { color: var(--ink); font-weight: 800; }

.wpg-globle-form { display: flex; gap: 8px; align-items: stretch; margin-bottom: 8px; }
.wpg-globle-field { position: relative; flex: 1 1 auto; min-width: 0; }
.wpg-globle-form .wpg-input { width: 100%; }
.wpg-globle-form .wpg-btn { flex: 0 0 auto; }
.wpg-globle-form .wpg-input.is-shake { animation: wpg-shake .4s; }
.wpg-globle-sug {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; display: none; max-height: 290px; overflow: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); padding: 4px;
}
.wpg-globle-sug.is-open { display: block; }
.wpg-globle-sug__i { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink); }
.wpg-globle-sug__i small { color: var(--ink-soft); font-weight: 600; font-size: 12.5px; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wpg-globle-sug__i.is-on, .wpg-globle-sug__i:hover { background: var(--accent-soft); }
.wpg-globle-sug__f { flex: 0 0 auto; line-height: 1; }
.wpg-globle-noflag { display: inline-block; width: 1.33em; height: 1em; border-radius: 2px; vertical-align: -.14em; background: linear-gradient(135deg, #cbd5e1, #94a3b8); }

.wpg-globle-done { text-align: center; margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); }
.wpg-globle-done__t { font-size: 15px; margin-bottom: 8px; color: var(--ink); }

.wpg-globle-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; min-height: 34px; }
.wpg-globle-tools.is-empty { display: none; }
.wpg-globle-hints { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.wpg-globle-hint { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #7c2d12; background: #ffedd5; }
body.dark .wpg-globle-hint { color: #fed7aa; background: rgba(234, 88, 12, .22); }
.wpg-globle-hint svg { width: 15px; height: 15px; flex: 0 0 auto; }
.wpg-globle-hint.is-new { animation: wpg-globle-pop .6s var(--ease); }
@keyframes wpg-globle-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.wpg-globle-tools__b { display: flex; gap: 8px; margin-left: auto; flex: 0 0 auto; }

.wpg-globle-globe { position: relative; width: 100%; height: 360px; border-radius: 16px; overflow: hidden; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 6%, transparent), transparent); }
.wpg-globle-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.wpg-globle-canvas:active { cursor: grabbing; }
.wpg-globle-tip {
    position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); pointer-events: none; white-space: nowrap;
    font-size: 12px; font-weight: 700; color: var(--ink-soft); background: color-mix(in srgb, var(--surface) 85%, transparent);
    padding: 4px 10px; border-radius: 999px; transition: opacity .4s;
}
.wpg-globle-tip.is-off { opacity: 0; }
.wpg-globle-zooms { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.wpg-app--globle .wpg-globle-zoom {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: var(--shadow-1);
}
.wpg-globle-zoom:hover { background: var(--accent-soft); }
.wpg-globle-zoom svg { width: 18px; height: 18px; }

.wpg-globle-credit { text-align: right; font-size: 11px; color: var(--ink-soft); margin: 2px 2px 8px; }
.wpg-globle-credit a { color: var(--ink-soft) !important; text-decoration: underline !important; }

.wpg-globle-list { display: flex; flex-direction: column; gap: 5px; }
.wpg-globle-empty { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 8px 6px; }
.wpg-app--globle .wpg-globle-row {
    display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%;
    min-height: 40px; padding: 6px 12px; border: 0; border-radius: 11px; cursor: pointer; text-align: left;
    background: color-mix(in srgb, var(--ink) 5%, var(--surface)); color: var(--ink); font: inherit; font-weight: 800; font-size: 14.5px;
}
.wpg-globle-row:hover { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.wpg-globle-row.is-new { animation: wpg-rise .3s var(--ease); }
.wpg-globle-row.is-last { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.wpg-app--globle .wpg-globle-row.is-win, .wpg-app--globle .wpg-globle-row.is-answer { background: color-mix(in srgb, var(--ok) 18%, var(--surface)); }
.wpg-globle-sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(60, 20, 10, .25); }
.wpg-globle-row__n { display: flex; align-items: center; gap: 7px; min-width: 0; }
.wpg-globle-row__n span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpg-globle-row__d { font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; font-size: 13.5px; }
.wpg-globle-row.is-win .wpg-globle-row__d, .wpg-globle-row.is-answer .wpg-globle-row__d { color: var(--ok); }

.wpg-globle-end { text-align: center; margin: 0 0 14px; }
.wpg-globle-end__c { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; padding: 6px 14px; border-radius: 12px; background: var(--accent-soft); }
.wpg-globle-end__c b { font-weight: 900; }
.wpg-page--globle .wpg-dist__row span:first-child { width: 40px; flex: 0 0 auto; white-space: nowrap; }
.wpg-globle-q { margin: 0 0 4px; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }

.wpg-globle-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; padding: 6px 0 4px; }
.wpg-globle-switch b { display: block; font-size: 15px; color: var(--ink); }
.wpg-globle-switch small { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.wpg-globle-switch__in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wpg-globle-switch__ui { flex: 0 0 auto; position: relative; width: 46px; height: 27px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 18%, var(--surface)); transition: background .2s; }
.wpg-globle-switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.wpg-globle-switch__in:checked + .wpg-globle-switch__ui { background: var(--accent); }
.wpg-globle-switch__in:checked + .wpg-globle-switch__ui::after { transform: translateX(19px); }
.wpg-globle-switch__in:focus-visible + .wpg-globle-switch__ui { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 520px) {
    .wpg-globle-form .wpg-btn { padding: 10px 14px; }
    .wpg-app--globle .wpg-globle-row { font-size: 14px; padding: 6px 10px; }
    .wpg-globle-status { font-size: 12.5px; }
}
