.card-workshop{border-top:1px solid #e0e5d9;margin-top:24px;padding-top:26px}.preview-heading{display:flex;justify-content:space-between;gap:20px;align-items:start}.preview-heading h3{font-size:27px;margin:12px 0 6px;letter-spacing:-.5px}.preview-heading .fine{margin:0;max-width:630px}.preview-badge{display:inline-block;font-size:12px;font-weight:700;color:#705522;background:#f5ebce;border:1px solid #e7d8ac;border-radius:6px;padding:5px 9px}.preview-tools{display:flex;align-items:center;gap:14px;white-space:nowrap;font-size:14px;color:#74816e}.preview-tools button{font-size:14px;padding:9px 13px}.card-flow{list-style:none;display:flex;gap:24px;padding:0;margin:24px 0;font-size:13px;color:#7b856f;letter-spacing:.5px}.card-flow li+li:before{content:'→';margin-right:24px;color:#b09a67}.spell-hand{list-style:none;display:flex;gap:24px;flex-wrap:wrap;margin:0;padding:6px 0 14px}.spell-hand>li{flex:0 0 210px}.spell-card{--ink:#755520;--wash:#eee0b8;position:relative;display:flex;flex-direction:column;align-items:center;width:100%;min-height:306px;padding:16px 18px 0;border:2px solid var(--card-gold-rim,#c9b783);border-radius:18px;background:linear-gradient(145deg,var(--card-paper-light,#fffdf2),var(--card-paper-neutral,#f1e9d4));box-shadow:0 5px 0 var(--card-paper-edge,#dacdb1),0 12px 22px #203d3712;overflow:hidden;color:var(--ink);transition:transform .2s,box-shadow .2s}.spell-card:hover:enabled{background:linear-gradient(145deg,#fffdf2,var(--wash));transform:translateY(-9px) rotate(-1deg);box-shadow:0 5px 0 #dacdb1,0 18px 28px #203d3720}.green{--ink:#285b49;--wash:#d5e5d9}.violet{--ink:#615080;--wash:#e1d9ee}.spell-card.green{border-color:#a4bfaa;background:linear-gradient(145deg,#f4fbf4,#dfeadf);box-shadow:0 5px 0 #b4c8b5,0 12px 22px #203d3712}.spell-card.violet{border-color:#beb0d2;background:linear-gradient(145deg,#fcf8ff,#eae2f2);box-shadow:0 5px 0 #c6b9d7,0 12px 22px #203d3712}.spell-type{font-size:11px;letter-spacing:3px;padding:3px 10px;border:1px solid currentColor;border-radius:20px;opacity:.8}.spell-art{display:grid;place-items:center;width:102px;height:102px;border-radius:50%;margin:15px auto;background:radial-gradient(circle,#ffffffcc 0%,var(--wash) 70%);border:1px solid #ffffffb3;outline:1px solid #b39b632f;outline-offset:6px;font-size:70px;font-family:Georgia,serif;color:var(--ink);line-height:1}.spell-name{font-size:22px;letter-spacing:1px}.spell-description{font-size:13px;line-height:1.7;text-align:center;margin:9px 0 15px;color:#667060}.spell-lock{font-size:12px;background:#ffffff73;border-top:1px solid #ffffffa0;width:calc(100% + 36px);padding:11px 4px;margin-top:auto}:is(#cardPreviewDialog,#next-cardPreviewDialog){width:min(490px,calc(100vw - 32px));max-height:90vh;overflow-y:auto;border:1px solid #d6ddcd;border-radius:22px;background:#fffef9;padding:32px;color:#203d37;box-shadow:0 24px 100px #10291d40}:is(#cardPreviewDialog,#next-cardPreviewDialog)::backdrop{background:#152e2580;backdrop-filter:blur(4px)}:is(#cardPreviewDialog,#next-cardPreviewDialog) h2{font-size:30px;margin:10px 0}:is(#cardPreviewDialog,#next-cardPreviewDialog) .eyebrow{font-size:12px;margin:0 30px 12px 0}:is(#previewOnlyHint,#next-previewOnlyHint){margin:0 0 12px}.preview-close{position:absolute;top:12px;right:12px;border:0;background:transparent;font-size:28px;padding:0 9px}:is(#previewCardAction,#next-previewCardAction){width:100%;font-size:16px;margin-top:18px}.preview-art{--ink:#755520;--wash:#eee0b8;width:140px;height:140px;font-size:90px;margin:26px auto}.preview-art.green{--ink:#285b49;--wash:#d5e5d9}.preview-art.violet{--ink:#615080;--wash:#e1d9ee}.preview-description{text-align:center;font-size:17px;line-height:1.7}.preview-ability{text-align:center;background:#edf1e6;border-radius:9px;padding:12px;font-size:15px;color:#627454}.preview-question{font-size:23px;font-weight:700;line-height:1.6;margin:20px 0}.preview-options{display:grid;gap:10px}.preview-option{text-align:left;font-size:16px;line-height:1.5;background:#f6f7ef}.preview-option.chosen{background:#e5efdf;border:2px solid #397552;padding:11px 15px}.preview-result{text-align:center;padding:24px 0 4px}.result-symbol{display:grid;place-items:center;width:80px;height:80px;border-radius:50%;background:#f6e6d9;color:#a2673b;font-size:50px;margin:auto}.success .result-symbol{background:#e2efdb;color:#397552}.preview-result h3{font-size:23px}.preview-result p{font-size:15px;line-height:1.8}@media(max-width:700px){.preview-heading{flex-direction:column;gap:14px}.preview-heading h3{font-size:23px}.card-flow{gap:10px;font-size:11px}.card-flow li+li:before{margin-right:10px}.spell-hand{flex-wrap:nowrap;overflow-x:auto;padding:10px 4px 22px;gap:17px;scroll-snap-type:x proximity}.spell-hand>li{flex-basis:190px;scroll-snap-align:start}.spell-card{min-height:295px}:is(#cardPreviewDialog,#next-cardPreviewDialog){padding:26px 22px}}@media(prefers-reduced-motion:reduce){.spell-card{transition:none}}
/* Cards live in a bottom drawer instead of extending the game page. */
body.has-hand-dock{padding-bottom:88px}.hand-dock{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:15}.hand-dock>button{display:flex;align-items:center;gap:14px;padding:13px 22px;border:1px solid #49705c;border-radius:16px;background:#244e3c;color:#fff;box-shadow:0 8px 30px #18372833;white-space:nowrap;font-size:17px}.hand-dock>button:hover:enabled{background:#315f49;transform:translateY(-2px)}.dock-symbol{font-size:25px;color:#edcf8b}#handDockCount{background:#ffffff1c;border-radius:12px;padding:4px 8px;font-size:13px}.dock-preview{font-size:12px;color:#d6dfcb}:is(#handPanel,#next-handPanel){position:fixed;inset:auto 0 18px;margin:0 auto;width:min(940px,calc(100vw - 32px));max-width:none;max-height:72dvh;overflow-y:auto;overscroll-behavior:contain;padding:22px 26px;border-radius:22px;box-shadow:0 -12px 70px #10291d30}:is(#handPanel,#next-handPanel)::backdrop{background:#152e2540}:is(#handPanel,#next-handPanel)>.section-title{padding-right:85px}:is(#handPanel,#next-handPanel) .eyebrow{display:none}:is(#handPanel,#next-handPanel) h2{font-size:23px;margin:0}:is(#handPanel,#next-handPanel) :is(#handEmpty,#next-handEmpty){margin:8px 0;font-size:13px}.drawer-close{position:absolute;top:20px;right:22px;font-size:13px;padding:8px 12px;background:#edf1e6;border:0}:is(#handPanel,#next-handPanel) .card-workshop{margin-top:16px;padding-top:16px}:is(#handPanel,#next-handPanel) .preview-heading h3{font-size:20px;margin:8px 0 4px}:is(#handPanel,#next-handPanel) .preview-heading .fine{font-size:12px}:is(#handPanel,#next-handPanel) .preview-heading{align-items:center}:is(#handPanel,#next-handPanel) .card-flow{margin:14px 0;font-size:11px}:is(#handPanel,#next-handPanel) .spell-hand{flex-wrap:nowrap;overflow-x:auto;gap:20px;padding:10px 4px 20px;scroll-snap-type:x proximity}:is(#handPanel,#next-handPanel) .spell-hand>li{flex:0 0 180px;scroll-snap-align:start}:is(#handPanel,#next-handPanel) .spell-card{min-height:250px;padding:12px 14px 0}:is(#handPanel,#next-handPanel) .spell-art{width:74px;height:74px;font-size:51px;margin:13px auto}:is(#handPanel,#next-handPanel) .spell-name{font-size:19px}:is(#handPanel,#next-handPanel) .spell-description{font-size:12px;margin:7px 0 10px}:is(#handPanel,#next-handPanel) .spell-lock{font-size:11px;width:calc(100% + 28px);padding:9px 4px}:is(#message,#next-message){bottom:100px}@media(max-width:700px){.hand-dock{bottom:12px}.hand-dock>button{padding:11px 17px;gap:10px;font-size:15px}:is(#handPanel,#next-handPanel){bottom:0;width:100%;max-height:78dvh;border-radius:20px 20px 0 0;padding:20px 18px max(18px,env(safe-area-inset-bottom))}:is(#handPanel,#next-handPanel) .preview-heading{gap:10px;align-items:flex-start}:is(#handPanel,#next-handPanel) .preview-heading h3{font-size:18px}.drawer-close{right:16px;top:17px}.preview-tools{gap:10px}.dock-preview{font-size:11px}}
:is(#handPanel,#next-handPanel) .card-workshop{border:0;margin:0;padding-top:24px}:is(#handPanel,#next-handPanel) .spell-hand{margin:0}:is(#handPanel,#next-handPanel) .hand-list:empty{display:none}:is(#handPanel,#next-handPanel) .hand-list:not(:empty){margin-top:25px}
:is(#handPanel,#next-handPanel)>.section-title{position:relative;justify-content:center;padding:0 85px;min-height:35px}:is(#handPanel,#next-handPanel) h2{text-align:center}:is(#handCount,#next-handCount){position:absolute;left:0;top:0}:is(#handPanel,#next-handPanel) :is(#handEmpty,#next-handEmpty){text-align:center}
:is(#handPanel,#next-handPanel) .drawer-close{z-index:1}
:is(#sharedCardDialog,#next-sharedCardDialog){width:min(560px,calc(100vw - 32px));max-height:88dvh;overflow-y:auto;border:1px solid #d6ddcd;border-radius:22px;padding:30px;background:#fffef9;color:#203d37;box-shadow:0 24px 100px #10291d40}:is(#sharedCardDialog,#next-sharedCardDialog)::backdrop{background:#152e2580;backdrop-filter:blur(4px)}:is(#sharedCardTitle,#next-sharedCardTitle){font-size:24px;line-height:1.5;overflow-wrap:anywhere}:is(#sharedCardDialog,#next-sharedCardDialog) .preview-option:disabled{opacity:1;cursor:default}:is(#sharedCardDialog,#next-sharedCardDialog) .correct-answer{border:2px solid #397552;background:#e5efdf}.shared-card-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:20px}.shared-card-actions button{font-size:16px}
.shared-card-actions{flex-wrap:wrap}
.shared-card-summary{display:flex;align-items:center;gap:16px;background:#f0f3e9;border:1px solid #dce4d3;border-radius:12px;padding:13px 16px;margin:16px 0}.shared-card-summary>span{flex:none;font-size:42px;line-height:1;color:#9b7936}.shared-card-summary p{margin:0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.shared-card-summary :is(#sharedCardEffect,#next-sharedCardEffect){font-weight:750;color:#315b3e;margin-top:4px}
:is(#sharedCardResult,#next-sharedCardResult) .card-verdict{display:block;font-size:32px;font-weight:850;line-height:1.4;margin:7px 0 10px}:is(#sharedCardResult,#next-sharedCardResult) .is-correct{color:#287348}:is(#sharedCardResult,#next-sharedCardResult) .is-wrong{color:#b44335}
:is(#sharedCardResult,#next-sharedCardResult){font-size:18px;line-height:1.8;color:#52684f;margin-top:18px}
:is(#sharedCardDialog,#next-sharedCardDialog){max-height:calc(100dvh - 24px);padding:24px}:is(#sharedCardStatus,#next-sharedCardStatus){margin:0 0 8px}:is(#sharedCardTitle,#next-sharedCardTitle){font-size:22px;line-height:1.4;margin:8px 0 12px}:is(#sharedCardDialog,#next-sharedCardDialog) .shared-card-summary{margin:12px 0;padding:10px 14px}:is(#sharedCardQuestion,#next-sharedCardQuestion){font-size:20px;line-height:1.5;margin:12px 0}:is(#sharedCardOptions,#next-sharedCardOptions){gap:8px}:is(#sharedCardOptions,#next-sharedCardOptions) .preview-option{padding:10px 14px;line-height:1.4}:is(#sharedCardResult,#next-sharedCardResult){margin:12px 0}:is(#sharedCardResult,#next-sharedCardResult) .card-verdict{margin:0}:is(#sharedCardDialog,#next-sharedCardDialog) .shared-card-actions{margin-top:12px}:is(#sharedCardDialog,#next-sharedCardDialog) .shared-card-actions button{padding:10px 14px}
