/* Read surface: inherit the game's dark surfaces, warm text and gold controls. */
body.entry-shell > #player-changelog[open]:not(#game-entry-overlay):not(#hero-selection-modal):not(#game-session-frame) { display: flex !important; }
#player-changelog:not([open]) { display: none !important; }
#player-changelog {
  position: fixed; inset: 0; margin: auto; padding: 0; box-sizing: border-box;
  width: min(920px, calc(100% - 32px - var(--rd-safe-area-left) - var(--rd-safe-area-right)));
  height: min(640px, calc(100% - 24px - var(--rd-safe-area-top) - var(--rd-safe-area-bottom)));
  max-width: none; max-height: none; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid #927447; border-radius: 8px; background: #151c20; color: #eee4cd;
  font: 15px/1.7 'Microsoft YaHei', system-ui, sans-serif; user-select: text;
}
#player-changelog::backdrop { background: #050b10dc; }
.player-changelog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 16px; border-bottom: 1px solid #4b4537; }
.player-changelog-header h2 { margin: 0; color: #edcd83; font-size: 20px; }
#player-changelog button { min-height: 44px; padding: 8px 14px; border: 1px solid #8d784c; border-radius: 6px; background: #302c21; color: #f3e8ca; font: inherit; cursor: pointer; touch-action: manipulation; }
#player-changelog button:hover { background: #45402d; }
#player-changelog :focus-visible { outline: 2px solid #ffe2a0; outline-offset: -3px; }
.player-changelog-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 0; flex: 1; }
#player-changelog nav { overflow-y: auto; padding: 12px; border-right: 1px solid #4b4537; background: #11191b; }
#player-changelog nav button { display: block; width: 100%; margin-bottom: 10px; text-align: left; border-color: transparent; background: transparent; }
#player-changelog nav button[aria-current="true"] { border-color: #b99b5b; background: #393224; }
#player-changelog nav span { display: block; }
#player-changelog nav span:first-child { color: #edcd83; font-weight: bold; font-variant-numeric: tabular-nums; }
#player-changelog nav span + span { margin-top: 4px; font-size: 12px; line-height: 1.6; }
#player-changelog article { overflow-y: auto; min-width: 0; padding: 20px 24px 28px; touch-action: pan-y; overscroll-behavior: contain; }
#player-changelog time { color: #c7bd9f; font-size: 13px; font-variant-numeric: tabular-nums; }
#player-changelog h3 { margin: 4px 0 20px; color: #f6e6b9; font-size: 20px; line-height: 1.5; text-wrap: balance; }
#player-changelog ul { max-width: 70ch; margin: 0; padding-left: 1.3em; }
#player-changelog li { padding-left: 4px; margin-bottom: 14px; overflow-wrap: anywhere; }
#player-changelog li::marker { color: #c2a365; }
#player-changelog ::selection { background: #796336; color: #fff3d1; }
#player-changelog :is(nav, article) { scrollbar-width: thin; scrollbar-color: #927447 #11191b; }
#game-entry-overlay [data-player-changelog] { min-width: 120px; min-height: 44px; margin-top: 8px; padding: 6px 14px; background: #22312c; border-color: #6e8069; font-weight: normal; }
#fullscreen-controls > [data-player-changelog] { min-height: 44px; margin-left: 6px; padding: 6px 10px; border: 1px solid #927447; border-radius: 6px; background: #201a13; color: #f0dfbb; font: inherit; cursor: pointer; }
body.mobile-layout #fullscreen-controls > [data-player-changelog] { display: none; }
@media (max-height: 500px) {
  .player-changelog-layout { grid-template-columns: 164px minmax(0, 1fr); }
  #player-changelog article { padding: 12px 20px 20px; }
  #player-changelog h3 { margin-bottom: 14px; font-size: 19px; }
}
