/* Public journal: the Wiki owns the rendered changelog inside the reader. */
:root {
  --aoy-journal-ink: #ebf5fc;
  --aoy-journal-muted: #b8c7d3;
  --aoy-journal-surface: #101214;
  --aoy-journal-accent: #80c9e8;
  --aoy-journal-border: #80c9e84d;
}
html:is([data-aoy-color-scheme="light"], :not(.dark):not([data-aoy-color-scheme])) {
  --aoy-journal-ink: #18384c;
  --aoy-journal-muted: #526d7e;
  --aoy-journal-surface: #f6fbfe;
  --aoy-journal-accent: #357f9e;
  --aoy-journal-border: #357f9e4d;
}
html[data-aoy-time="halloween"] {
  --aoy-journal-accent: #ffb655;
  --aoy-journal-border: #d494534d;
}
html[data-aoy-time="halloween"]:is([data-aoy-color-scheme="light"], :not(.dark):not([data-aoy-color-scheme])) {
  --aoy-journal-accent: #a95316;
}
body:has(.aoy-patch-notes-cta) { --aoy-floating-extra-cta-height: 62px; }
.snsArea.snsArea--global { display: flex !important; flex-direction: column; align-items: center; gap: 12px; }
.snsArea.snsArea--global .bannerIcon.aoy-patch-notes-cta {
  display: block; width: 50px !important; max-width: 50px !important; height: 50px !important; padding: 0;
  border: 0; border-radius: 0; background: transparent !important; box-shadow: none;
  line-height: 0; cursor: pointer; pointer-events: auto;
  margin-inline: auto !important;
  animation: none;
  filter: drop-shadow(0 14px 24px #0005);
  transition: transform .25s ease, filter .25s ease, opacity .25s ease;
}
.aoy-patch-notes-cta__art { display: grid; place-items: center; width: 50px; height: 50px; }
.snsArea.snsArea--global .bannerIcon.aoy-patch-notes-cta img.aoy-patch-notes-cta__icon { width: 50px !important; max-width: 50px !important; height: 50px !important; object-fit: contain; }
.snsArea.snsArea--global .aoy-patch-notes-cta:is(:focus, :focus-visible) { outline: 0; box-shadow: none; }
@media (hover: hover) { .snsArea.snsArea--global .bannerIcon.aoy-patch-notes-cta:is(:hover, :focus-visible) { transform: translateY(-3px) scale(1.03); filter: drop-shadow(0 18px 28px #0006); } }
.aoy-patch-notes-modal { position: fixed; inset: 0; z-index: 2147483500; display: grid; place-items: center; padding: 24px; }
.aoy-patch-notes-modal[hidden] { display: none !important; }
.aoy-patch-notes-modal__backdrop { position: absolute; inset: 0; background: #000b; backdrop-filter: blur(8px); }
.aoy-patch-notes-modal__dialog {
  position: relative; display: flex; flex-direction: column; box-sizing: border-box; padding-left: 230px;
  width: min(1120px, 100%); height: min(880px, calc(100dvh - 48px)); min-height: 0;
  overflow: hidden; border: 1px solid var(--aoy-journal-border); border-radius: 18px;
  background: var(--aoy-journal-surface); color: var(--aoy-journal-ink); box-shadow: 0 26px 90px #0008;
}
.aoy-patch-notes-modal__art-panel { position: absolute; inset: 0 auto 0 0; width: 230px; overflow: hidden; border-right: 1px solid var(--aoy-journal-border); }
.aoy-patch-notes-modal__art-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--aoy-journal-surface)), linear-gradient(0deg, #0005, transparent 60%); }
.aoy-patch-notes-modal__art { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 38% center; }
.aoy-patch-notes-modal__header { position: relative; isolation: isolate; display: flex; align-items: center; gap: 14px; flex: none; min-height: 110px; padding: 22px 70px 22px 26px; overflow: hidden; border-bottom: 1px solid var(--aoy-journal-border); }
.aoy-patch-notes-modal__icon { width: 44px; height: 44px; flex: none; object-fit: contain; }
.aoy-patch-notes-modal__header small { display: block; color: var(--aoy-journal-accent); font: 800 10px/1.5 Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.aoy-patch-notes-modal__header h2 { margin: 2px 0 4px; color: var(--aoy-journal-ink) !important; -webkit-text-fill-color: currentColor !important; font: 700 clamp(24px, 3vw, 32px)/1.2 Georgia, serif; }
.aoy-patch-notes-modal__header p { margin: 0; color: var(--aoy-journal-muted); font: 12px/1.5 Arial, sans-serif; }
.aoy-patch-notes-modal__close { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.aoy-patch-notes-modal__close img { width: 34px; height: 34px; object-fit: contain; }
.aoy-patch-notes-modal .aoy-patch-notes-modal__close:is(:focus, :focus-visible, :active) { outline: 0 !important; box-shadow: none !important; }
.aoy-patch-notes-modal__close img { transition: transform 320ms ease; transform-origin: center; }
.aoy-patch-notes-modal__close:is(:hover, :focus-visible) img { transform: scale(1.3) rotate(360deg); }
@media (prefers-reduced-motion: reduce) { .snsArea.snsArea--global .bannerIcon.aoy-patch-notes-cta, .aoy-patch-notes-modal__close img { transition: none; animation: none; } .snsArea.snsArea--global .bannerIcon.aoy-patch-notes-cta:is(:hover, :focus-visible), .aoy-patch-notes-modal__close:is(:hover, :focus-visible) img { transform: none; } }
.aoy-patch-notes-modal__reader { position: relative; flex: 1 1 auto; min-height: 0; }
.aoy-patch-notes-modal__frame { display: block; width: 100%; height: 100%; border: 0; background: var(--aoy-journal-surface); }
.aoy-patch-notes-modal__loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--aoy-journal-surface); color: var(--aoy-journal-muted); pointer-events: none; }
.aoy-patch-notes-modal__loading[hidden] { display: none; }
.aoy-patch-notes-modal__footer { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 22px; border-top: 1px solid var(--aoy-journal-border); color: var(--aoy-journal-muted); font: 11px/1.4 Arial, sans-serif; }
.aoy-patch-notes-modal__footer a { color: var(--aoy-journal-accent); text-decoration: none; font-weight: 700; }
.aoy-patch-notes-modal__footer a:hover { text-decoration: underline; }
.aoy-patch-notes-modal__footer > span { color: var(--aoy-journal-muted) !important; -webkit-text-fill-color: currentColor !important; }
@media (max-width: 640px) {
  .aoy-patch-notes-modal { padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); }
  .aoy-patch-notes-modal__dialog { height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding-left: 0; border-radius: 12px; }
  .aoy-patch-notes-modal__art-panel { inset: 0 0 auto; width: 100%; height: 135px; border-right: 0; }
  .aoy-patch-notes-modal__art-panel::after { background: linear-gradient(90deg, var(--aoy-journal-surface), transparent 160%), linear-gradient(0deg, var(--aoy-journal-surface), transparent 150%); }
  .aoy-patch-notes-modal__art { object-position: center 42%; }
  .aoy-patch-notes-modal__header { gap: 10px; min-height: 96px; padding: 18px 54px 18px 16px; }
  .aoy-patch-notes-modal__icon { width: 34px; height: 34px; }
  .aoy-patch-notes-modal__footer { padding: 10px 14px; }
}
