.updates-document { scroll-behavior: auto; }
.updates-page { --update-card-inset: 40px; }
.updates-page .page-shell { max-width: 1240px; }
.updates-page .page-hero.compact { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 4px 0 30px; }
.updates-page .page-hero h1 { font-size: clamp(2.5rem, 4.5vw, 3.6rem); margin: 9px 0 0; }
.updates-page .page-hero > p { margin: 0 0 4px; color: #b1bed0; font-size: .95rem; line-height: 1.65; }
.update-kicker { color: var(--v-accent); font-size: .69rem; font-weight: 750; letter-spacing: .15em; }
.updates-categories { display: flex; gap: 8px; border-bottom: 1px solid var(--v-line); margin: 0 0 32px; }
.updates-categories a { position: relative; display: inline-flex; min-height: 48px; align-items: center; padding: 12px 18px 17px; color: #aab9cb; font-weight: 650; font-size: .94rem; }
.updates-categories a:hover { color: white; background: #101c2b; }
.updates-categories a[aria-current="page"] { color: var(--v-accent); }
.updates-categories a[aria-current="page"]::after { content: ""; position: absolute; bottom: -1px; left: 18px; right: 18px; height: 3px; border-radius: 4px 4px 0 0; background: var(--v-accent); }
.updates-panel[hidden], .updates-page [hidden] { display: none !important; }
.updates-page .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.update-feature { border: 1px solid #2a3a4e; border-radius: 20px; background: #0d1623; overflow: clip; scroll-margin-top: 90px; }
.update-feature-header { padding: 36px var(--update-card-inset) 0; background: radial-gradient(ellipse at top right, #18354388, transparent 60%); }
.update-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: #b2bfd0; font-size: .8rem; }
.update-badge { border: 1px solid #69563a; background: #332c22; padding: 4px 10px; border-radius: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .03em; color: #f4d29b; }
.update-feature h2 { font-size: clamp(2rem, 3.9vw, 3.15rem); line-height: 1.12; letter-spacing: -.045em; margin: 22px 0 16px; max-width: 820px; }
.update-intro { max-width: 710px; font-size: 1rem; color: #bbc8d8; line-height: 1.75; margin: 0 0 28px; }
.release-status-strip { display: grid; grid-template-columns: 1.15fr 1fr 1fr; border-top: 1px solid #2b3b4d; border-bottom: 1px solid #2b3b4d; }
.release-status-strip > div { padding: 20px 22px; border-left: 1px solid #2b3b4d; }
.release-status-strip > div:first-child { border: 0; padding-left: 0; }
.release-status-strip > div:last-child { padding-right: 0; }
.status-label { display: flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; }
.status-label i { height: 6px; width: 6px; border-radius: 50%; background: currentColor; }
.status-label.live { color: #8de5ba; }
.status-label.testing { color: #f4d29b; }
.status-label.waiting { color: #b6c5ed; }
.release-status-strip p { margin: 7px 0 0; color: #b1bfd0; font-size: .8rem; line-height: 1.6; }
.update-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 40px; padding: 0 var(--update-card-inset) 36px; }
#latest-main-update > .release-changes { padding-inline: var(--update-card-inset); }
#latest-main-update > .release-changes > .button { margin-top: 20px; max-width: 100%; }
.update-contents { padding-top: 36px; }
.update-contents nav { position: sticky; top: 100px; }
.update-contents nav > p { color: #a5b8cd; font-size: .65rem; letter-spacing: .1em; font-weight: 700; margin: 0 0 15px 10px; }
.update-contents a { display: flex; align-items: center; gap: 12px; min-height: 43px; color: #b3c1d3; padding: 9px 10px; font-size: .78rem; border-radius: 6px; }
.update-contents a > span { color: #6e849d; font-size: .65rem; font-variant-numeric: tabular-nums; }
.update-contents a:hover { background: #18283a; color: var(--v-accent); }
.update-contents a.contents-all-games { margin-top: 20px; border-top: 1px solid #29384c; border-radius: 0; padding-top: 20px; color: var(--v-accent); line-height: 1.6; }
.update-body { min-width: 0; }
.update-section { border-bottom: 1px solid #263549; padding: 36px 0; scroll-margin-top: 98px; }
.section-label { display: flex; align-items: center; gap: 12px; color: #92abc4; font-size: .64rem; letter-spacing: .09em; font-weight: 700; margin: 0 0 9px; }
.section-label > span { color: var(--v-accent); font-variant-numeric: tabular-nums; }
.update-section h3 { font-size: 1.45rem; line-height: 1.3; letter-spacing: -.03em; margin: 0 0 18px; }
.update-section p { color: #b7c5d7; font-size: .91rem; line-height: 1.8; margin: 0 0 16px; }
.update-body a:not(.error-table a) { color: var(--v-accent); text-decoration: underline; text-underline-offset: 3px; }
.change-list { padding-left: 19px; margin: 0; color: #c0ccdc; font-size: .9rem; line-height: 1.8; }
.change-list li { padding-left: 4px; margin: 10px 0; }
.change-list li::marker { color: #6292b5; }
.update-table-wrap { max-width: 100%; border: 1px solid #2b3c51; border-radius: 10px; overflow: auto; background: #101c2b; }
.update-table { width: 100%; border-collapse: collapse; font-size: .83rem; line-height: 1.65; }
.update-table caption { text-align: left; padding: 15px 18px; font-size: .75rem; font-weight: 650; color: #bed1e4; background: #142336; }
.update-table th, .update-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid #29394d; overflow-wrap: anywhere; }
.update-table thead th { font-size: .66rem; color: #a9bdd4; text-transform: uppercase; letter-spacing: .07em; background: #0c1725; }
.update-table tbody th { color: #e3edf9; font-weight: 600; }
.update-table td { color: #b8c7d9; }
.update-table tbody tr:nth-child(even) { background: #122031; }
.game-improvements tbody th { width: 32%; }
.privacy-note { margin-top: 24px; padding: 22px; border-left: 2px solid #578d9d; background: #11202b; border-radius: 0 10px 10px 0; }
.privacy-note h4 { margin: 0 0 12px; font-size: .98rem; letter-spacing: -.01em; }
.privacy-note p.small-note { font-size: .76rem; margin: 14px 0 0; }
.retention-table td { white-space: nowrap; }
.code-reference { margin-top: 24px; border: 1px solid #354d68; border-radius: 10px; background: #101d2d; scroll-margin-top: 98px; }
.code-reference summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px; color: #eef5ff; font-weight: 650; cursor: pointer; list-style: none; }
.code-reference summary::-webkit-details-marker { display: none; }
.code-reference summary small { display: block; margin-top: 5px; color: #a5b9d0; font-size: .75rem; font-weight: 400; }
.details-icon { font-weight: 400; font-size: 1.65rem; color: var(--v-accent); transition: transform .15s; }
.code-reference[open] .details-icon { transform: rotate(45deg); }
.code-reference-body { padding: 0 20px 20px; }
.code-filter label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 8px; color: #d7e4f2; }
.code-filter input { width: 100%; min-height: 46px; padding: 12px 14px; border: 1px solid #49627e; border-radius: 7px; background: #0a1421; color: #eef5ff; font: inherit; font-size: .83rem; }
.code-filter input::placeholder { color: #a3b6cd; opacity: 1; }
.code-filter p { margin: 10px 0 14px; font-size: .74rem; }
.error-table { min-width: 580px; font-size: .76rem; }
.error-table th, .error-table td { padding: 12px; }
.error-table tbody th { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .73rem; }
.error-table tbody th a { color: #8bdeed; text-decoration: none; }
.error-table tbody tr { scroll-margin-top: 100px; }
.error-table tbody tr:target { outline: 2px solid var(--v-accent); outline-offset: -2px; background: #20394b; }
.code-reference #error-code-empty { margin: 14px 0 0; font-size: .8rem; }
.update-endnote { padding-top: 22px; margin: 0; font-size: .78rem; color: #a5b7cd; line-height: 1.75; }
.update-archive { margin-top: 45px; padding: 30px 0 0; border-top: 1px solid #2b3b50; max-width: 850px; scroll-margin-top: 100px; }
.update-archive time { color: #a9bcd3; font-size: .8rem; }
.update-archive h2 { font-size: 1.65rem; margin: 14px 0 22px; }
.update-archive p, .update-archive li { color: #b9c7d8; font-size: .9rem; line-height: 1.85; }
.update-archive p { margin: 16px 0; }
.update-archive li { margin: 10px 0; }
.update-archive a { color: var(--v-accent); }
.update-archive .archive-followup { border-left: 2px solid #4e809a; padding: 8px 0 8px 18px; }
#game-updates > header h2 { font-size: 1.8rem; margin: 0 0 10px; }
#game-updates > header p { color: #b1c1d5; margin: 0 0 25px; }
#release-status:empty { display: none; }
.updates-page :where(summary, .update-table-wrap):focus-visible { outline: 3px solid var(--v-accent); outline-offset: 4px; }
.updates-page :where(a, input, summary, .update-table-wrap) { -webkit-tap-highlight-color: #79e1ef22; }
@media (max-width: 1000px) {
    .updates-page { --update-card-inset: 28px; }
    .update-feature-header { padding-block: 30px 0; }
    .update-layout { grid-template-columns: 175px minmax(0, 1fr); padding-block-end: 30px; gap: 28px; }
    .update-contents a { font-size: .72rem; gap: 9px; padding-left: 5px; }
}
@media (max-width: 760px) {
    .updates-page .page-hero.compact { align-items: start; flex-direction: column; gap: 16px; padding-bottom: 20px; }
    .updates-page .page-hero > p br { display: none; }
    .update-layout { display: block; }
    .update-contents { padding-top: 22px; border-bottom: 1px solid #2b3b4d; }
    .update-contents nav { position: static; }
    .update-contents nav > p { margin-left: 0; }
    .update-contents a { display: inline-flex; font-size: .75rem; padding: 8px 10px 8px 0; margin-right: 8px; }
    .update-contents a.contents-all-games { display: none; }
    .update-section { padding: 28px 0; }
    .release-status-strip { grid-template-columns: 1fr; padding: 6px 0; }
    .release-status-strip > div, .release-status-strip > div:first-child { padding: 13px 0; border: 0; }
    .release-status-strip > div + div { border-top: 1px solid #233447; }
    .release-status-strip p { margin-top: 4px; }
    .desktop-break { display: none; }
}
@media (max-width: 480px) {
    .updates-page .page-shell { width: calc(100% - 28px); padding-top: 28px; }
    .updates-categories { margin-bottom: 22px; }
    .updates-categories a { padding-inline: 14px; }
    .update-feature { border-radius: 13px; }
    .updates-page { --update-card-inset: 17px; }
    .update-feature-header { padding-block: 22px 0; }
    .update-feature h2 { font-size: 1.9rem; }
    .update-intro { font-size: .9rem; }
    .update-layout { padding-block-end: 24px; }
    .update-section h3 { font-size: 1.3rem; }
    .update-section p, .change-list { font-size: .86rem; }
    .update-table { font-size: .76rem; }
    .update-table th, .update-table td { padding: 12px 10px; }
    .update-table caption { padding: 12px 10px; }
    .game-improvements tbody th { width: 36%; }
    .privacy-note { padding: 16px 12px; }
    .retention-table { font-size: .72rem; }
    .code-reference summary { padding: 16px 12px; }
    .code-reference-body { padding: 0 12px 16px; }
    .code-filter input { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .details-icon { transition: none; }
}

/* Update types and reading order. Scoped to the existing update-log page. */
.updates-page { --change-added: #8de5b6; --change-changed: #f5d17e; --change-removed: #ffaaaa; }
.updates-page .update-feature-header { padding-bottom: 4px; }
.updates-page .update-feature h2 { max-width: none; margin-top: 20px; }
.updates-page .update-intro { max-width: 760px; margin-bottom: 26px; }
.updates-page .release-status-strip { grid-template-columns: 1fr 1fr; }
.updates-page .release-status-strip > div { padding-block: 18px; }
.change-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 20px 0; }
.change-tag { display: inline-flex; width: fit-content; align-items: center; justify-content: center; min-height: 25px; padding: 3px 9px; border-radius: 5px; border: 1px solid; font-size: .67rem; font-weight: 750; line-height: 1.4; white-space: nowrap; letter-spacing: .015em; }
.change-tag.added { color: var(--change-added); background: #112b23; border-color: #28513f; }
.change-tag.changed { color: var(--change-changed); background: #302819; border-color: #5a482a; }
.change-tag.removed { color: var(--change-removed); background: #321e25; border-color: #60404a; }
.legend-note { color: #a8b8ca; font-size: .74rem; margin-left: 5px; }
.updates-page .update-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
.updates-page .update-contents { padding-top: 28px; }
.updates-page .update-contents nav { max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
.updates-page .update-contents a { min-height: 40px; align-items: baseline; font-size: .76rem; line-height: 1.5; }
.updates-page .update-contents a > span { flex: 0 0 15px; }
.updates-page .update-section { padding-block: 30px; }
.updates-page .section-label { gap: 10px; margin-bottom: 10px; }
.updates-page .section-label .section-status { color: #a9bbce; font-size: .66rem; letter-spacing: .04em; }
.updates-page .update-section h3 { margin-bottom: 12px; }
.updates-page .update-section h4 { font-size: 1.05rem; line-height: 1.5; margin: 26px 0 12px; color: #edf5ff; letter-spacing: -.015em; }
.updates-page .update-section > p { max-width: 74ch; }
.typed-changes { list-style: none; margin: 18px 0 0; padding: 0; }
.change-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 14px; margin: 0; padding: 12px 0; border-bottom: 1px solid #1e2c3c; font-size: .88rem; line-height: 1.75; color: #c0cede; }
.change-item:first-child { padding-top: 2px; }
.change-item:last-child { border-bottom: 0; padding-bottom: 0; }
.change-item .change-tag { margin-top: 2px; }
.change-item > span:last-child { overflow-wrap: anywhere; min-width: 0; }
.updates-page .section-note { margin: 20px 0 0; padding: 12px 15px; border-left: 2px solid #52677c; background: #111e2d; font-size: .78rem; line-height: 1.7; border-radius: 0 6px 6px 0; }
.update-subsection, .reference-block, .anchor-alias { scroll-margin-top: 100px; }
.anchor-alias { display: block; height: 0; }
.updates-page .reference-link { margin: 19px 0 0; font-size: .82rem; }
.reference-section { border-bottom: 0; }
.reference-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.update-body .reference-nav a { border: 1px solid #304257; background: #132235; padding: 9px 13px; border-radius: 6px; font-size: .77rem; text-decoration: none; }
.update-body .reference-nav a:hover { background: #1c3147; border-color: #6cb6ca; }
.reference-block { margin-top: 30px; }
.reference-block + .reference-block { padding-top: 12px; }
.updates-page .reference-block .small-note { font-size: .75rem; margin: 14px 0 0; }
.updates-page .reference-section .code-reference { margin-top: 34px; }
.updates-page .update-table-wrap { scrollbar-width: thin; scrollbar-color: #5b7895 #0f1c2c; }
.updates-page .retention-table td { white-space: normal; }
.updates-page .retention-table tbody th { width: 69%; }
.updates-page .game-improvements { min-width: 520px; }
.updates-page .update-endnote { margin-top: 10px; padding-top: 20px; border-top: 1px solid #263549; }
@media (max-width: 1000px) {
  .updates-page .update-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 26px; }
  .change-item { grid-template-columns: 66px minmax(0, 1fr); gap: 11px; }
}
@media (max-width: 760px) {
  .updates-page .update-layout { display: block; }
  .updates-page .update-contents { margin-inline: -5px; padding: 13px 0; }
  .updates-page .update-contents nav { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; max-height: none; padding: 0 5px 4px; }
  .updates-page .update-contents nav > p { display: none; }
  .updates-page .update-contents a { flex: 0 0 auto; margin: 0; padding: 8px 11px; background: #122033; border: 1px solid #263b51; gap: 7px; white-space: nowrap; }
  .updates-page .update-contents a.contents-all-games { display: none; }
  .updates-page .release-status-strip { grid-template-columns: 1fr; }
  .updates-page .release-status-strip > div { padding-block: 13px; }
  .legend-note { flex-basis: 100%; margin: 3px 0 0; }
  .updates-page .update-section { padding-block: 26px; }
}
@media (max-width: 480px) {
  .updates-page .update-feature h2 { font-size: 1.95rem; line-height: 1.17; }
  .updates-page .update-intro { line-height: 1.7; }
  .change-item { grid-template-columns: 1fr; gap: 7px; padding-block: 13px; font-size: .86rem; line-height: 1.7; }
  .change-item .change-tag { margin: 0; }
  .change-legend { gap: 7px; padding-block: 17px; }
  .change-tag { font-size: .66rem; min-height: 24px; }
  .updates-page .section-label { align-items: baseline; line-height: 1.6; }
  .updates-page .section-label .section-status { font-size: .61rem; }
  .reference-nav { gap: 7px; }
  .update-body .reference-nav a { padding: 9px 10px; font-size: .75rem; }
}
@media (forced-colors: active) {
  .change-tag { border-color: CanvasText; color: CanvasText; background: Canvas; }
}
