/* Daily puzzles share the card dialogs' gold frame and common corner controls. */
body.site-theme #card-workbench #pc-quest-dialog{width:min(1100px,calc(100vw - 40px));max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);padding:20px 24px;border:12px solid transparent!important;border-image:url('../images/theme/mission-gold-frame.svg') 24 stretch!important;background:radial-gradient(ellipse at 50% 0,#6c284e55,transparent 65%),linear-gradient(135deg,#2c192e,#140e1d);color:#f8e8f5;box-sizing:border-box;text-align:left}
#pc-quest-dialog>.site-dialog-scroll{max-height:calc(100dvh - 110px);padding:0 3px;overflow:auto}
.cq-header{display:flex;align-items:center;gap:16px;padding-right:15px}.cq-header>img{width:68px;height:75px;object-fit:contain;flex:none}.cq-header>div:nth-child(2){flex:1;min-width:0}body.site-theme #card-workbench #pc-quest-title{font:700 32px/1.15 Georgia,serif!important;color:#f8d58e!important;margin:6px 0!important}.cq-header p{font:14px/1.4 Georgia,serif;margin:0;color:#e8c1d7}.cq-header .eyebrow{font-size:9px;letter-spacing:.12em;color:#e8c989}
.cq-reward{display:flex;align-items:center;gap:9px;border:1px solid #b58756;padding:10px 14px;border-radius:8px;background:#1d1229a6}.cq-reward>img{width:35px;height:39px;object-fit:contain}.cq-reward>span{display:grid;gap:4px}.cq-reward strong{font:700 16px Georgia,serif;color:#f6d394}.cq-reward small{font-size:11px;color:#e3b5d2}
#pc-quest-dialog .pc-work-ornament{margin:7px 0 14px}.cq-body{display:grid;grid-template-columns:265px minmax(0,1fr);gap:20px;min-height:370px}.cq-story{position:relative;isolation:isolate;overflow:hidden;border:6px solid transparent;border-image:url('../images/theme/mission-gold-frame.svg') 24 stretch;background:linear-gradient(0deg,#1b1024 15%,#21122255),var(--quest-scene) center/cover;display:flex;flex-direction:column;justify-content:flex-end}
.cq-story-art{min-height:120px;display:grid;place-items:center}.cq-story-art img{width:86px;height:95px;object-fit:contain;filter:drop-shadow(0 5px 15px #000a)}.cq-story-copy{padding:15px;background:linear-gradient(0deg,#1c1027f5,#241225d9)}.cq-story-copy .eyebrow{font-size:10px;color:#e6b7ca;letter-spacing:.1em}body.site-theme #card-workbench .cq-story h3{font:700 22px/1.2 Georgia,serif!important;margin:8px 0;color:#f7d68e!important}.cq-story p{font-size:13px;line-height:1.6;color:#f1d9e5;margin:8px 0 12px}.cq-team-note{font-size:10px;line-height:1.4;color:#d6afc5}
.cq-play-area{min-width:0;padding:14px 18px;border:1px solid #a16b8a;border-radius:10px;background:linear-gradient(#3b234333,#140f1ee6);display:flex;flex-direction:column;justify-content:center;text-align:center}body.site-theme #card-workbench #pc-quest-puzzle h3{font:700 23px/1.2 Georgia,serif!important;color:#f8d58e!important;margin:10px 0}.cq-intro p,.cq-instructions p{font-size:14px;line-height:1.55;color:#ead2e3;margin:8px 0 14px}.cq-large-symbol{display:inline-grid;place-items:center;width:65px;height:65px;border:2px ridge #c79c69;background:radial-gradient(#822b6144,#28152c);border-radius:50%;font:36px Georgia,serif;color:#f4d48a;box-shadow:0 0 20px #bc579633}
.cq-types{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:16px 0}.cq-types>span,.cq-claimed{border:1px solid #92627c;padding:6px 10px;border-radius:18px;font-size:11px;color:#e8c5db;background:#28172d}.cq-primary{display:inline-block;border:2px ridge #edc180!important;background:linear-gradient(#8a2d61,#3a143a)!important;color:#fff0db!important;padding:10px 20px;font:700 16px/1.2 Georgia,serif;cursor:pointer;border-radius:7px;text-decoration:none;box-shadow:inset 0 1px 5px #eab4ce33}
#pc-quest-dialog button:disabled{opacity:.45;cursor:default}.cq-options{display:grid;gap:10px}.cq-runes{grid-template-columns:repeat(4,minmax(0,1fr));margin:12px 0}.cq-option,.cq-rune-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:82px;padding:8px 5px;border:2px ridge #bd8f71;border-radius:9px;background:linear-gradient(#4b2e4d,#1b1528);color:#f6dcaa;cursor:pointer;font:12px Georgia,serif;box-shadow:inset 0 0 16px #ed8bc411}.cq-option-symbol,.cq-rune-tile>span{font:32px/1.2 Georgia,serif;color:#f5cfe8}.cq-rune-tile small{font-size:11px}.cq-rune-tile.is-lit,.cq-option.is-selected{border-color:#ffdb8e;background:radial-gradient(#b85791,#4c294f);box-shadow:0 0 20px #ffbdf399,inset 0 0 12px #ffd67455}
.cq-clues{list-style:none;padding:0;margin:0 0 10px;display:grid;gap:5px;text-align:left}.cq-clues li{font:13px/1.4 Georgia,serif;color:#f1d9e7;padding:5px 8px;border-left:2px solid #ce9b6d;background:#3a203b77}.cq-clues li::before{content:'✦ ';color:#ecb86d}.cq-answer-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:10px 0 12px}.cq-answer-slots>span{display:grid;align-content:center;gap:4px;min-height:46px;border:1px dashed #92617b;border-radius:6px;color:#b79eae;font:22px Georgia,serif;background:#1c112566}.cq-answer-slots .is-filled{border-style:solid;border-color:#cfa373;color:#f7d595}.cq-answer-slots small{font:9px/1.2 system-ui,sans-serif}.cq-actions{display:flex;justify-content:center;gap:10px;align-items:center}.cq-actions .button{font-size:11px;padding:9px 12px}.cq-memory-note{font-size:12px;color:#edc4d9;min-height:18px;margin:8px 0 12px}.cq-instructions .eyebrow{font-size:10px;color:#f0ca92;letter-spacing:.1em}
.cq-creatures{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 15px}.cq-creature{min-height:0;padding:5px}.cq-creature img{width:100%;height:153px;object-fit:contain}.cq-creature>span{font-size:10px;line-height:1.2}.cq-hint{padding:10px;border:1px solid #8f6078;border-radius:8px;background:#27132d}
.cq-success-reward{display:grid;justify-items:center;gap:8px;margin:16px 0}.cq-success-reward img{height:60px;width:60px;object-fit:contain;filter:drop-shadow(0 0 12px #f8c76533)}.cq-success-reward strong{color:#f8d58e;font:700 23px Georgia,serif}.cq-success-reward span{color:#e1b4d5;font-size:12px}.cq-claimed{display:inline-block;color:#c7e6a4;border-color:#84a55b}
#pc-quest-feedback{font-size:12px;line-height:1.4;min-height:17px;margin:10px 0 0;color:#f6cf9a}.cq-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #9b6a7e55;margin-top:14px;padding-top:10px;font-size:10px;color:#d7b4cb}.cq-footer>span:first-child{color:#f4d19c}
@media(min-width:701px) and (max-height:760px){body.site-theme #card-workbench #pc-quest-dialog{padding:12px 18px}.cq-header>img{height:56px;width:56px}.cq-body{min-height:320px}.cq-story-art{min-height:80px}.cq-story-copy{padding:10px}.cq-story p{font-size:12px}.cq-play-area{padding:10px 14px}.cq-option,.cq-rune-tile{min-height:65px}.cq-creature{min-height:0}.cq-creature img{height:130px}.cq-large-symbol{height:48px;width:48px;font-size:28px}.cq-footer{margin-top:10px;padding-top:7px}}
@media(max-width:700px){body.site-theme #card-workbench #pc-quest-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);padding:16px 10px;border-width:9px!important}#pc-quest-dialog>.site-dialog-scroll{max-height:calc(100dvh - 100px)}.cq-header{gap:8px;flex-wrap:wrap;padding-right:0}.cq-header>img{width:45px;height:50px}body.site-theme #card-workbench #pc-quest-title{font-size:24px!important}.cq-header .eyebrow{font-size:8px}.cq-header p{font-size:11px}.cq-reward{padding:6px 9px;margin-left:auto}.cq-reward>img{height:28px;width:28px}.cq-reward strong{font-size:13px}.cq-reward small{font-size:9px}.cq-body{grid-template-columns:1fr;gap:10px;min-height:0}.cq-story{display:block}.cq-story-art{display:none}.cq-story-copy{padding:10px;background:linear-gradient(90deg,#1c1027ee,#24122599)}body.site-theme #card-workbench .cq-story h3{font-size:18px!important;margin:5px 0}.cq-story p{font-size:11px;margin:5px 0}.cq-team-note{font-size:9px}.cq-play-area{padding:12px 9px}.cq-intro p,.cq-instructions p{font-size:12px}.cq-option,.cq-rune-tile{min-height:65px;font-size:10px}.cq-option-symbol,.cq-rune-tile>span{font-size:27px}.cq-clues li{font-size:11px}.cq-actions{flex-wrap:wrap}.cq-actions .cq-primary{font-size:14px}.cq-creatures{grid-template-columns:repeat(2,minmax(0,1fr))}.cq-creature img{height:140px}.cq-footer{gap:6px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.cq-option,.cq-rune-tile{transition:none}}
.cq-option{overflow-wrap:anywhere}
@media(max-width:700px){.cq-creatures{grid-template-columns:repeat(4,minmax(0,1fr))}.cq-creature img{height:100px}.cq-creature>span{font-size:9px}.cq-primary{white-space:normal}.cq-header .cq-reward{margin-top:2px}}
#pc-quest-dialog .cq-story h3{overflow-wrap:anywhere;hyphens:auto}
@media(max-width:700px){
 #pc-quest-dialog .cq-header{display:grid;grid-template-columns:40px minmax(0,1fr);gap:5px 8px}
 #pc-quest-dialog .cq-header>img{width:40px;height:48px}
 #pc-quest-dialog .cq-header .eyebrow{font-size:8px;letter-spacing:.02em}
 #pc-quest-dialog .cq-reward{grid-column:1/-1;justify-self:center;margin:0;padding:4px 9px;gap:7px}
 #pc-quest-dialog .cq-reward>span{display:flex;align-items:center;gap:9px}
 #pc-quest-dialog .cq-reward>img{width:23px;height:25px}
 #pc-quest-dialog .pc-work-ornament{margin:3px 0 8px;font-size:18px}
 #pc-quest-dialog .cq-story-copy{padding:7px 9px}
 #pc-quest-dialog .cq-story p{line-height:1.4;margin:4px 0}
 #pc-quest-dialog .cq-team-note{font-size:8px}
 #pc-quest-dialog .cq-play-area{padding:9px 8px}
 #pc-quest-dialog .cq-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
 #pc-quest-dialog .cq-actions button{min-width:0;padding:9px 5px;font-size:12px;white-space:normal}
 #pc-quest-dialog .cq-footer{margin-top:8px;padding-top:7px;gap:5px}
 #pc-quest-dialog .cq-clues{gap:3px;margin-bottom:7px}
 #pc-quest-dialog .cq-clues li{padding:4px 6px;line-height:1.3}
 #pc-quest-dialog .cq-runes{margin:9px 0}
 #pc-quest-dialog .cq-answer-slots{margin:7px 0 9px}
}
@media(max-width:700px){
 #pc-quest-dialog .cq-success .cq-large-symbol{width:40px;height:40px;font-size:23px}
 body.site-theme #card-workbench #pc-quest-puzzle .cq-success h3{font-size:20px!important;margin:8px 0}
 #pc-quest-dialog .cq-success-reward{grid-template-columns:42px minmax(0,1fr);align-items:center;justify-items:start;gap:4px 10px;max-width:270px;margin:12px auto;text-align:left}
 #pc-quest-dialog .cq-success-reward img{grid-row:1/3;width:42px;height:45px}
 #pc-quest-dialog .cq-success-reward strong{font-size:20px}
 #pc-quest-dialog .cq-success-reward span{font-size:11px}
}
@media(max-width:700px){
}

/* A separate answer pedestal leaves all candidate cards available for inspection. */
body.site-theme #card-workbench #pc-quest-dialog.is-creature-quest{width:min(1280px,calc(100vw - 40px))}
.is-creature-quest .cq-body{grid-template-columns:280px minmax(0,1fr)}
.cq-creature-answer{margin:8px auto;min-height:135px;width:210px;box-sizing:border-box;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:2px dashed #c69b66;border-radius:12px;background:radial-gradient(ellipse,#80533655,#1a1229);color:#ebd1a7;font:12px Georgia,serif;transition:box-shadow .15s,border-color .15s}
.cq-creature-answer .eyebrow{font-size:9px;letter-spacing:.16em}.cq-drop-symbol{font-size:32px;color:#f6d58c}.cq-creature-answer.is-drag-over{border-style:solid;border-color:#ffe0a0;box-shadow:0 0 25px #f4c97b77}
.cq-creature-answer button,.cq-creature-preview{display:block;border:0!important;background:none!important;padding:0!important;box-shadow:none!important;cursor:zoom-in;min-width:0}
.cq-creature-answer img{height:100px;max-width:100%;object-fit:contain}.cq-creature-answer strong{font-size:11px}
.cq-creature-help{font-size:11px;color:#e1c4d2;margin:6px 0}
.cq-creature-choice{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:4px;border:1px solid transparent;border-radius:8px;color:#eed4af;font:11px Georgia,serif;touch-action:none;cursor:grab}
.cq-creature-choice.is-selected{border-color:#d8b67a;background:#d4ad6a14}.cq-creature-preview{width:100%}.cq-creature-preview img{width:100%;height:168px;object-fit:contain;pointer-events:none}.cq-creature-choice>span{text-align:center}.cq-place-card{font:11px Georgia,serif;color:#f1d5a0;background:#342039;border:1px solid #a88763;border-radius:5px;padding:4px 9px;cursor:pointer}
.cq-drag-ghost{position:fixed;width:100px;height:140px;object-fit:contain;transform:translate(-50%,-60%);pointer-events:none;z-index:20;filter:drop-shadow(0 5px 10px #0008)}
@media(min-width:701px) and (max-height:850px){.is-creature-quest .cq-creature-answer{min-height:105px;padding:6px;margin:4px auto}.is-creature-quest .cq-creature-answer img{height:72px}.cq-creature-preview img{height:125px}.is-creature-quest .cq-creatures{margin:6px 0}.is-creature-quest .cq-hint{margin:4px 0}.is-creature-quest .cq-play-area{padding:10px}.is-creature-quest .cq-actions{margin-top:6px}}
@media(max-width:700px){body.site-theme #card-workbench #pc-quest-dialog.is-creature-quest{width:calc(100vw - 24px)}.is-creature-quest .cq-body{grid-template-columns:1fr}.cq-creature-answer{min-height:95px;width:190px;padding:5px;margin:4px auto}.cq-creature-answer img{height:65px}.cq-creature-preview img{height:100px}.cq-creature-choice{padding:0;gap:3px;font-size:9px}.cq-place-card{font-size:9px;padding:3px 4px}.cq-creature-help{font-size:9px;margin:5px 0}.is-creature-quest .cq-creatures{margin:6px 0}.is-creature-quest .cq-hint{margin:4px 0;padding:6px}.is-creature-quest .cq-play-area{padding:8px}.is-creature-quest .cq-actions{margin-top:5px}}
#pc-quest-dialog.is-creature-quest .pc-work-ornament{font-size:18px;line-height:20px;margin:3px 0 8px}
#pc-quest-dialog.is-creature-quest .cq-creature-answer{height:125px;min-height:125px;padding:6px;margin:5px auto}
#pc-quest-dialog.is-creature-quest .cq-creature-answer img{height:78px}
#pc-quest-dialog.is-creature-quest .cq-creature-preview img{height:145px}
#pc-quest-dialog.is-creature-quest .cq-creatures{margin:7px 0 10px}
#pc-quest-dialog.is-creature-quest .cq-story-art{min-height:60px}
@media(min-width:701px) and (max-height:850px){
 #pc-quest-dialog.is-creature-quest .cq-header>img{height:48px}
 #pc-quest-dialog.is-creature-quest .cq-creature-answer{height:94px;min-height:94px}
 #pc-quest-dialog.is-creature-quest .cq-creature-answer img{height:50px}
 #pc-quest-dialog.is-creature-quest .cq-creature-preview img{height:110px}
 #pc-quest-dialog.is-creature-quest .cq-story-art img{height:65px}
 #pc-quest-dialog.is-creature-quest .cq-play-area{padding:8px}
 #pc-quest-dialog.is-creature-quest .cq-story-copy{padding:10px}
 #pc-quest-dialog.is-creature-quest .cq-footer{margin-top:6px;padding-top:6px}
}
@media(max-width:700px){
 #pc-quest-dialog.is-creature-quest .cq-creature-answer{height:90px;min-height:90px}
 #pc-quest-dialog.is-creature-quest .cq-creature-answer img{height:48px}
 #pc-quest-dialog.is-creature-quest .cq-creature-preview img{height:95px}
 #pc-quest-dialog.is-creature-quest .cq-story-copy{padding:6px 8px}
 #pc-quest-dialog.is-creature-quest .cq-team-note{display:none}
 body.site-theme #card-workbench #pc-quest-dialog.is-creature-quest .cq-story h3{font-size:16px!important;margin:3px 0}
 #pc-quest-dialog.is-creature-quest .cq-story p{line-height:1.35;margin:3px 0}
 #pc-quest-dialog.is-creature-quest .cq-body{gap:6px}
 #pc-quest-dialog.is-creature-quest .cq-footer{margin-top:6px;padding-top:6px}
}
@media(min-width:701px) and (max-height:760px){
 #pc-quest-dialog.is-creature-quest .cq-header p{display:none}
 #pc-quest-dialog.is-creature-quest .cq-creature-answer{height:78px;min-height:78px;gap:2px}
 #pc-quest-dialog.is-creature-quest .cq-creature-answer img{height:36px}
 #pc-quest-dialog.is-creature-quest .cq-creature-preview img{height:95px}
 #pc-quest-dialog.is-creature-quest .cq-creatures{margin:4px 0}
 #pc-quest-dialog.is-creature-quest .cq-play-area{padding:6px}
}

#pc-quest-dialog.is-creature-quest .cq-creature-answer{line-height:1.2}#pc-quest-dialog.is-creature-quest .cq-creature-answer .eyebrow{line-height:1.2}
@media(max-width:700px){#pc-quest-dialog.is-creature-quest .cq-creature-answer{width:220px}#pc-quest-dialog.is-creature-quest .cq-creature-help{font-size:9px;line-height:1.3}#pc-quest-dialog.is-creature-quest .cq-header p{display:none}#pc-quest-dialog.is-creature-quest .cq-creatures{margin:4px 0}#pc-quest-dialog.is-creature-quest .cq-play-area{padding:5px 8px}}
