/* An illustrated diary on the foyer console: ivory paper, walnut, brass and wine. */
.story-cards{--card-ink:var(--foyer-ink,#3d2c23);--card-muted:var(--foyer-muted,#806e5c);--card-accent:var(--foyer-wine,#753c45);--card-line:var(--foyer-line,#d9c8ac);--card-paper:var(--foyer-paper,#fff9ed);color:var(--card-ink);min-width:0;filter:drop-shadow(0 10px 15px #39251b0d)}
.story-card-context{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 25px;background:#f3ead9;border:1px solid var(--card-line);border-bottom:0;border-radius:5px 5px 0 0}.story-card-player{display:flex;align-items:center;gap:11px;min-width:0}.story-card-player-image,.story-card-player-initial{width:44px;height:44px;border-radius:50%;flex:none;border:2px solid #fff9ed;background:#e5d1b3;object-fit:cover;object-position:center 15%}.story-card-player-initial{display:grid;place-items:center;color:#694235;font-family:Georgia,serif;font-size:1.3rem}.story-card-player>div{min-width:0}.story-card-player span{display:block;font-size:.78rem;color:var(--card-muted);line-height:1.3}.story-card-player b{display:block;font-size:.98rem;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.story-card-chapter{text-align:right;max-width:55%;min-width:0}.story-card-chapter span{font-size:.78rem;color:var(--card-muted);display:block}.story-card-chapter b{font-family:Georgia,serif;font-weight:400;font-size:1.06rem;display:block;margin-top:2px;overflow-wrap:anywhere;line-height:1.3}
.story-card-reading-track{height:3px;background:#e6d6bc;overflow:hidden}.story-card-reading-track>span{display:block;height:100%;background:#b18a4f;transition:width .18s ease-out}
.story-card-illustration{position:relative;margin:0;padding:12px 13px 0;background:var(--card-paper);border-left:1px solid var(--card-line);border-right:1px solid var(--card-line);min-width:0}.story-card-illustration:before{content:'';position:absolute;z-index:1;left:calc(50% - 34px);top:5px;width:68px;height:17px;transform:rotate(-3deg);background:#e0cfa7a8;box-shadow:0 1px 1px #5a3a2510;pointer-events:none}.story-cards .story-card-illustration>.story-card-scene-image{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center;border:1px solid #9d795059;border-radius:2px;background:#45372e}.story-card-illustration figcaption{font-family:Georgia,serif;font-style:italic;font-size:.82rem;line-height:1.4;color:#826c50;text-align:center;padding:9px 7px 2px;overflow-wrap:anywhere}
.story-card-passage{padding:23px 31px 20px;background:var(--card-paper);border-left:1px solid var(--card-line);border-right:1px solid var(--card-line);min-width:0}.story-card-passage:focus{outline:0}.story-card-passage:focus-visible{outline:2px solid #b28a50;outline-offset:-3px}.story-card-speaker{display:flex;align-items:center;gap:10px;margin-bottom:16px;min-height:36px}.story-card-speaker-image{width:36px;height:36px;border-radius:50%;object-fit:cover;object-position:center 14%;border:1px solid #c5a67c;background:#e4d1b6}.story-card-speaker>span{font-weight:600;font-size:.88rem;color:#704233;line-height:1.4;overflow-wrap:anywhere}.story-card-text{font-family:Georgia,'Times New Roman',serif;font-size:1.2rem;line-height:1.75;color:#49372b;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;max-width:55ch;min-height:5.25em}
.story-card-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--card-line);border-top:0;border-radius:0 0 5px 5px;padding:15px 24px 22px;background:var(--card-paper)}.story-card-nav{min-height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #cab18d;border-radius:4px;padding:10px 17px;background:#fff9ed;color:#744638;font-size:.88rem;font-weight:600;line-height:1.3;transition:background .15s,border-color .15s;white-space:nowrap}.story-card-nav:hover:not(:disabled){background:#efe1ca;border-color:#9b7646}.story-card-nav-next{background:#743c45;border-color:#743c45;color:#fff5e8;min-width:125px;box-shadow:inset 0 1px #bc8b8b44}.story-card-nav-next:hover:not(:disabled){background:#5c2d35;border-color:#5c2d35}.story-card-nav:disabled{opacity:.38;cursor:default}.story-card-nav:focus-visible{outline:3px solid #af8a55;outline-offset:3px}.story-card-count{font-size:.84rem;font-variant-numeric:tabular-nums;color:#78532f;white-space:nowrap}.story-card-count>span{color:#a48b6b}.story-card-reading-note{display:table;max-width:100%;text-align:center;background:#eee0c8;border:1px solid #d4bd96;border-radius:4px;color:#796247;font-size:.8rem;margin:14px auto 3px;padding:6px 12px}
.story-card-decisions{margin-top:22px;padding:19px;background:#f2e6d2;border:1px solid #cbb28c;border-radius:5px}.story-card-choice-heading{display:flex;align-items:baseline;justify-content:space-between;gap:13px;margin-bottom:12px}.story-card-choice-heading h3{font-family:Georgia,serif;font-size:1.25rem;font-weight:400;letter-spacing:-.02em;color:#51382c}.story-card-choice-heading>span{font-size:.76rem;color:#8a7157;text-align:right}.story-card-decisions .choices{margin-top:0;gap:10px}.story-card-choice{min-height:59px;text-align:left;width:100%;font-size:.94rem;line-height:1.45;gap:18px;background:#fff8e9;border:1px solid #cdb38e;border-radius:5px;color:#4d3429;box-shadow:0 2px 0 #2c1e1910}.story-card-choice:hover:not(:disabled){background:#f2e4ce;border-color:#ad8957}.story-card-choice.premium{background:#efe0c5;border-color:#b18b50;color:#623a35}.story-card-choice>span:first-child{min-width:0;overflow-wrap:anywhere}.story-card-choice .price{flex:none;align-self:center;font-size:.8rem;color:#84622f}.story-card-choice .price .gem{color:#9b763d}.story-card-choice:disabled{opacity:.65}.story-card-saving{background:#ead9bc!important}.story-card-saving-mark{display:block;width:17px;height:17px;border:2px solid #d1b88d;border-top-color:#76422f;border-radius:50%;animation:story-card-saving-turn .7s linear infinite;flex:none}.story-card-decisions[aria-busy=true]{opacity:.8}.story-card-action-status{margin:12px 0 0;padding:10px 13px;background:#fff3dc;border:1px solid #d1b58d;border-radius:4px;color:#753c45;font-size:.83rem;line-height:1.55;overflow-wrap:anywhere}.story-card-action-status:empty{display:none}
/* Saved encounters are illustrated keepsakes as well as text records. */
.life-category-illustrated.life-category{display:block;padding:0;border:1px solid #cbb28e;border-radius:5px;overflow:hidden;background:#fbf2e2;color:#52382d;text-align:left}.life-category-illustrated .life-category-scene{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center;border-bottom:1px solid #cdb795}.life-category-illustrated .life-category-copy{padding:17px 18px 19px;position:relative}.life-category-illustrated .life-category-mark{position:absolute;right:16px;top:-21px;width:38px;height:38px;display:grid;place-items:center;background:#f6ead1;border:1px solid #c2a171;border-radius:50%;color:#7b523b}.life-category-illustrated h3{padding-right:20px;color:#543b2d}.life-category-illustrated p{color:#8a715b}.life-category-illustrated b{color:#7b4045}.life-category-illustrated:hover{border-color:#a67c46;background:#f4e5cc}
.outcome-result.illustrated-outcome{display:grid;grid-template-columns:185px minmax(0,1fr);gap:21px;background:#fbf2e1;border:1px solid #c6a572;border-radius:5px;padding:15px;color:#523a2c}.illustrated-outcome>figure{margin:0;padding:7px;background:#fff9eb;border:1px solid #dbc5a2;align-self:start;transform:rotate(-1deg)}.illustrated-outcome>figure>img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;border:1px solid #cbb38e}.illustrated-outcome figcaption{font-family:Georgia,serif;font-style:italic;color:#8a7152;font-size:.74rem;line-height:1.4;padding:6px 2px 2px;text-align:center}.illustrated-outcome-copy{min-width:0;padding:2px 0}.illustrated-outcome-copy>span{font-size:.79rem;color:#8b6543}.illustrated-outcome-copy h3{margin-top:7px;color:#6d3c3e}.illustrated-outcome-copy p{color:#6a5341}.illustrated-outcome-copy small{color:#96754e}
.life-journal .life-journal-entries{gap:16px}.life-journal-entries .illustrated-journal-entry{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;padding:13px;background:#fff8e8;border:1px solid #d7c09b;border-radius:4px;align-items:start}.life-journal-thumbnail{display:block;width:112px;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center;border:6px solid #fffdf4;outline:1px solid #cdb48d;box-shadow:0 2px 4px #4b2d1a14;transform:rotate(-1deg)}.life-journal-copy{min-width:0}.life-journal-copy h3{color:#624233}.life-journal-copy p,.life-journal-copy .journal-outcome{color:#8a6e54;overflow-wrap:anywhere}.life-journal-copy .journal-outcome{border-color:#dcc4a1}
@keyframes story-card-saving-turn{to{transform:rotate(360deg)}}
@media(max-width:1000px){.life-journal-entries .illustrated-journal-entry{grid-template-columns:85px minmax(0,1fr);gap:13px}.life-journal-thumbnail{width:85px;height:auto;border-width:5px}}
@media(max-width:700px){.story-card-context{padding:14px 17px;gap:12px}.story-card-player{gap:8px}.story-card-player-image,.story-card-player-initial{width:39px;height:39px}.story-card-player span{font-size:.73rem}.story-card-player b{font-size:.88rem}.story-card-chapter{max-width:49%}.story-card-chapter span{font-size:.72rem}.story-card-chapter b{font-size:.91rem}.story-card-illustration{padding:10px 10px 0}.story-cards .story-card-illustration>.story-card-scene-image{height:auto;max-height:none;object-fit:contain}.story-card-illustration:before{height:14px;top:4px;width:58px;left:calc(50% - 29px)}.story-card-illustration figcaption{font-size:.75rem;padding:8px 5px 1px}.story-card-passage{padding:18px 20px 17px}.story-card-speaker{margin-bottom:12px;gap:9px}.story-card-speaker>span{font-size:.82rem}.story-card-speaker-image{width:33px;height:33px}.story-card-text{font-size:1.09rem;line-height:1.72;min-height:5.16em}.story-card-controls{padding:9px 17px 18px;gap:10px}.story-card-nav{padding:10px 13px;font-size:.82rem;min-height:43px}.story-card-nav-next{min-width:112px}.story-card-count{font-size:.77rem}.story-card-reading-note{font-size:.74rem;margin-top:12px}.story-card-decisions{margin-top:21px;padding:16px 13px}.story-card-choice-heading{align-items:flex-start;gap:16px}.story-card-choice-heading h3{font-size:1.18rem;flex:none}.story-card-choice-heading>span{font-size:.71rem;max-width:145px;line-height:1.45}.story-card-choice{font-size:.87rem;padding:14px 15px;gap:13px;min-height:58px}.story-card-choice .price{font-size:.73rem}.life-dialogue .story-card-context{margin-top:13px}.life-dialogue .story-card-text{font-size:1.06rem}.life-category-illustrated.life-category{padding:0;position:static;min-height:0}.life-category-illustrated .life-category-scene{height:auto;object-fit:contain}.life-category-illustrated .life-category-copy{padding:17px 18px 20px}.life-category-illustrated p{min-height:0}.outcome-result.illustrated-outcome{grid-template-columns:1fr;padding:13px;gap:14px}.illustrated-outcome>figure{transform:none}.illustrated-outcome>figure>img{height:auto;object-fit:contain}.illustrated-outcome figcaption{font-size:.72rem}.illustrated-outcome-copy{padding:0 3px 5px}.life-journal-entries .illustrated-journal-entry{grid-template-columns:84px minmax(0,1fr);gap:13px;padding:11px}.life-journal-thumbnail{width:84px;height:auto;border-width:4px}.life-journal-copy h3{font-size:.94rem}.life-journal-copy p{font-size:.82rem;line-height:1.65}}
@media(max-width:360px){.story-card-passage{padding-left:17px;padding-right:17px}.story-card-controls{padding-left:14px;padding-right:14px;gap:8px}.story-card-nav{padding-left:10px;padding-right:10px}.story-card-nav-next{min-width:98px}.story-card-player b{max-width:105px}.story-card-choice-heading>span{max-width:125px}.story-cards .story-card-illustration>.story-card-scene-image{height:auto;object-fit:contain}.life-journal-entries .illustrated-journal-entry{grid-template-columns:1fr}.life-journal-thumbnail{width:100%;height:auto;object-fit:contain;transform:none}.life-journal-copy{padding-top:2px}}
@media(prefers-reduced-motion:reduce){.story-card-reading-track>span,.story-card-nav{transition:none}.story-card-saving-mark{animation:none;border-top-color:#76422f}}
