/* guildle's styles: the world campaign (campaign.js). Everyone, while the teaser is on: Sunday's notice (a
   royal proclamation on the Quests tab, under the day) and the Herald pinned to the top of Today in guildle.
   The admin test brings its own styles with it (app/campaign/test.css). */
.cmp-banner { position: relative; display: grid; gap: 16px; margin: 0; min-width: 0; max-width: 100%; box-sizing: border-box; }
.cmp-banner[hidden] { display: none; }
.cmp-banner > * { min-width: 0; box-sizing: border-box; }
.cmp-notice-slot:empty { display: none; }

/* the Herald, pinned to the top of Today in guildle */
.cmp-herald-row { background: rgba(217, 164, 65, .08); }
.cmp-herald-row .feed-ic { color: #d9a441; }
.cmp-herald-row .feed-text { font-style: italic; font-family: var(--serif); }
.cmp-herald-row .feed-text b { font-style: normal; font-family: var(--sans); color: #d9a441; }
.cmp-herald-row.pinned { border-left: 3px solid #d9a441; }
.cmp-pin { display: inline-block; margin-right: 6px; padding: 1px 5px; border: 1px solid rgba(217, 164, 65, .6); border-radius: 5px; font: 800 .58rem/1.3 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: #d9a441; vertical-align: 1px; }

/* ================================================================ Sunday's proclamation */
.cmp-proc { position: relative; width: 100%; margin: 0; box-sizing: border-box; padding: 30px 30px 26px; text-align: center; color: #2b1d0e; border-radius: 3px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 250, 235, .9), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(150, 105, 40, .18), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(150, 105, 40, .16), transparent 45%),
    linear-gradient(170deg, #f7ecd2 0%, #ecdbb4 60%, #e2cc9c 100%);
  box-shadow: inset 0 0 0 1px #9a7428, inset 0 0 0 6px #f4e6c6, inset 0 0 0 7px #b8913f, inset 0 0 40px rgba(120, 80, 20, .22), 0 14px 32px rgba(0, 0, 0, .4), 0 2px 0 rgba(0, 0, 0, .2); }
.pc-corner { position: absolute; width: 40px; height: 40px; color: #9a7428; pointer-events: none; }
.pc-corner svg { width: 100%; height: 100%; display: block; }
.pc-corner.tl { left: 10px; top: 10px; }
.pc-corner.tr { right: 10px; top: 10px; transform: scaleX(-1); }
.pc-corner.bl { left: 10px; bottom: 10px; transform: scaleY(-1); }
.pc-corner.br { right: 10px; bottom: 10px; transform: scale(-1, -1); }
.pc-crown { width: 58px; margin: 0 auto 6px; filter: drop-shadow(0 2px 2px rgba(80, 50, 10, .35)); }
.pc-crown svg { display: block; width: 100%; height: auto; }
.pc-kicker { display: block; font: 800 .62rem/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; color: #8f6420; padding-left: .42em; }
.pc-title { margin: 8px 0 0; font: 400 clamp(1.5rem, 5.4vw, 2.1rem)/1.05 var(--display); letter-spacing: .03em; color: #3a2710; text-shadow: 0 1px 0 rgba(255, 248, 225, .8); }
.pc-sub { margin: 4px 0 0; font: italic 1.02rem/1.2 var(--serif); color: #6b4b1c; }
.pc-rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px auto 16px; max-width: 260px; }
.pc-rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #9a7428 30%, #9a7428 70%, transparent); }
.pc-rule b { width: 8px; height: 8px; transform: rotate(45deg); background: #b8913f; box-shadow: 0 0 0 2px #f4e6c6, 0 0 0 3px #9a7428; }
.pc-text { margin: 0 auto; max-width: 34em; font: 400 1.08rem/1.55 var(--serif); text-align: justify; hyphens: auto; text-align-last: center; color: #2b1d0e; }
.pc-cap { float: left; margin: 4px 8px 0 0; font: 400 3.3rem/.8 var(--display); color: #8a1f17; text-shadow: 1px 1px 0 rgba(184, 145, 63, .6); }
.pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 20px 18px 6px; text-align: left; }
.pc-sign { display: grid; gap: 2px; }
.pc-hand { font: italic 1.5rem/1 var(--serif); color: #2b3a66; transform: rotate(-4deg); transform-origin: left bottom; padding: 0 0 4px 4px; border-bottom: 1px solid rgba(90, 60, 20, .45); width: max-content; min-width: 130px; }
.pc-sign small { font: 700 .62rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #6b4b1c; }
.pc-seal { flex: none; position: relative; width: 68px; height: 68px; display: grid; place-items: center; transform: rotate(-12deg); margin: 0 4px -4px 0;
  border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 35% 30%, #d5493a, #9b2318 55%, #6a120b 100%);
  box-shadow: 0 0 0 3px #a52a1e, 0 0 0 5px rgba(150, 30, 20, .35), 2px 4px 8px rgba(0, 0, 0, .45), inset -3px -4px 8px rgba(0, 0, 0, .35), inset 3px 3px 6px rgba(255, 180, 160, .3); }
.pc-seal::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1.5px solid rgba(70, 8, 4, .55); box-shadow: 0 1px 0 rgba(255, 170, 150, .35); }
.pc-seal span { position: relative; font: 400 1.35rem/1 var(--display); letter-spacing: .02em; color: #7a160e; text-shadow: 0 1px 0 rgba(255, 170, 150, .45), 0 -1px 0 rgba(40, 4, 2, .6); }
@media (max-width: 560px) {
  .cmp-proc { padding: 26px 20px 22px; }
  .pc-corner { width: 30px; height: 30px; left: 8px; }
  .pc-corner.tl, .pc-corner.bl { left: 8px; } .pc-corner.tr, .pc-corner.br { left: auto; right: 8px; }
  .pc-text { font-size: 1rem; }
  .pc-cap { font-size: 2.8rem; }
  .pc-seal { width: 58px; height: 58px; }
}

/* The story's talk in the quest log (adventure.js, the world campaign): spoken lines, and an enemy's bubble
   hanging under its card (the enemies hang from the top of the screen). */
.adventure .rp-lines .log-say { font-family: var(--serif); font-style: italic; color: var(--ink); }
.adventure .rp-lines .log-say-foe { font-family: var(--serif); font-style: italic; color: #8e2019; }
.adv-foes .chat-bubble { bottom: auto; top: calc(100% + 18px); }
.adv-foes .chat-bubble::after { bottom: auto; top: -7px; }
.cmp-banner .cmp-proc { cursor: pointer; } /* tap it: the party talks it over */

/* While an event runs: a heading for it, and one for the guild's own quests below it. Every section on the
   Quests tab has the same space above its heading (the panel's 14px gap and 18px) and below it (the gap). */
.cmp-sec-head { margin: 18px 4px 0; }
.cmp-sec-head h2 small { display: block; margin-top: 2px; font: italic .95rem var(--serif); color: var(--text-dim); }
