/* =============================================================
   The Garden of Earthly Delights - a page of Lloyd's Wunderkammer
   Sections: 0 niche and stage, 1 frame and canvas, 2 wings (closed
   overlay), 3 pins and tags, 4 the card, 5 the map and the hud,
   6 the bar (buttons), 7 tour and hunt strips, 8 help, 9 full screen,
   10 catalogue on the page, 11 responsive, 12 reduced motion.
   Every rule is scoped to html.wk. Brass buttons, pins and the frame
   are Blender renders in img/ui/.
   ============================================================= */

/* ---- 0. niche and stage ---------------------------------------------- */
html.wk .gd-niche { max-width: 1236px; margin-top: 0.2rem; }
html.wk .gd-niche .wk-label { position: relative; top: auto; right: auto; display: block; max-width: 34em; margin: 0 6px 12px auto; transform: rotate(0.6deg); }
html.wk .gd-stage {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    background: #0b0806;
    color: var(--wk-bone);
    font-family: var(--wk-text);
    line-height: 1.35;
    user-select: none;
    -webkit-user-select: none;
}
html.wk .gd-stage *, html.wk .gd-stage *::before, html.wk .gd-stage *::after { box-sizing: border-box; }
html.wk .gd-stage p { margin: 0; }
html.wk .gd-stage .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.wk .gd-stage button { font: inherit; color: inherit; cursor: pointer; }
/* the room's wooden buttons keep their brass letters on the paper cards and the phone gate */
html.wk .gd-stage .wk-btn { color: var(--wk-brass); font-family: var(--wk-fell-sc); }
html.wk .gd-stage .wk-btn:hover, html.wk .gd-stage .wk-btn:focus-visible { color: #f3dc9c; }
html.wk .gd-stage button:focus-visible, html.wk .gd-stage a:focus-visible, html.wk .gd-stage [tabindex]:focus-visible { outline: 2px solid var(--wk-brass); outline-offset: 2px; }

/* ---- 1. frame and canvas -------------------------------------------- */
html.wk .gd-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: calc(100vh - 140px);
    min-height: 360px;
    background: #0b0806;
    overflow: hidden;
    border: 34px solid transparent;
    border-image: url('../img/ui/frame.webp') 150 / 34px / 0 stretch;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.6);
}
html.wk .gd-frame.gd-noframe { border: 0; border-image: none; }
html.wk .gd-inner { position: absolute; inset: 0; overflow: hidden; background: #0b0806; }
html.wk #gd-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
    touch-action: none;
    cursor: grab;
}
html.wk .gd-stage.is-dragging #gd-canvas { cursor: grabbing; }
html.wk .gd-stage:not([data-phase="open"]) #gd-canvas { visibility: hidden; }
/* the closed wings as a zoomable picture of their own, over the DOM wings that only do the swing */
html.wk #gd-xcanvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
    touch-action: none;
    cursor: grab;
    pointer-events: auto;
}
html.wk #gd-xcanvas.is-over { cursor: pointer; }
html.wk .gd-stage:not([data-phase="closed"]) #gd-xcanvas { visibility: hidden; pointer-events: none; }
/* a faint candle vignette over the picture, under the pins */
html.wk .gd-vignette {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.38) 100%);
    opacity: 0.8;
}
html.wk .gd-stage[data-phase="closed"] .gd-vignette { opacity: 0; }

/* the spotlight: after a flight the rest of the picture dims for a moment, with a soft edge,
   so you know where the camera landed; nothing hard is ever drawn on the paint */
html.wk .gd-spot {
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse var(--rx, 30%) var(--ry, 30%) at var(--cx, 50%) var(--cy, 50%), rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.52) 100%);
    transition: opacity 0.9s ease-out;
}
html.wk .gd-spot.is-on { opacity: 1; transition: opacity 0.35s ease-in; }
html.wk .gd-stage[data-phase="closed"] .gd-spot { z-index: 4; }   /* over the closed wings too */

/* ---- 2. the wings: the closed triptych over the canvas ---------------- */
html.wk .gd-wings {
    position: absolute; inset: 0;
    perspective: 2400px;
    perspective-origin: 50% 50%;
    pointer-events: none;
    z-index: 3;
}
html.wk .gd-wings[hidden] { display: none; }
html.wk .gd-wing {
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1.7s cubic-bezier(0.55, 0.05, 0.3, 1);
    pointer-events: auto;
    will-change: transform;
}
html.wk .gd-wing--l { transform-origin: 100% 50%; }   /* hinged on the edge of the centre panel */
html.wk .gd-wing--r { transform-origin: 0 50%; }
html.wk .gd-face {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}
/* the back face (grisaille) is what you see when closed: it faces the viewer at 180 degrees */
html.wk .gd-face--back { transform: rotateY(180deg); background-size: cover; background-color: #1a1612; }
html.wk .gd-face--front { background-repeat: no-repeat; }
html.wk .gd-stage[data-phase="closed"] .gd-wing--l, html.wk .gd-stage[data-phase="closing"] .gd-wing--l { transform: rotateY(180deg); }
html.wk .gd-stage[data-phase="closed"] .gd-wing--r, html.wk .gd-stage[data-phase="closing"] .gd-wing--r { transform: rotateY(-180deg); }
html.wk .gd-stage[data-phase="opening"] .gd-wing--l, html.wk .gd-stage[data-phase="open"] .gd-wing--l { transform: rotateY(0deg); }
html.wk .gd-stage[data-phase="opening"] .gd-wing--r, html.wk .gd-stage[data-phase="open"] .gd-wing--r { transform: rotateY(0deg); }
/* the centre panel behind the wings while closed */
html.wk .gd-centreback {
    position: absolute;
    background-size: 100% 100%;
    pointer-events: none;
}
/* the seam of light between the closed wings */
html.wk .gd-seam {
    position: absolute; width: 2px;
    background: linear-gradient(to bottom, rgba(255, 200, 120, 0), rgba(255, 200, 120, 0.35) 30%, rgba(255, 200, 120, 0.35) 70%, rgba(255, 200, 120, 0));
    pointer-events: none;
    opacity: 1; transition: opacity 0.6s;
}
html.wk .gd-stage[data-phase="open"] .gd-seam, html.wk .gd-stage[data-phase="opening"] .gd-seam { opacity: 0; }
/* the closed-state hint and pins */
html.wk .gd-closedhint {
    position: absolute; left: 50%; bottom: 6%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    font-family: var(--wk-fell);
    font-style: italic;
    font-size: 1.05rem;
    color: #e9d9b0;
    background: rgba(13, 9, 7, 0.72);
    border: 1px solid rgba(212, 176, 106, 0.4);
    border-radius: 2px;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.5s;
}
html.wk .gd-stage:not([data-phase="closed"]) .gd-closedhint { opacity: 0; }
html.wk .gd-stage.has-card .gd-closedhint, html.wk .gd-stage.x-zoomed .gd-closedhint { opacity: 0; }

/* ---- 3. the pointer and the found owls ------------------------------------ */
html.wk .gd-pins { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
html.wk #gd-canvas.is-over { cursor: pointer; }
html.wk .gd-stage.is-dragging #gd-canvas.is-over { cursor: grabbing; }

/* ---- 4. the card ------------------------------------------------------ */
html.wk .gd-card {
    position: absolute; top: 14px; right: 14px; bottom: 14px;
    width: min(400px, 46%);
    z-index: 6;
    color: var(--wk-ink);
    background: var(--wk-paper) url('/wunderkammer/img/paper.webp') center / 512px 512px;
    clip-path: var(--wk-torn);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    display: flex; flex-direction: column;
    transform: translateX(calc(100% + 30px));
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s;
    pointer-events: none;
}
html.wk .gd-card.is-open { transform: none; opacity: 1; pointer-events: auto; }
html.wk .gd-card[hidden] { display: flex; }
html.wk .gd-card__head {
    flex: 0 0 auto;
    padding: 1rem 2.6rem 0.55rem 1.3rem;
    border-bottom: 1px solid rgba(90, 70, 50, 0.35);
}
html.wk .gd-card__no { display: block; font-family: var(--wk-fell-sc); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--wk-vermilion); }
html.wk .gd-card__title { margin: 0.1rem 0 0; font-family: var(--wk-fell); font-weight: normal; font-size: 1.45rem; line-height: 1.15; color: var(--wk-ink); }
html.wk .gd-card__where { margin-top: 0.35rem; font-size: 0.92rem; font-style: italic; color: var(--wk-ink-soft); }
html.wk .gd-card__close {
    position: absolute; top: 10px; right: 12px;
    width: 34px; height: 34px;
    border: 1px solid rgba(90, 70, 50, 0.4); border-radius: 50%;
    background: rgba(255, 250, 235, 0.5);
    font-family: var(--wk-fell); font-size: 1.3rem; line-height: 1;
    color: var(--wk-ink-soft);
}
html.wk .gd-card__close:hover { color: var(--wk-vermilion); background: rgba(255, 250, 235, 0.9); }
html.wk .gd-card__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.8rem 1.3rem 1rem;
    font-size: 1.02rem;
    line-height: 1.5;
    scrollbar-color: #8d7247 #e2cf9f;
    overscroll-behavior: contain;
}
html.wk .gd-card__body p { margin: 0 0 0.7rem; }
html.wk .gd-card__body h4 {
    margin: 1rem 0 0.35rem;
    font-family: var(--wk-fell-sc); font-weight: normal; font-size: 0.85rem; letter-spacing: 0.1em;
    color: var(--wk-vermilion);
}
html.wk .gd-card__body h4::before { content: '\00B6\00A0'; }
html.wk .gd-card__look { padding: 0.6rem 0.8rem; margin: 0.6rem 0; border: 1px dashed rgba(166, 43, 43, 0.5); font-size: 0.95rem; }
html.wk .gd-card__look button { display: inline-block; margin-top: 0.3rem; padding: 0.2rem 0.6rem; font-family: var(--wk-fell-sc); font-size: 0.82rem; letter-spacing: 0.06em; color: var(--wk-paper); background: var(--wk-vermilion); border: 0; border-radius: 2px; }
html.wk .gd-card__sources { font-size: 0.84rem; line-height: 1.35; color: var(--wk-ink-soft); }
html.wk .gd-card__sources li { margin: 0 0 0.25rem; }
html.wk .gd-card__sources a { color: var(--wk-link); text-decoration: underline; }
html.wk .gd-card__sources ul { margin: 0; padding-left: 1.1rem; }
html.wk .gd-card__foot {
    flex: 0 0 auto;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem;
    padding: 0.6rem 1.3rem 1.1rem;
    border-top: 1px solid rgba(90, 70, 50, 0.35);
}
html.wk .gd-card__foot button {
    padding: 0.35rem 0.65rem;
    font-family: var(--wk-fell-sc); font-size: 0.85rem; letter-spacing: 0.06em;
    color: var(--wk-ink);
    background: rgba(255, 250, 235, 0.55);
    border: 1px solid rgba(90, 70, 50, 0.45); border-radius: 2px;
}
html.wk .gd-card__foot button:hover { background: #fff8e6; color: var(--wk-vermilion); }
html.wk .gd-card__foot button:disabled { opacity: 0.4; cursor: default; }
html.wk .gd-card__grip { display: none; }

/* ---- 5. the map and the hud ------------------------------------------- */
html.wk .gd-map {
    position: absolute; left: 12px; bottom: 12px;
    width: 220px;
    z-index: 5;
    padding: 6px 6px 5px;
    background: rgba(13, 9, 7, 0.78);
    border: 1px solid rgba(212, 176, 106, 0.45);
    border-radius: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    transition: opacity 0.4s;
}
html.wk .gd-map canvas { display: block; width: 100%; height: auto; cursor: pointer; }
html.wk .gd-where {
    margin-top: 4px;
    font-family: var(--wk-fell);
    font-size: 0.8rem;
    line-height: 1.2;
    color: #e9d9b0;
    min-height: 1.2em;
}
html.wk .gd-where b { font-weight: normal; color: var(--wk-brass); }
html.wk .gd-stage[data-phase="closed"] .gd-map { opacity: 0; pointer-events: none; }
html.wk .gd-stage.has-card .gd-map { opacity: 1; }
html.wk .gd-stage[data-phase="closed"].x-zoomed .gd-map { opacity: 1; pointer-events: auto; }

/* the loading line at the top */
html.wk .gd-load {
    position: absolute; left: 0; top: 0; height: 2px; width: 0;
    background: linear-gradient(to right, rgba(255, 179, 92, 0), var(--wk-flame));
    z-index: 7; pointer-events: none;
    transition: width 0.3s, opacity 0.6s;
}
html.wk .gd-load.is-done { opacity: 0; }

/* ---- 6. the bar: the tool buttons of the room (as on the Alicorn) ------ */
html.wk .gd-bar {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
    padding: 12px 8px 8px;
}
html.wk .gd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 38px; min-width: 38px;
    padding: 6px 12px;
    border: 1px solid rgba(212, 176, 106, 0.55);
    border-radius: 2px;
    background: rgba(13, 9, 7, 0.72);
    color: #e6cf98;
    font-family: var(--wk-fell-sc);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
html.wk .gd-btn:hover, html.wk .gd-btn:focus-visible { background: rgba(42, 26, 16, 0.92); color: #f3dc9c; border-color: var(--wk-brass); }
html.wk .gd-btn.is-on { background: rgba(58, 38, 20, 0.95); color: #f3dc9c; border-color: var(--wk-brass); box-shadow: inset 0 0 0 1px rgba(212, 176, 106, 0.35); }
html.wk .gd-btn:disabled { opacity: 0.4; cursor: default; }
html.wk .gd-btn--round { padding: 6px 8px; font-size: 1rem; }
html.wk .gd-btn--round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html.wk .gd-btn .gd-btn__short { display: none; }
html.wk .gd-bar__sep { width: 1px; height: 26px; background: rgba(212, 176, 106, 0.3); }
html.wk .gd-bar__hint { flex: 1 0 100%; text-align: center; font-family: var(--wk-fell); font-style: italic; font-size: 0.88rem; color: #b79a66; margin-top: 4px; }

/* ---- 7. tour and hunt strips -------------------------------------------- */
html.wk .gd-strip {
    position: absolute; left: 50%; top: 12px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex; align-items: center; gap: 8px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    background: rgba(13, 9, 7, 0.82);
    border: 1px solid rgba(212, 176, 106, 0.45);
    border-radius: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    font-family: var(--wk-fell);
    font-size: 0.95rem;
    color: #e9d9b0;
    transition: opacity 0.3s;
}
html.wk .gd-strip[hidden] { display: none; }
html.wk .gd-strip b { font-weight: normal; color: var(--wk-brass); font-family: var(--wk-fell-sc); letter-spacing: 0.05em; font-size: 0.85rem; }
html.wk .gd-strip .gd-btn { min-height: 30px; font-size: 0.78rem; padding: 3px 10px; }
html.wk .gd-strip__count { font-variant-numeric: tabular-nums; }
@media (min-width: 769px) { html.wk .gd-stage.has-card .gd-strip { left: calc((100% - min(400px, 46%)) / 2); } }

/* the hunt pins on found owls */
html.wk .gd-huntmark { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid var(--wk-brass); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 12px rgba(255,179,92,.5); pointer-events: none; }

/* ---- 8. help, toast ------------------------------------------------------ */
html.wk .gd-help {
    position: absolute; inset: 0; z-index: 8;
    display: flex; align-items: center; justify-content: center;
    background: rgba(13, 9, 7, 0.6);
}
html.wk .gd-help[hidden] { display: none; }
html.wk .gd-help__card {
    position: relative;
    width: min(520px, 92%);
    max-height: 92%;
    overflow: auto;
    padding: 1.4rem 1.6rem 1.2rem;
    color: var(--wk-ink);
    background: var(--wk-paper) url('/wunderkammer/img/paper.webp') center / 512px 512px;
    clip-path: var(--wk-torn);
    font-size: 1rem; line-height: 1.5;
}
html.wk .gd-help__card h3 { margin: 0 0 0.6rem; font-family: var(--wk-fell); font-weight: normal; font-size: 1.4rem; color: var(--wk-vermilion); }
html.wk .gd-help__card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.9rem; }
html.wk .gd-help__card dt { font-family: var(--wk-fell-sc); letter-spacing: 0.05em; white-space: nowrap; }
html.wk .gd-help__card dd { margin: 0; }
html.wk .gd-help__card kbd { font-family: var(--wk-fell-sc); padding: 0 0.3em; border: 1px solid rgba(90, 70, 50, 0.5); border-radius: 2px; background: rgba(255, 250, 235, 0.6); }
html.wk .gd-help__card .gd-card__close { top: 8px; right: 10px; }
html.wk .gd-help__card p { margin: 0 0 0.6rem; }
html.wk .gd-help__card p small { display: block; margin-top: 0.15rem; font-size: 0.9rem; color: var(--wk-ink-soft); }
/* the nudge: two ways to get more room */
html.wk .gd-nudge__opt { display: flex; align-items: center; gap: 14px; margin: 0 0 0.8rem; }
html.wk .gd-nudge__opt .wk-btn { flex: 0 0 170px; text-align: center; white-space: nowrap; }
html.wk .gd-nudge__opt span { font-size: 0.95rem; line-height: 1.4; }
html.wk .gd-nudge__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.4rem; font-size: 0.92rem; }
html.wk .gd-nudge__row label { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
html.wk .gd-nudge__row input { accent-color: var(--wk-vermilion); }
html.wk .gd-nudge__skip { background: none; border: 0; padding: 0; text-decoration: underline; color: var(--wk-link); font-family: var(--wk-text); font-size: 0.95rem; }
html.wk .gd-nudge__skip:hover { color: var(--wk-vermilion); }
@media (pointer: coarse), (max-width: 899px) { html.wk #gd-fill { display: none; } }
html.wk .gd-toast {
    position: absolute; left: 50%; bottom: 64px;
    transform: translateX(-50%);
    z-index: 9;
    padding: 0.5rem 1rem;
    font-family: var(--wk-fell); font-size: 1rem;
    color: var(--wk-ink);
    background: var(--wk-paper);
    border: 1px solid #b89b6a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
    max-width: 80%;
    text-align: center;
}
html.wk .gd-toast.is-on { opacity: 1; }

/* ---- 9. full screen --------------------------------------------------- */
html.wk .gd-stage:fullscreen, html.wk .gd-stage.gd-fs-fallback {
    width: 100vw; height: 100vh;
    background: #0b0806;
    display: flex; flex-direction: column;
}
html.wk .gd-stage.gd-fs-fallback { position: fixed; inset: 0; z-index: 10005; }
html.wk .gd-stage:fullscreen .gd-frame, html.wk .gd-stage.gd-fs-fallback .gd-frame {
    flex: 1 1 auto;
    aspect-ratio: auto;
    max-height: none; min-height: 0;
    height: auto;
    border-width: 14px;
    border-image-width: 14px;
    box-shadow: none;
}
html.wk .gd-stage:fullscreen .gd-bar, html.wk .gd-stage.gd-fs-fallback .gd-bar { flex: 0 0 auto; padding: 6px 8px 8px; }
html.wk .gd-stage:fullscreen .gd-bar__hint, html.wk .gd-stage.gd-fs-fallback .gd-bar__hint { display: none; }
/* the phone gate card lives inside the stage (see wunderkammer.css section 20) */
html.wk .gd-stage.wk-gated .gd-bar { visibility: hidden; }

/* ---- 10. the page: catalogue of scenes ---------------------------------- */
html.wk .gd-cat { list-style: none; margin: 1rem 0 0; padding: 0; }
html.wk .gd-cat__item { display: grid; grid-template-columns: 180px 1fr; gap: 0 1.2rem; margin: 0 0 1.6rem; align-items: start; }
html.wk .gd-cat__item h3 { margin: 0 0 0.2rem; font-size: 1.3rem; }
html.wk .gd-cat__item h3 a { text-decoration: none; }
html.wk .gd-cat__item h3 a:hover { text-decoration: underline; }
html.wk .gd-cat__item img { width: 180px; height: 112px; object-fit: cover; border: 1px solid #1d1611; box-shadow: 2px 3px 0 rgba(29, 22, 17, 0.25); }
html.wk .gd-cat__item .gd-cat__where { font-style: italic; color: var(--wk-ink-soft); font-size: 0.95rem; margin: 0 0 0.4rem; }
html.wk .gd-cat__item p { margin: 0 0 0.5rem; }
html.wk .gd-cat__item .gd-cat__reading { font-size: 0.97rem; }
html.wk .gd-cat__item .gd-cat__reading::before { content: 'What people read into it. '; font-family: var(--wk-fell-sc); letter-spacing: 0.05em; color: var(--wk-vermilion); }
html.wk .gd-cat__item .gd-cat__open { font-family: var(--wk-fell-sc); font-size: 0.85rem; letter-spacing: 0.05em; }
html.wk .gd-cat__item details { font-size: 0.88rem; color: var(--wk-ink-soft); }
html.wk .gd-cat__item details summary { cursor: pointer; font-family: var(--wk-fell-sc); letter-spacing: 0.05em; }
html.wk .gd-cat__item details ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
html.wk .gd-facts { margin: 1rem 0; }
html.wk .gd-defn { font-size: 1.1rem; padding: 0.8rem 1rem; border-left: 3px solid var(--wk-vermilion); background: rgba(166, 43, 43, 0.05); margin: 1rem 0; }
html.wk .gd-readings dt { font-family: var(--wk-fell); font-size: 1.15rem; margin-top: 0.9rem; }
html.wk .gd-readings dd { margin: 0.2rem 0 0; }
html.wk .gd-wings-btn { margin-top: 0.6rem; }

/* ---- 11. responsive ------------------------------------------------------- */
@media (max-width: 1000px) {
    html.wk .gd-card { width: min(360px, 50%); }
}
@media (max-width: 768px) {
    html.wk .gd-frame { border-width: 14px; border-image-width: 14px; aspect-ratio: 4 / 3; min-height: 300px; }
    html.wk .gd-map { width: 120px; left: 8px; bottom: 8px; padding: 4px; }
    html.wk .gd-where { font-size: 0.68rem; }
    html.wk .gd-btn { font-size: 0.8rem; padding: 5px 9px; }
    html.wk .gd-btn .gd-btn__long { display: none; }
    html.wk .gd-btn .gd-btn__short { display: inline; }
    html.wk .gd-bar__hint { display: none; }
    /* the card becomes a sheet from the bottom */
    html.wk .gd-card {
        top: auto; left: 0; right: 0; bottom: 0;
        width: 100%;
        height: 46%;
        clip-path: none;
        transform: translateY(105%);
        transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s, height 0.3s;
        border-top: 2px solid var(--wk-brass-dim);
    }
    html.wk .gd-card.is-tall { height: 86%; }
    html.wk .gd-card__grip { display: block; width: 44px; height: 5px; margin: 7px auto 0; border-radius: 3px; background: rgba(90, 70, 50, 0.45); flex: 0 0 auto; cursor: pointer; }
    html.wk .gd-card__head { padding: 0.5rem 2.6rem 0.45rem 1rem; }
    html.wk .gd-card__title { font-size: 1.25rem; }
    html.wk .gd-card__body { padding: 0.6rem 1rem 0.8rem; font-size: 0.98rem; }
    html.wk .gd-card__foot { padding: 0.5rem 1rem 0.8rem; }
    html.wk .gd-strip { top: 8px; font-size: 0.82rem; gap: 6px; padding: 4px 8px; }
    html.wk .gd-strip .gd-strip__title { display: none; }
    html.wk .gd-cat__item { grid-template-columns: 1fr; }
    html.wk .gd-cat__item img { width: 100%; height: auto; aspect-ratio: 16 / 10; margin-bottom: 0.5rem; }
    html.wk .gd-closedhint { font-size: 0.9rem; white-space: normal; text-align: center; width: 80%; }
}
@media (orientation: landscape) and (max-height: 500px) {
    html.wk .gd-stage:fullscreen .gd-card, html.wk .gd-stage.gd-fs-fallback .gd-card {
        top: 10px; right: 10px; bottom: 10px; left: auto;
        width: 46%; height: auto;
        transform: translateX(calc(100% + 30px));
    }
    html.wk .gd-stage:fullscreen .gd-card.is-open, html.wk .gd-stage.gd-fs-fallback .gd-card.is-open { transform: none; }
    html.wk .gd-stage:fullscreen .gd-card__grip, html.wk .gd-stage.gd-fs-fallback .gd-card__grip { display: none; }
    html.wk .gd-stage:fullscreen .gd-bar, html.wk .gd-stage.gd-fs-fallback .gd-bar { padding: 3px 6px 4px; gap: 4px 6px; }
    html.wk .gd-stage:fullscreen .gd-btn, html.wk .gd-stage.gd-fs-fallback .gd-btn { min-height: 32px; padding: 3px 9px; }
}

/* ---- 12. reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html.wk .gd-wing { transition: none; }
    html.wk .gd-card { transition: none; }
    html.wk .gd-spot { display: none; }
}
