/* Daily Guess the place (/guess/): on top of the shared maker look (/gifts/globes/maker.css). */

.gq { --h0: #3fbf7f; --h1: #e0484f; --h2: #ec8a3c; --h3: #e3c34a; --h4: #4f8fd6; padding-top: 10px; }
.gq-top { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.gq-title { flex: 1; min-width: 0; }
.gq-title h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.gq-title p { margin: 3px 0 0; color: var(--muted); font-size: 0.86rem; }
.gq-tools { display: flex; gap: 6px; }
.gq-icon {
    width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--panel); color: var(--ink);
    display: grid; place-items: center; font-size: 1.3rem; cursor: pointer; padding: 0;
}
.gq-icon:hover, .gq-icon:focus-visible { background: #232826; }
.gq-archnote { margin: 0 0 10px; padding: 8px 12px; border-radius: 9px; background: rgba(217, 177, 74, 0.12); color: var(--ink); font-size: 0.86rem; }

.gq-app { grid-template-columns: minmax(0, 1fr) 420px; }
.gq-stage { height: calc(100vh - 150px); min-height: 480px; }
.gq-stage .wm-view { margin-top: 10px; }
.gq-pips { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; gap: 5px; pointer-events: none; }
.gq-pip { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.gq-pip.is-now { box-shadow: inset 0 0 0 2px var(--ink); }
.gq-pip.is-h0 { background: var(--h0); } .gq-pip.is-h1 { background: var(--h1); } .gq-pip.is-h2 { background: var(--h2); }
.gq-pip.is-h3 { background: var(--h3); } .gq-pip.is-h4 { background: var(--h4); }
.gq-looks { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; pointer-events: none; }
.gq-looks .wm-seg { pointer-events: auto; backdrop-filter: blur(6px); background: rgba(10, 12, 14, 0.55); }
.gq-retry { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; }

.gq-panel { padding-top: 2px; }
.gq-sec { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
.gq-sec:last-of-type { border-bottom: 0; }
.gq-sec h2 { font-size: 1.02rem; font-weight: 700; margin: 0 0 10px; }
.gq-sechead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gq-sechead h2 { margin: 0; }
.gq-units button { padding: 3px 10px !important; font-size: 0.78rem !important; }

.gq-search { display: flex; gap: 6px; }
.gq-search input {
    flex: 1; min-width: 0; background: var(--field); color: var(--ink); border: 1px solid transparent; border-radius: 10px;
    padding: 11px 12px; font: inherit; font-size: 1rem;
}
.gq-search input:focus { outline: none; border-color: var(--accent); }
.gq-search .wm-btn { padding: 0 14px; font-size: 1.15rem; }
.gq-sugg { background: var(--field); border-radius: 10px; padding: 4px; margin-top: 6px; }
.gq-sugg button:hover, .gq-sugg button:focus-visible { background: #2a302d; outline: none; }
.gq-pending {
    display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 8px 8px 12px; border-radius: 10px;
    background: rgba(47, 165, 150, 0.14); box-shadow: inset 0 0 0 1px rgba(47, 165, 150, 0.45); font-size: 0.92rem;
}
.gq-pending > i { color: var(--accent); font-size: 1.2rem; }
.gq-pending span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.gq-pending .wm-btn-main { padding: 9px 18px; }
.gq-mapwrap { margin-top: 10px; border-radius: 10px; overflow: hidden; background: var(--field); }
.gq-map { width: 100%; height: 300px; }
.gq-mapwrap .maplibregl-ctrl-attrib { font-size: 10px; }
.gq-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.gq-pin {
    width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; cursor: default;
    color: #fff; font-size: 0.72rem; font-weight: 700; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.4);
}
.gq-pin.is-pending { background: var(--accent); cursor: grab; width: 28px; height: 28px; font-size: 0.9rem; }
.gq-pin.is-answer { background: #1f2a33; color: var(--gold); width: 30px; height: 30px; font-size: 1rem; }

.gq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gq-g {
    display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "n name d" "n t d"; align-items: center; column-gap: 10px;
    padding: 8px 10px; border-radius: 10px; background: var(--field); border-left: 4px solid var(--hc, transparent);
}
.gq-g.is-h0 { --hc: var(--h0); } .gq-g.is-h1 { --hc: var(--h1); } .gq-g.is-h2 { --hc: var(--h2); }
.gq-g.is-h3 { --hc: var(--h3); } .gq-g.is-h4 { --hc: var(--h4); }
.gq-g-n { grid-area: n; width: 24px; height: 24px; border-radius: 50%; background: var(--hc); color: #fff; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; }
.gq-g-name { grid-area: name; font-size: 0.92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gq-g-d { grid-area: d; font-variant-numeric: tabular-nums; font-size: 0.92rem; white-space: nowrap; }
.gq-g-t { grid-area: t; font-size: 0.76rem; color: var(--muted); }
.gq-g-t.is-warmer { color: #ff9b8a; } .gq-g-t.is-colder { color: #8fb8ea; }
.gq-arrow { display: inline-block; font-weight: 700; color: var(--hc); transition: transform 0.4s; }

.gq-hints { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 0.86rem; }
.gq-hints li { display: flex; gap: 9px; align-items: center; color: var(--muted); }
.gq-hints li.is-on { color: var(--ink); }
.gq-hints li.is-on i { color: var(--gold); }

.gq-end-head { padding: 14px 14px 12px; border-radius: 12px; background: var(--field); }
.gq-end-head.is-won { background: linear-gradient(135deg, rgba(63, 191, 127, 0.22), rgba(47, 165, 150, 0.08)); }
.gq-result { margin: 0 0 8px; font-weight: 700; font-size: 1rem; }
.gq-itwas { margin: 0; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.wm .gq-name { margin: 2px 0 2px; font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1.15; }
.gq-where { margin: 0; color: var(--muted); font-size: 0.9rem; }
.gq-fact { margin: 12px 0 0; font-size: 0.9rem; line-height: 1.5; }
.gq-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gq-actions .wm-btn { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.gq-actions .wm-btn-main { flex: 1 1 100%; justify-content: center; padding: 12px; font-size: 0.98rem; }
.wm a.wm-btn { color: var(--ink); }
.gq-sharetext { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #0f1211; color: var(--ink); font: 0.84rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; user-select: all; }
.gq-everyone h3 { font-size: 0.92rem; margin: 16px 0 8px; }
.gq-everyone small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.gq-next { margin: 14px 0 0; color: var(--muted); font-size: 0.86rem; }

.gq-bars { display: flex; flex-direction: column; gap: 4px; }
.gq-bar { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 0.8rem; }
.gq-bar-l { text-align: center; color: var(--muted); }
.gq-bar-t { display: block; }
.gq-bar-f { display: block; min-width: 22px; padding: 2px 6px; border-radius: 4px; background: #3a403d; text-align: right; font-variant-numeric: tabular-nums; }
.gq-bar.is-mine .gq-bar-f { background: var(--accent); color: #fff; }

.gq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* dialogs */
.gq-dlg {
    width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 40px); border: 0; border-radius: 16px; padding: 20px 20px 18px;
    background: var(--panel); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.gq-dlg::backdrop { background: rgba(5, 6, 8, 0.7); }
.gq-dlg h2 { font-size: 1.3rem; margin: 0 30px 10px 0; }
.gq-dlg h3 { font-size: 0.92rem; margin: 18px 0 8px; }
.gq-dlg p, .gq-dlg li { font-size: 0.92rem; line-height: 1.5; color: var(--ink); }
.gq-dlg ul { padding-left: 18px; margin: 10px 0; }
.gq-dlg li + li { margin-top: 6px; }
.gq-dlg form { margin-top: 14px; }
.gq-dlg form .wm-btn { width: 100%; padding: 12px; }
.gq-x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--field); color: var(--ink); font-size: 1.3rem; display: grid; place-items: center; cursor: pointer; padding: 0; }
.gq-sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; }
.gq-sw.is-h1 { background: var(--h1); } .gq-sw.is-h2 { background: var(--h2); } .gq-sw.is-h3 { background: var(--h3); } .gq-sw.is-h4 { background: var(--h4); }
.gq-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.gq-kpis strong { display: block; font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.gq-kpis span { display: block; font-size: 0.72rem; color: var(--muted); line-height: 1.2; }
.gq-dlgunits { margin-top: 16px; font-size: 0.86rem; color: var(--muted); }
.gq-arch { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.gq-arch a { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--field); color: var(--ink); text-decoration: none; font-size: 0.88rem; }
.gq-arch a:hover, .gq-arch a:focus-visible { background: #262b29; }
.gq-arch a.is-cur { box-shadow: inset 0 0 0 1.5px var(--accent); }
.gq-arch em { font-style: normal; color: var(--muted); }
.gq-arch a.is-won em { color: #8fd19e; }
.gq-arch a.is-lost em { color: #ff9b8a; }

@media (max-width: 900px) {
    .gq-app { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .gq-stage { height: min(58vh, 520px); min-height: 300px; }
    .gq-map { height: 240px; }
}
@media (max-width: 560px) {
    .gq-title h1 { font-size: 1.4rem; }
    .gq-panel { padding: 2px 14px 14px; }
    .gq-stage .wm-status { padding: 6px 12px 8px; }
}
