/* The original game typeface, with emphasis expressed by weight and colour. */
#app .log-entry p,#modal-root .log-entry p,.shore-message .message-body,.shore-message .message-body p,.shore-message .message-body header,.effect-note-text,.effect-note-more,.effect-note-page,.valgard-effect-note,.enemy-effect-popover,.valgard-effect-note h3,#battle-root .enemy-effect-popover .effect-note-text{font-family:Interface,sans-serif!important;font-weight:400;letter-spacing:0}
#app .log-entry p,#modal-root .log-entry p{font-size:12px;line-height:1.5;color:#52604d}
.journal-record{display:block}.journal-record .journal-amount{display:inline;padding:1px 2px;min-height:0;font:700 12px/1.5 Interface,sans-serif;color:#345e51;text-decoration:underline;text-decoration-color:#7e9b7d;text-underline-offset:3px;text-decoration-thickness:1px}
.journal-record .journal-move{color:#8b795b;font-size:11px}.journal-focus{font-weight:700;color:#42614e}.journal-shield{color:#4389b4;font-weight:700}.journal-cost{color:#a2833e;font-weight:700}.journal-crit{color:#b2752e}
.journal-detail-wrap{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .19s ease,opacity .16s ease;overflow:hidden}
#app .journal-breakdown,#modal-root .journal-breakdown{display:block;overflow:hidden;min-height:0;font:400 11px/1.65 Interface,sans-serif;color:#857357;overflow-wrap:anywhere}
.journal-record[data-expanded="true"]>.journal-detail-wrap{grid-template-rows:1fr;opacity:1}.journal-record[data-expanded="true"] .journal-breakdown{padding:5px 0 3px}
.journal-modifier{display:inline-flex;align-items:center;gap:3px;padding:0 2px;vertical-align:middle;min-height:22px;font:700 11px/1.3 Interface,sans-serif;color:#59844e;white-space:nowrap}
.journal-modifier>img{box-sizing:border-box;width:19px;height:19px;padding:1px;object-fit:contain;border:1px solid #ad976b;border-radius:3px;background:#f5e8c8}.journal-modifier:hover,.journal-modifier:focus-visible{background:#eee6cb;border-radius:3px}
.journal-view-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:6px 0 9px;border-bottom:1px solid #bcad8347;margin-bottom:6px;font:400 10px/1.4 Interface,sans-serif}.journal-view-controls>span{font-weight:700;margin-right:auto;color:#77765b}.journal-view-controls>button{font:inherit;padding:5px 8px;border:1px solid #b5a27866;border-radius:5px;color:#817457;background:#f1e8cf66}.journal-view-controls>button[aria-pressed="true"]{font-weight:700;color:#46634e;background:#dce2bf66;border-color:#9da572}
.v13-settings .journal-view-controls{font-size:12px;padding:12px 0}
.effect-note-more{font-size:12px;line-height:1.45}.effect-note-more>summary{display:inline-block;font-weight:700;padding:3px 0}.effect-note-text{font-size:12px;line-height:1.45;margin:7px 0}.show-note-more>.effect-note-text{display:block}
.valgard-effect-note{width:min(338px,calc(100vw - 20px))}.valgard-effect-note>.effect-note-body,#battle-root .enemy-effect-copy{max-height:calc(100dvh - 125px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.valgard-effect-note>header h3{font-size:16px;font-weight:700}
.hero-role-icon{display:inline-block;width:17px;height:17px;object-fit:contain;vertical-align:middle;margin-right:4px;flex:none}.party-card-class{display:flex;align-items:center;gap:2px}.party-card-class>.hero-role-icon{width:13px;height:13px;margin:0}.admin-player strong>.hero-role-icon{width:15px;height:15px}.ally-choice-copy>strong>.hero-role-icon{width:16px;height:16px}
.world-opponents>.opponent-card[data-phase="ACTIVE"]{background:radial-gradient(ellipse at 50% 22%,#fffdf3 8%,#f4e8c6 62%,#e1cd9c);border-color:#ad9156;box-shadow:inset 0 0 0 2px #fff8df,inset 0 0 0 4px #c7ae7040,0 2px 4px #5a512015}
.world-opponents>.opponent-card.is-boss[data-phase="ACTIVE"]{background:radial-gradient(ellipse at 50% 26%,#fff5e2 10%,#f3dabb 70%,#d9b886);border-color:#ad794b;box-shadow:inset 0 0 0 2px #fff0d2,inset 0 0 0 4px #b07e4940,0 2px 5px #81562b20}
.opponent-card[data-phase="ACTIVE"] .opponent-art{background:radial-gradient(ellipse at 50% 90%,#7f784621,transparent 65%)}.opponent-card .opponent-name{font:700 10px/1.25 Interface,sans-serif;color:#455b40}.opponent-card.is-boss .opponent-name{color:#8d5634}.opponent-card .opponent-stat-page span>img{width:17px;height:17px;flex:none;object-fit:contain}.opponent-card .opponent-stats b{font:700 10px/1.3 Interface,sans-serif;color:#5d533c}.opponent-card .opponent-stat-page>small{font:400 8px/11px Interface,sans-serif}.opponent-card .opponent-inspect{grid-template-rows:15px minmax(0,1fr) 25px}
@media(prefers-reduced-motion:reduce){.journal-detail-wrap{transition:none}}
.reduced-motion .journal-detail-wrap{transition:none}
/* Shield capacity keeps its blue emphasis through inherited journal bold styles. */
#app .journal-shield,#modal-root .journal-shield{color:#4389b4!important}
.effect-note-value{font-weight:700;color:#49684f}
#battle-root .player-card-select{position:relative}#battle-root .player-card-identity .hero-role-icon{position:absolute;left:22px;top:26px;width:12px;height:12px;margin:0;border-radius:3px;background:#fff5dc;border:1px solid #b8a57c}
/* Clip only the illustration: locks and learned marks may extend beyond the seal. */
#knowledge-root .mastery-seal>img{width:calc(100% - 12px);height:calc(100% - 12px);object-fit:cover;border-radius:50%;filter:none;box-shadow:0 0 0 1px #aa8a4980}
#knowledge-root .mastery-seal:after{z-index:1}
#knowledge-root .mastery-node-lock,#knowledge-root .mastery-node-check{z-index:2}
