/* The mailbox shares the console, without covering its controls or opening a dialog. */
body#chimera-console [data-journey-hidden] {display:none!important}
/* The goal of a place still to earn, shown from the menu (society-mail.js showGoal). */
dialog#journey-locked-goal .journey-goal-first {margin:0;padding:10px;border:1px dashed var(--lcd-dialog-line,currentColor);font-size:.8rem;line-height:1.6}
body#chimera-console[data-journey-world-locked] .friends-shortcut {display:none!important}
body#chimera-console .society-mail-shortcut {display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;margin-left:auto;padding:4px 8px;border:2px solid var(--lcd-ink,#364526);background:var(--lcd-light,#d0d7a8);color:var(--lcd-ink,#364526);font:700 11px/1.2 var(--lcd-font,monospace);text-decoration:none;white-space:nowrap;box-sizing:border-box}
body#chimera-console .society-mail-shortcut[hidden],body#chimera-console .society-mail-count[hidden],body#chimera-console .society-mail-alert[hidden] {display:none}
body#chimera-console .society-mail-shortcut:not([hidden])~.friends-shortcut {margin-left:0}
/* The character at rest (a trial, society-mail.js restTrial): beside the Society's shortcut, where it covers no control
   of the page. Touched, it says its step again. */
body#chimera-console .society-rest {display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;margin-left:auto;padding:0;border:2px solid var(--lcd-ink,#364526);background:var(--lcd-light,#d0d7a8);box-sizing:border-box;cursor:pointer}
body#chimera-console .society-rest[hidden] {display:none}
body#chimera-console .society-rest img {width:30px;height:30px;image-rendering:pixelated}
body#chimera-console .society-rest:not([hidden])~.society-mail-shortcut {margin-left:6px}
body#chimera-console .society-rest:focus-visible {outline:2px solid var(--lcd-accent,#793c48);outline-offset:3px}
body#chimera-console .society-mail-emblem {font:700 18px/1 monospace}
body#chimera-console .society-mail-count {min-width:17px;padding:3px;background:var(--lcd-accent,#793c48);color:var(--lcd-on-accent,#fff8e5);text-align:center;font-size:10px}
body#chimera-console #console-menu .society-menu-title {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
body#chimera-console #console-menu .society-menu-count {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:23px;min-height:23px;padding:3px 5px;border:1px solid #ecedc7;font:800 11px/1 var(--lcd-font,monospace);box-shadow:2px 2px 0 #34452b80}
body#chimera-console #console-menu .society-menu-count[hidden] {display:none}
body#chimera-console .society-mail-shortcut:focus-visible,body#chimera-console .society-mail-alert :focus-visible {outline:2px solid var(--lcd-accent,#793c48);outline-offset:3px}
/* Keep placement independent of the arrival animation's transform. */
body#chimera-console .society-mail-alert {position:fixed;z-index:80;inset:auto;left:calc(var(--console-dialog-left,0px) + var(--console-dialog-width,100vw) / 2);top:calc(var(--console-dialog-top,0px) + var(--console-dialog-height,100dvh) - 12px);translate:-50% -100%;box-sizing:border-box;width:min(340px,calc(var(--console-dialog-width,100vw) - 24px));max-height:calc(var(--console-dialog-height,100dvh) - 24px);overflow:auto;margin:0;padding:12px 14px;border:2px solid var(--lcd-ink,#364526);background:var(--lcd-paper,#e0e5bd);color:var(--lcd-ink,#364526);box-shadow:4px 4px 0 var(--lcd-line,#66744d);font:600 12px/1.5 var(--lcd-font,monospace);animation:society-mail-arrival .3s ease-out}
body#chimera-console .society-mail-alert p {margin:0 0 4px}
body#chimera-console .society-mail-alert [hidden] {display:none}
/* Only the first lines run beside the close button. */
body#chimera-console .society-mail-alert :is([data-society-alert-copy],.society-mail-alert-sender,strong) {padding-right:32px}
/* A fight or an open window keeps the screen: the message, like the egg's invitation, waits behind it and comes back
   after. The community fight, the tree and the card duel fill the window; co-op, duel rooms, territories and the camp
   fight in the page; a guide takes the LCD screen (lcd-dialog.js), a window is modal. */
html:is(.cg-full,.cg-zooming) body#chimera-console .society-mail-alert,
body#chimera-console:is(.console-zooming,.coop-playing,[data-console-arena]) .society-mail-alert {display:none}
/* Over the community fight, only the chain's message once the player's own run is over there (society-mail.js,
   body[data-society-thread]), as the character does (society-companion.css). A place that fills the window (the
   Territories, body[data-fullscreen-place]) is still a place: the Society speaks there as it does in the console. */
body#chimera-console.console-fullscreen:not([data-fullscreen-place]) .society-mail-alert:not(#society-chain-alert),
body#chimera-console.console-fullscreen:not([data-fullscreen-place],[data-society-thread]) #society-chain-alert {display:none}
body#chimera-console:has(main:is([data-lcd-screen],[data-duel-cinematic]),#campaign-battle:not([hidden]),#station-duel:not([hidden])) .society-mail-alert {display:none}
body#chimera-console:has(dialog:modal) .society-mail-alert {display:none}
/* The console's menu is not modal (console-menu.js keeps the physical buttons alive) and lists its places down to
   the bottom of the screen: the message and the invitation wait behind it too (Jeremy's phone, 15/11/2026). */
body#chimera-console:has(#console-menu[open]) .society-mail-alert {display:none}
/* The message names its letter; the way to the Society (or to the nest) is a button of the console's main actions. */
body#chimera-console .society-mail-alert .society-mail-alert-sender {margin:0 0 2px;color:var(--lcd-accent,#793c48);font-size:11px;letter-spacing:.08em;text-transform:uppercase}
body#chimera-console .society-mail-alert strong {display:block;margin:0 0 4px;font-size:14px;line-height:1.35;font-weight:800;overflow-wrap:anywhere}
body#chimera-console .society-mail-alert a {display:inline-flex;align-items:center;min-height:38px;margin-top:2px;padding:5px 14px;border:2px solid var(--lcd-accent-dark,#632633);background:var(--lcd-accent,#793c48);color:var(--lcd-on-accent,#fff8e5);box-shadow:2px 2px 0 var(--lcd-accent-dark,#632633);font-weight:800;text-decoration:none}
body#chimera-console .society-mail-alert button {position:absolute;right:0;top:0;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;color:var(--lcd-ink,#364526);font:700 24px/1 monospace;cursor:pointer}
body#chimera-console .society-world-hint {padding:12px;border:2px dashed var(--lcd-line);background:var(--lcd-paper);color:var(--lcd-ink);font:500 12px/1.55 var(--lcd-font)}
body#chimera-console .society-world-hint a {display:inline-flex;min-height:44px;align-items:center;color:var(--lcd-accent-dark);font-weight:800}
@keyframes society-mail-arrival {from {opacity:0;transform:translateY(8px)} to {opacity:1;transform:none}}
@media(max-width:420px) {body#chimera-console .society-mail-shortcut {padding:3px 5px;font-size:10px;gap:4px}body#chimera-console .society-mail-shortcut~.friends-shortcut {padding:7px 5px;font-size:10px}}
