.hashi-puzzle-card{border:2px solid #9274b6!important;background:#f6f1fb!important}.hashi-puzzle-icon{margin-right:8px;color:#73518f}.hashi-puzzle-card h3{padding-left:0!important}.hashi-puzzle-card>p{grid-column:1/-1!important}.hashi-puzzle-card>button{grid-column:1/-1!important}.hashi-puzzle-dialog{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;border:2px solid #9274b6;border-radius:18px;padding:22px;color:#173d35;background:#fff}.hashi-puzzle-dialog::backdrop{background:#16382f88}.puzzle-heading,.puzzle-meta,.puzzle-results{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.puzzle-heading h2{margin:0}.puzzle-meta{margin-top:16px}.puzzle-clock{font-size:27px;font-variant-numeric:tabular-nums;color:#684588}.hashi-puzzle-dialog .hashi-puzzle-board{display:block;width:100%;height:auto;max-height:54dvh;background:#f2eafa;border:1px solid #c3add8;border-radius:14px;margin:16px 0;touch-action:manipulation}.puzzle-bridge{stroke:#80603e;stroke-width:5;stroke-linecap:round}.puzzle-hit{fill:transparent;stroke:none;cursor:pointer}.puzzle-hit:focus-visible{fill:#9274b666;outline:none}.puzzle-island{cursor:default}.puzzle-island circle{stroke-width:2}.puzzle-island text{font-size:21px;text-anchor:middle;dominant-baseline:central;font-family:inherit;font-weight:700}.puzzle-selected circle{stroke:#70409c;stroke-width:5}.puzzle-status{font-weight:700}.puzzle-results{justify-content:center}.hashi-puzzle-dialog .primary{background:#315d46;color:white}.puzzle-check{width:100%}
@media(min-width:1024px){html[data-claridad-local] #home-screen.home-desktop-panel .home-grid>.home-actions:has(.hashi-puzzle-card){grid-template-columns:repeat(3,minmax(0,1fr))}html[data-claridad-local] #home-screen.home-desktop-panel .home-actions:has(.hashi-puzzle-card) .home-learn-card{grid-column:1/-1}html[data-claridad-local] #home-screen.home-desktop-panel .home-actions:has(.hashi-puzzle-card) .home-action-card:not(.home-learn-card){grid-template-columns:1fr}html[data-claridad-local] #home-screen.home-desktop-panel .home-actions:has(.hashi-puzzle-card) .home-action-card:not(.home-learn-card) .home-card-illustration{display:none}}
@media(max-width:1023px){.hashi-puzzle-card{padding:0!important;border:0!important;background:transparent!important;border-radius:0}.hashi-puzzle-card>h3,.hashi-puzzle-card>p{display:none!important}.hashi-puzzle-card>button{width:100%}.hashi-puzzle-dialog{padding:14px}.hashi-puzzle-dialog p{font-size:14px}}

/* Compact announcement; mobile keeps the game name on the action itself. */
.hashi-puzzle-card .puzzle-new-badge{display:inline-block;vertical-align:middle;margin-left:7px;padding:2px 6px;border-radius:5px;background:#e6d8f2;color:#56366f;font-size:10px;line-height:1.3;font-weight:700;white-space:nowrap}.hashi-puzzle-card .puzzle-mobile-label{display:none}
@media(max-width:1023px){.hashi-puzzle-card .puzzle-desktop-label,.hashi-puzzle-card h3 .puzzle-new-badge{display:none}.hashi-puzzle-card .puzzle-mobile-label{display:inline-block}}

.hashi-puzzle-dialog>.puzzle-clock{display:block;text-align:right;margin:8px 0 4px}.hashi-puzzle-dialog>.puzzle-clock+.hashi-puzzle-board{margin-top:4px}#home-puzzles .puzzle-button-icon{display:inline-block;width:19px;height:19px;margin-right:7px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Desktop card actions and announcement alignment. */
@media(min-width:1024px){
.hashi-puzzle-card>h3{display:block!important}.hashi-puzzle-card>h3 .hashi-puzzle-icon{margin-right:6px}.hashi-puzzle-card>h3 .puzzle-new-badge{display:none}
#home-puzzles .puzzle-button-icon{display:none}
html[data-claridad-local] #home-screen.home-desktop-panel .home-actions #home-duel{background:var(--cl-green,#315d46);color:#fff;border-color:var(--cl-green,#315d46)}
html[data-claridad-local] #home-screen.home-desktop-panel .home-actions #home-duel:enabled:hover{background:#1d4a37;color:#fff;border-color:#1d4a37}
}

/* Explain each individual bridge, including the two strokes of a double bridge. */
.puzzle-bridge-corrected,.puzzle-bridge-add{stroke:#21804a}.puzzle-bridge-remove{stroke:#ba3548}.puzzle-bridge-blink{animation:puzzle-bridge-pulse .6s ease-in-out 5}
@keyframes puzzle-bridge-pulse{0%,100%{opacity:1}50%{opacity:.15}}
@media(prefers-reduced-motion:reduce){.puzzle-bridge-blink{animation:none;stroke-dasharray:7 4}}

.puzzle-preference-dialog{width:min(440px,calc(100vw - 32px));box-sizing:border-box;padding:24px;border:1px solid #c4d0c4;border-radius:16px;background:#fff;color:#173d35}.puzzle-preference-dialog::backdrop{background:#16382f88}.puzzle-preference-dialog h2{font-size:22px;margin:0 0 16px}.puzzle-preference-dialog p{line-height:1.5}.puzzle-preference-dialog [role=status]:empty{display:none}.puzzle-preference-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.puzzle-preference-actions .primary{background:#315d46;color:#fff}

@media(min-width:1024px){html[data-claridad-local] #home-screen.home-desktop-panel .home-actions .home-action-card>button{grid-column:1/-1;justify-self:center}}

.puzzle-preference-dialog h2{display:flex;align-items:center;gap:10px}.puzzle-preference-icon{width:25px;height:25px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.hashi-puzzle-dialog>.puzzle-meta{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 4px}.puzzle-meta>.puzzle-reward{font-weight:400;text-align:left}.puzzle-meta>.puzzle-clock{margin:0;white-space:nowrap}.hashi-puzzle-dialog>.puzzle-meta+.hashi-puzzle-board{margin-top:4px}

.puzzle-bridge-removed{stroke:#b5b5bd;stroke-width:4;opacity:.55;pointer-events:none}

.puzzle-heading h2{display:flex;align-items:center;gap:8px}.puzzle-title-icon{width:25px;height:25px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.hashi-puzzle-dialog .puzzle-show-solution{background:#fff;color:#315d46;border:1px solid #315d46}.hashi-puzzle-dialog .puzzle-show-solution:enabled:hover{background:#f3f7f4}

.puzzle-bridge-restore{stroke:#80603e}

.hashi-puzzle-dialog>.puzzle-check:not([hidden])+.puzzle-results{margin-top:16px}

.puzzle-status .puzzle-solution-explanation{font-weight:400}

.puzzle-clock-urgent{animation:puzzle-clock-pulse 1s ease-in-out infinite}.puzzle-clock-won{animation:puzzle-clock-pulse .76s ease-in-out 5}@keyframes puzzle-clock-pulse{0%,100%{opacity:1}50%{opacity:.25}}@media(prefers-reduced-motion:reduce){.puzzle-clock-urgent,.puzzle-clock-won{animation:none}}

.hashi-puzzle-dialog .puzzle-intermediate-preference{font-size:.8rem;margin:10px 0 16px;line-height:1.4;font-weight:400}.puzzle-intermediate-preference label{display:flex;align-items:flex-start;gap:7px;cursor:pointer;font-size:inherit;font-weight:400}.puzzle-intermediate-preference input[type=checkbox]{width:16px;height:16px;min-height:0;flex:none;margin:1px 0 0;accent-color:#315d46}.puzzle-intermediate-preference .puzzle-intermediate-hint{margin:4px 0 0 23px;font-size:inherit;font-weight:400}.puzzle-preference-feedback:empty{display:none}

.puzzle-bridge-target{stroke:#b33d62;stroke-width:8}.puzzle-deduction-guide{stroke:#73518f;stroke-width:3;stroke-dasharray:5 6;pointer-events:none}.puzzle-answer-options{display:flex;justify-content:center;gap:12px;margin:12px 0}html[data-claridad-local] .hashi-puzzle-dialog .puzzle-answer-options button[aria-pressed="true"]{border-color:#315d46!important;box-shadow:inset 0 0 0 1px #315d46}.puzzle-island[role="button"]{cursor:pointer}.puzzle-island[role="button"]:focus-visible circle{stroke:#73518f;stroke-width:4}.puzzle-heading h2{min-width:0;font-size:22px;line-height:1.25}.puzzle-heading>button{flex:none}

.puzzle-trap-hint{stroke:#80603e;stroke-width:4;stroke-dasharray:1 8;stroke-linecap:round;pointer-events:none}

html[data-claridad-local] dialog.hashi-puzzle-dialog>h3{font-size:15px;line-height:1.45}.hashi-puzzle-dialog .puzzle-explanation-normal{font-weight:400}

.hashi-puzzle-dialog>h3{white-space:pre-line}



.puzzle-answer-options{flex-wrap:wrap}.puzzle-answer-options button{min-width:80px}

.puzzle-meta>.puzzle-memory-clock{min-width:5ch;text-align:right}

html[data-claridad-local] .hashi-puzzle-dialog .puzzle-answer-options button.puzzle-answer-correct{background:#315d46!important;color:#fff!important;border-color:#315d46!important;animation:puzzle-answer-pulse .6s ease-in-out 5}
@keyframes puzzle-answer-pulse{0%,100%{opacity:1}50%{opacity:.25}}
@media(prefers-reduced-motion:reduce){html[data-claridad-local] .hashi-puzzle-dialog .puzzle-answer-options button.puzzle-answer-correct{animation:none}}
.puzzle-island-blink circle{animation:puzzle-island-ring-pulse .6s ease-in-out 5}
@keyframes puzzle-island-ring-pulse{0%,100%{stroke-opacity:1}50%{stroke-opacity:.15}}
@media(prefers-reduced-motion:reduce){.puzzle-island-blink circle{animation:none}}

.hashi-puzzle-dialog .puzzle-close-bottom{display:none}
@media(max-width:1023px){
 .hashi-puzzle-dialog .puzzle-close-top{display:inline-flex}
 .hashi-puzzle-dialog .puzzle-close-bottom{display:inline-flex;align-items:center;justify-content:center;order:-1}
 .hashi-puzzle-dialog .puzzle-results{justify-content:center;gap:12px}
}

@media(max-width:1023px){.hashi-puzzle-dialog .puzzle-title-prefix{display:none}}

.hashi-puzzle-dialog .puzzle-heading{flex-wrap:nowrap;align-items:flex-start}
html[data-claridad-local] .hashi-puzzle-dialog .puzzle-close-top{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;min-width:36px;height:36px;min-height:36px;margin-left:auto;padding:0;border:0;background:transparent;color:inherit;font-family:Arial,sans-serif;font-size:34px;font-weight:400;line-height:1;position:relative;top:-10px;right:-10px}

.hashi-puzzle-dialog .puzzle-clock.puzzle-clock-memorizing{color:#315d46}

.hashi-puzzle-dialog .puzzle-close-bottom[hidden]{display:none!important}

svg.hashi-puzzle-icon{width:25px;height:25px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Mobile memory title: one pixel smaller than the 24px dialog heading. */
@media(max-width:1023px){html[data-claridad-local] .hashi-puzzle-dialog[data-puzzle-type="memory"] .puzzle-heading h2{font-size:22px}}

/* Keep the desktop home puzzle icon and title together. */
@media(min-width:1024px){
 html[data-claridad-local] #home-screen.home-desktop-panel .hashi-puzzle-card>h3{display:flex!important;align-items:center;gap:6px;white-space:nowrap;font-size:20px!important;min-width:0}
 html[data-claridad-local] #home-screen.home-desktop-panel .hashi-puzzle-card>h3>.hashi-puzzle-icon{flex:0 0 22px;width:22px;height:22px;margin:0}
}
@media(min-width:1024px) and (max-width:1199px){
 html[data-claridad-local] #home-screen.home-desktop-panel .hashi-puzzle-card>h3{font-size:18px!important;gap:4px}
 html[data-claridad-local] #home-screen.home-desktop-panel .hashi-puzzle-card>h3>.hashi-puzzle-icon{flex-basis:20px;width:20px;height:20px}
}




/* Guest puzzle proposal, local review 2026-11-05. */
.guest-puzzle-card{border:1px solid #c3add8!important;background:#f6f1fb!important;padding:22px;border-radius:16px;min-width:0}.guest-puzzle-card h3{display:flex;align-items:center;gap:8px;margin:0 0 12px}.guest-puzzle-card p{line-height:1.5}.guest-puzzle-card .guest-puzzle-note{color:#53675e;font-size:14px}.guest-puzzle-card button{margin-top:8px}.puzzle-share-url{width:100%;min-width:0}.puzzle-results .puzzle-share{background:white;color:#315d46;border:1px solid #315d46}
@media(min-width:1024px){html[data-claridad-local] #home-screen.home-desktop-guest .home-grid>.guest-puzzle-card{grid-column:3;grid-row:3!important;align-self:start}html[data-claridad-local] #home-screen.home-desktop-guest .home-grid>.home-actions{grid-row:2/4!important;align-self:start}html[data-claridad-local] #home-screen.home-desktop-guest .home-grid>#guest-account-card{grid-row:1/3!important}}
@media(max-width:1023px){.guest-puzzle-card{padding:18px}.guest-puzzle-card button{width:100%}.guest-puzzle-card h3{font-size:20px}.puzzle-results{gap:10px}.puzzle-results .puzzle-share{flex-basis:100%}}

html[data-claridad-local] #home-screen .home-grid>.guest-puzzle-card{background:#f6f1fb!important;border-color:#d4c5e3!important;display:block!important;min-height:0!important}html[data-claridad-local] #home-screen .guest-puzzle-card p{margin:8px 0!important}html[data-claridad-local] #home-screen .guest-puzzle-card h3{margin:0 0 10px!important}@media(min-width:1024px){html[data-claridad-local] #home-screen .guest-puzzle-card button{width:auto!important;min-width:180px;align-self:flex-start;margin-top:12px!important}}

@media(max-width:1023px){html[data-claridad-local] #home-screen .home-grid:has(>.guest-puzzle-card)>#progress-card{order:1}html[data-claridad-local] #home-screen .home-grid>.guest-puzzle-card{order:2}html[data-claridad-local] #home-screen .home-grid:has(>.guest-puzzle-card)>#daily-card{order:3}}

@media(max-width:1023px){html[data-claridad-local] #home-screen>.guest-puzzle-card{margin-top:20px;background:#f6f1fb!important}}

/* Result actions: play and share first, close underneath. */
.hashi-puzzle-dialog .puzzle-results{flex-direction:column;gap:14px}
.puzzle-result-main{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;width:100%}
.hashi-puzzle-dialog .puzzle-results .puzzle-close-bottom{display:inline-flex;order:1;align-items:center;justify-content:center}
.hashi-puzzle-dialog .puzzle-results .puzzle-share{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;background:transparent;padding:4px 0;min-height:32px;border-radius:0;font:inherit;font-size:14px;color:#315d46;text-decoration:underline;text-underline-offset:3px;flex-basis:auto;box-shadow:none}
.puzzle-share-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}

.hashi-puzzle-dialog .puzzle-reward[hidden]{display:none!important}.hashi-puzzle-dialog .puzzle-clock{margin-left:auto}

.hashi-puzzle-dialog .puzzle-results.puzzle-replay-actions{flex-direction:row;justify-content:center;gap:12px}
