/* 0.18.16: compact notice card, journal colours and switch, gliding online jewel, grouped settings, loot landing. */

/* Match the world toolbar's bounds and corners; keep the parchment, emblem and handle. */
#app #toast.top-notice{--notice-accent:#7f9a7d;--notice-ring:#d7c9a5;left:0;right:0;top:0;width:100%;min-width:0;max-width:100%;height:var(--notice-height,57px);min-height:0;margin:0;padding:7px 14px 7px 54px;box-sizing:border-box;border:1px solid #d6c7a2;border-radius:var(--notice-radius,0 0 15px 15px);background:linear-gradient(180deg,#fffdf7 0%,#f8f0de 100%);box-shadow:0 8px 20px #2b3c3124,0 1px 3px #4b3c2018,inset 0 1px 0 #fff;overflow:hidden;align-items:center;justify-content:flex-start;gap:0}
#app #toast.top-notice:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--notice-accent);opacity:.8}
#app #toast.top-notice>.notice-surface{display:none}
#app #toast.top-notice .notice-emblem{left:10px;top:50%;width:32px;height:32px;padding:6px;box-sizing:border-box;transform:translateY(-50%);border-radius:50%;background:radial-gradient(circle at 50% 32%,#fffdf4,#efe5c9);box-shadow:inset 0 0 0 1.5px var(--notice-ring),0 1px 2px #5a472616;color:var(--notice-accent);filter:none;overflow:visible}
#app #toast.top-notice .notice-emblem:after{display:none}
#app #toast.top-notice .notice-emblem>svg{width:100%;height:100%}
/* Item and place art keeps its own proportions and may stand slightly out of the ring. */
#app #toast.top-notice .notice-emblem>img{position:absolute;left:50%;top:50%;width:30px;height:30px;max-width:none;transform:translate(-50%,-50%);object-fit:contain}
#app #toast.top-notice .notice-copy{flex:1;width:0;align-self:center;align-items:stretch;justify-content:center;text-align:left;gap:2px;min-width:0}
#app #toast.top-notice .notice-heading{display:flex;align-items:center;gap:10px;min-width:0;width:100%}
#app #toast.top-notice .notice-text{flex:1;min-width:0;font:400 15px/18px Georgia,'Noto Serif',serif;letter-spacing:.1px;color:#3d5649;-webkit-line-clamp:2;text-wrap:pretty}
#app #toast.top-notice:has(.notice-detail:not(:empty)) .notice-text{-webkit-line-clamp:1}
#app #toast.top-notice .notice-detail{font:400 10px/11px Interface,sans-serif;letter-spacing:.15px;color:#8a7b5b}
#app #toast.top-notice .notice-meta{flex:none;max-width:40%;padding:2px 7px;border:1px solid #d9d5ba;border-radius:5px;background:#f1efdf;color:#5b725b;font:400 11px/14px Interface,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
#app #toast.top-notice .notice-meta:empty,#app #toast.top-notice .notice-detail:empty{display:none}
#app #toast.top-notice .notice-progress{width:100%;min-width:0;height:3px;margin-top:1px;border-radius:3px;background:#e4ddc8;box-shadow:inset 0 1px 1px #70634112}
#app #toast.top-notice .notice-progress>i{background:linear-gradient(90deg,#769782,#b7c18a);border-radius:inherit}
#app #toast.top-notice.notice-waiting .notice-text{background:none;-webkit-text-fill-color:currentColor;animation:none}
#app #toast.top-notice>.notice-dismiss{top:auto;bottom:0;left:50%;width:48px;height:9px;min-height:9px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;padding:0;border:0;background:none}
#app #toast.top-notice>.notice-dismiss>.notice-handle{display:block;width:26px;height:3px;border-radius:3px;background:#d3c6a3;transition:background .15s}
#app #toast.top-notice>.notice-dismiss:hover>.notice-handle,#app #toast.top-notice>.notice-dismiss:focus-visible>.notice-handle{background:#a8996f}
#app #toast.top-notice .notice-actions{position:static;transform:none;margin-left:12px;flex:none}
#app #toast.top-notice:has(.notice-actions){padding-right:12px}
#app #toast.top-notice.notice-error{--notice-accent:#b8665a;--notice-ring:#e2bfb3;border-color:#e0c3b4;background:linear-gradient(180deg,#fffaf6,#f8ebe3)}
#app #toast.top-notice.notice-error .notice-text{color:#94493e}
#app #toast.top-notice.notice-loot{--notice-accent:#c49a3a;--notice-ring:#e2c47a}
#app #toast.top-notice.notice-loot .notice-emblem{background:radial-gradient(circle at 50% 40%,#fff7d8,#f1e0ab);box-shadow:inset 0 0 0 1.5px var(--notice-ring),0 0 8px #e7c86a4d}
#app #toast.top-notice.notice-loot .notice-text{color:#5a4a1e}
#app #toast.top-notice.notice-mastery{--notice-accent:#8e78b8;--notice-ring:#cdbfe3}
#app #toast.top-notice.notice-journey,#app #toast.top-notice.notice-waiting,#app #toast.top-notice.notice-invitation{--notice-accent:#5f8f77;--notice-ring:#bcd2bf}

/* Journal switch: one full-width segmented control, no empty label column. */
.journal-view-controls{display:grid;grid-template-columns:1fr 1fr;gap:2px;margin:0 0 7px;padding:2px;border:1px solid #d7cdb0;border-radius:9px;background:#efe7d1;font:600 10px/1.2 Interface,sans-serif}
.journal-view-controls>span{display:none}
.journal-view-controls>button{min-height:0!important;height:24px;padding:0 6px;border:0;border-radius:7px;background:transparent;color:#86775a;font:inherit;box-shadow:none}
.journal-view-controls>button[aria-pressed="true"]{background:#fffdf6;color:#3e6150;font-weight:700;box-shadow:0 1px 2px #5a4a2a26,inset 0 0 0 1px #d9cfb3}
.v13-settings .journal-view-controls{flex:1 1 100%;margin:8px 0 0 29px;font-size:11px}
.v13-settings .settings-journal-row{flex-wrap:wrap}

/* Journal colours, kept soft on parchment: heroes green, monsters brick, damage to heroes muted red. */
#app .journal-focus.journal-foe,#modal-root .journal-focus.journal-foe,.journal-foe{color:#94503f;font-weight:700}
#app .journal-focus.journal-hero,#modal-root .journal-focus.journal-hero{color:#3d6551}
#app .journal-focus.journal-self,#modal-root .journal-focus.journal-self{color:#2b6a50}
#app .journal-focus.journal-summon,#modal-root .journal-focus.journal-summon{color:#6c8c63}
#app .journal-focus.journal-phoenix,#modal-root .journal-focus.journal-phoenix{color:var(--journal-owner-color,#3d8177)}
.journal-critical-line{color:#987043;font-size:.94em}
/* The number stays the only underlined thing in a line: a light dotted hint that it opens the calculation. */
.journal-record .journal-amount{text-decoration-line:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:3px}
.journal-record .journal-amount.journal-hit,.journal-amount-static.journal-hit{color:#2f6a52;text-decoration-color:#2f6a5266}
.journal-record .journal-amount.journal-hurt,.journal-amount-static.journal-hurt{color:#ad5141;text-decoration-color:#ad514166}
.journal-record .journal-amount[aria-expanded="true"]{text-decoration-style:solid}
.journal-amount-static{font-weight:700}
#app .journal-hostile .journal-breakdown .journal-num,#modal-root .journal-hostile .journal-breakdown .journal-num{color:#a35848}
/* Effects and resources. */
#app .journal-shield,#modal-root .journal-shield{color:#3f72a4!important}
#app .journal-focus.journal-heal,#modal-root .journal-focus.journal-heal,.journal-gain{color:#3d8346;font-weight:700}
#app .journal-focus.journal-resource,#modal-root .journal-focus.journal-resource{color:#9b7424}
#app .journal-focus.journal-spend,#modal-root .journal-focus.journal-spend{color:#93784a}
.journal-loss{color:#ad5141;font-weight:700}
.journal-evaded{color:#4f7f9f;font-weight:700}
.journal-crit{color:#b26a26!important}
/* Skill families, the same in every line where the skill is named. */
.journal-move.skill-attack,#app .journal-focus.skill-attack,#modal-root .journal-focus.skill-attack{color:#8a5a2b}
.journal-move.skill-shield,#app .journal-focus.skill-shield,#modal-root .journal-focus.skill-shield{color:#3f6f9f}
.journal-move.skill-heal,#app .journal-focus.skill-heal,#modal-root .journal-focus.skill-heal{color:#3d8346}
.journal-move.skill-counter,#app .journal-focus.skill-counter,#modal-root .journal-focus.skill-counter{color:#2f7a73}
.journal-move.skill-control,#app .journal-focus.skill-control,#modal-root .journal-focus.skill-control{color:#6d579b}
.journal-move.skill-rally,#app .journal-focus.skill-rally,#modal-root .journal-focus.skill-rally{color:#a17a22}
.journal-move.skill-foe{color:#9a6a5c}
.journal-move.skill-strike{color:#7d725c}
/* Plain lines take the colour of what happened. */
.log-entry.log-guard .journal-focus,.log-entry.log-barrier .journal-focus{color:#3f6f9f}
.log-entry.log-counter .journal-focus{color:#2f7a73}
.log-entry.log-heal .journal-focus{color:#3d8346}
.log-entry.log-mana .journal-focus{color:#9b7424}
.log-entry.log-stun .journal-focus,.log-entry.log-frost .journal-focus,.log-entry.log-chill .journal-focus{color:#5d6fa8}
.log-entry.log-poison .journal-loss{color:#5f8a2d}
.log-entry.log-victory .journal-gain,.log-entry.log-loot .journal-gain{color:#9b7424}
/* Entry markers follow the same meaning. */
.log-entry.log-enemy .log-symbol,.log-entry.log-defeat .log-symbol,.log-entry.log-warning .log-symbol,.log-entry.log-arrival .log-symbol,.log-entry.log-bleed .log-symbol{color:#a8594a;background:#f5e6df}
.log-entry.log-poison .log-symbol{color:#5f8a2d;background:#e9f0d9}
.log-entry.log-heal .log-symbol{color:#3d8346;background:#e3efdc}
.log-entry.log-victory .log-symbol,.log-entry.log-loot .log-symbol,.log-entry.log-kill .log-symbol,.log-entry.log-critical .log-symbol{color:#9b7424;background:#f4ead2}
.log-entry.log-stun .log-symbol,.log-entry.log-frost .log-symbol,.log-entry.log-chill .log-symbol{color:#5d6fa8;background:#e5e9f4}
.log-entry.log-mana .log-symbol{color:#9b7424;background:#f4ead2}
.log-entry.log-guard .log-symbol,.log-entry.log-barrier .log-symbol,.log-entry.log-block .log-symbol{color:#3f6f9f;background:#e2ebf4}
.log-entry.log-counter .log-symbol,.log-entry.log-dodge .log-symbol{color:#2f7a73;background:#e0eeeb}

/* Online line: the original jewel on a thread, now gliding back and forth with a soft glow. */
#world #online-open .shore-online-track{height:2px;border-radius:2px;background:linear-gradient(90deg,#c8b98a00,#c8b98a 14%,#a9b86e 50%,#c8b98a 86%,#c8b98a00);box-shadow:0 1px 0 #fff8e2}
#world #online-open .shore-online-track:before,#world #online-open .shore-online-track:after{width:5px;height:5px;border:1px solid #b9a979;border-radius:1px;background:#f7efd8;transform:translateY(-50%) rotate(45deg)}
#world #online-open .shore-online-track:before{left:9%}
#world #online-open .shore-online-track:after{right:9%}
#world #online-open .shore-online-track>i{position:absolute;left:0;right:0;top:50%;width:auto;height:0;margin:0;overflow:visible;border:0;background:none;box-shadow:none;transform:translateX(0);animation:online-glide 5.2s cubic-bezier(.45,0,.55,1) infinite alternate;will-change:transform;opacity:1}
#world #online-open .shore-online-track>i:before{content:'';position:absolute;right:auto;bottom:auto;left:50%;top:0;width:34px;height:10px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#d6ea7f99 0%,#d6ea7f00 70%);animation:online-glow 1.6s ease-in-out infinite}
#world #online-open .shore-online-track>i:after{content:'';position:absolute;right:auto;bottom:auto;left:50%;top:0;width:10px;height:10px;transform:translate(-50%,-50%) rotate(45deg);box-sizing:border-box;border:1px solid #8fa24a;border-radius:1px;background:conic-gradient(from 45deg,#e4f0b0 0 25%,#bfd56c 0 50%,#a7bf55 0 75%,#d0e389 0);background-size:auto;box-shadow:0 0 0 2px #f9efdb,0 1px 3px #6d7d3355;animation:none;opacity:1;filter:none}
@keyframes online-glide{from{transform:translateX(-30%)}to{transform:translateX(30%)}}
@keyframes online-glow{0%,100%{opacity:.55}50%{opacity:1}}
#world #online-open:disabled .shore-online-track>i{animation:none;transform:none}
#world #online-open:disabled .shore-online-track>i:before{display:none}
#world #online-open:disabled .shore-online-track>i:after{border-color:#b4ae92;background:#d9d4bc;box-shadow:0 0 0 2px #f9efdb}
@media(prefers-reduced-motion:reduce){#world #online-open .shore-online-track>i,#world #online-open .shore-online-track>i:before{animation:none}}
#app.reduced-motion #world #online-open .shore-online-track>i,#app.reduced-motion #world #online-open .shore-online-track>i:before{animation:none}

/* Settings: three titled groups with the same card style. */
.v13-settings .settings-group-title{margin:16px 2px 6px;font:700 10px/1.2 Interface,sans-serif;letter-spacing:.8px;text-transform:uppercase;color:#8e8262}
.v13-settings .v13-preferences{margin:0}
.v13-settings .v13-preferences .toggle-row:last-child{border-bottom:0}
.v13-settings .loading-preview-button{margin-top:8px}
.v13-settings .v13-account-actions{margin-top:0}

/* Mastery «Подробнее» under the description. */
.mastery-detail .skill-more{margin:4px 0 8px;border-top:1px dashed #cdbf9a80;padding-top:5px}
.mastery-detail .skill-more>summary{font-size:11px}
.mastery-detail .skill-more .effect-note-text{font-size:11px;color:#7a6a4c;margin:5px 0 0}

/* Loot landing: animated from script; a rarity glow appears once it lands. */
#battle-root .battle-drops .ground-loot.ground-loot-v16,.battle-drops .ground-loot.ground-loot-v16{animation:none!important;opacity:1;transform:translate(-50%,-50%);will-change:transform,opacity}
.battle-drops .ground-loot.ground-loot-v16:before{content:'';position:absolute;z-index:-1;left:50%;top:58%;width:44px;height:16px;border-radius:50%;background:radial-gradient(ellipse,var(--rarity,#e7c86a) 0%,transparent 70%);opacity:0;transform:translate(-50%,-50%) scale(.6);transition:opacity .35s,transform .35s}
.battle-drops .ground-loot.ground-loot-v16.landed:before{opacity:.55;transform:translate(-50%,-50%) scale(1)}
.battle-drops .ground-loot.ground-loot-v16.gold:before{background:radial-gradient(ellipse,#f2cf63 0%,transparent 70%)}

/* 05.11.2026: плашка пути — откуда идём, заметное время и маркер на полосе */
#app #toast.top-notice.notice-journey .notice-meta{padding:2px 8px;font-weight:600;font-size:13px;line-height:15px;color:#3f5e4e}
#app #toast.top-notice.notice-journey .notice-detail{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#app #toast.top-notice.notice-journey .notice-progress{position:relative;height:5px;margin-top:3px;overflow:visible}
#app #toast.top-notice.notice-journey .notice-progress>i{display:block;height:100%;transform-origin:left center}
#app #toast.top-notice.notice-journey .notice-progress:after{content:"";position:absolute;top:50%;left:calc(var(--p,0)*100%);width:9px;height:9px;box-sizing:border-box;border:2px solid #fffdf3;border-radius:50%;background:#5f8f77;box-shadow:0 0 0 1px #5f8f7766;transform:translate(-50%,-50%)}
