html.account-overlay-open { overflow: hidden; }
.account-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(470px, calc(100vw - 28px));
  height: min(var(--account-height, 485px), calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 28px;
  background: linear-gradient(320deg, rgba(55, 55, 55, .42), rgba(18, 18, 18, .55));
  backdrop-filter: blur(32px) saturate(130%);
  -webkit-backdrop-filter: blur(32px) saturate(130%);
  color: #fff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .13);
  transition: height 220ms cubic-bezier(.22, 1, .36, 1);
}
.account-dialog[open] { animation: account-dialog-in 260ms cubic-bezier(.22, 1, .36, 1) backwards; }
.account-dialog::backdrop {
  background: rgba(7, 7, 9, .54);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: account-backdrop-in 220ms ease both;
}
.account-dialog[data-closing] {
  animation: account-dialog-out 170ms cubic-bezier(.4, 0, 1, 1) forwards;
  pointer-events: none;
}
.account-dialog[data-closing]::backdrop { animation: account-backdrop-out 170ms ease forwards; }

@keyframes account-dialog-in {
  from { opacity: 0; transform: translate3d(var(--account-x, 0px), var(--account-y, 12px), 0) scale(.955); }
  to { opacity: 1; transform: none; }
}
@keyframes account-dialog-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translate3d(var(--account-x, 0px), var(--account-y, 10px), 0) scale(.965); }
}
@keyframes account-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes account-backdrop-out { from { opacity: 1; } to { opacity: 0; } }

.account-dialog .account-dialog-close {
  position: sticky;
  float: right;
  inset: 14px 14px auto auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 14px 14px -48px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .065);
  color: rgba(235, 235, 240, .72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 160ms cubic-bezier(.22, 1, .36, 1);
}
.account-dialog .account-dialog-close svg { display: block; }
.account-dialog .account-dialog-close:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .16);
  transform: scale(1.05);
}
.account-dialog .account-dialog-close:active { transform: scale(.93); }
.account-dialog .account-dialog-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 0 12px rgba(255, 255, 255, .14);
}
.account-dialog-content { box-sizing: border-box; width: 100%; padding: 35px clamp(23px, calc(13% - 27px), 34px) 30px; }
.account-dialog-content header { padding-inline-end: 44px; }

@media (max-width: 520px) {
  .account-dialog { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .account-dialog[open], .account-dialog[data-closing], .account-dialog::backdrop { animation: none; transition: none; }
}

.website-account-dialog {
  --account-pad-x: clamp(24px, 6.5vw, 34px);
  --account-pad-top: 32px;
  --account-pad-bottom: 28px;
  color-scheme: dark;
  scrollbar-width: none;
  outline: none;
}
.website-account-dialog:focus,
.website-account-dialog:focus-visible { outline: none; }
.website-account-dialog::backdrop {
  background: rgba(7, 7, 9, .34);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.website-account-dialog .account-dialog-close {
  position: absolute;
  inset: calc(var(--account-pad-top) - 2px) var(--account-pad-x) auto auto;
  margin: 0;
}
.website-account-dialog::-webkit-scrollbar { display: none; }
.website-account-content { padding: var(--account-pad-top) var(--account-pad-x) var(--account-pad-bottom); }
.website-account-content header { padding-inline-end: 0; }
.website-account-content header .eyebrow,
.website-account-content header h2 { padding-inline-end: 44px; }
.website-account-content .eyebrow {
  margin: 0;
  color: rgba(235, 235, 240, .5);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.website-account-content h2 {
  margin: 6px 0 0;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.website-account-content header > p:last-child {
  margin: 6px 0 0;
  color: rgba(235, 235, 240, .58);
  font-size: 13px;
  line-height: 1.5;
}
.website-account-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.website-account-form:not([data-mode="login"]) { gap: 11px; margin-top: 18px; }
.website-account-field { display: grid; gap: 6px; min-width: 0; }
.website-account-field label {
  color: rgba(245, 245, 247, .82);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}
.website-account-input {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 200ms cubic-bezier(.22, 1, .36, 1);
}
.website-account-input:hover {
  background: rgba(255, 255, 255, .068);
  border-color: rgba(255, 255, 255, .13);
}
.website-account-input:focus-within {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .078);
  box-shadow: 0 0 14px -2px rgba(255, 255, 255, .085), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.website-account-input input {
  box-sizing: border-box;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: inherit;
  outline: none;
  background: transparent;
  color: #f5f5f7;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
}
.website-account-input input::placeholder {
  color: rgba(235, 235, 240, .34);
  font-size: 14px;
}
.website-account-input button,
.website-account-link {
  border: 0;
  background: transparent;
  color: rgba(245, 245, 247, .78);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.website-account-input [data-toggle-password] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin-right: 5px;
  padding: 0;
  border-radius: 10px;
  color: rgba(235, 235, 240, .48);
  transition: color 160ms ease, transform 120ms ease;
}
.website-account-input [data-toggle-password]:hover { color: #f5f5f7; }
.website-account-input [data-toggle-password]:active { transform: scale(.92); }
.website-account-input [data-send-code] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 14px;
  color: rgba(245, 245, 247, .9);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: color 160ms ease, opacity 160ms ease;
}
.website-account-input [data-send-code]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, .12);
}
.website-account-input [data-send-code]:hover:not(:disabled) { color: #fff; }
.website-account-input [data-send-code]:disabled { color: rgba(235, 235, 240, .38); opacity: 1; }
.website-account-input svg { display: block; }
.website-account-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
  margin-top: -2px;
}
.website-account-remember label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(235, 235, 240, .6);
  font-size: 12.5px;
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
  transition: color 160ms ease;
}
.website-account-remember label:hover { color: rgba(245, 245, 247, .88); }
.website-account-terms {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(235, 235, 240, .56);
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.website-account-remember input, .website-account-terms input {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin: 0;
  accent-color: #f5f5f7;
  cursor: pointer;
}
.website-account-terms a {
  color: rgba(245, 245, 247, .88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .24);
  margin-inline: 3px;
  transition: color 150ms ease, border-color 150ms ease;
}
.website-account-terms a:hover { color: #fff; border-bottom-color: #fff; }
.website-account-link {
  padding: 0;
  color: rgba(235, 235, 240, .54);
  line-height: 1.3;
  text-decoration: none;
  transition: color 160ms ease;
}
.website-account-link:hover { color: #fff; }
.website-account-actions { display: flex; gap: 10px; margin-top: 2px; }
.website-account-submit, .website-account-back {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 200ms ease, transform 140ms cubic-bezier(.22, 1, .36, 1), opacity 160ms ease;
}
.website-account-submit {
  flex: 1;
  background: #f5f5f7;
  color: #111113;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
}
.website-account-submit:hover:not(:disabled) {
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, .12);
}
.website-account-submit:active:not(:disabled) { transform: scale(.985); }
.website-account-back {
  padding: 0 18px;
  background: rgba(255, 255, 255, .07);
  color: rgba(245, 245, 247, .88);
  font-size: 14px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.website-account-back:hover:not(:disabled) {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.website-account-form button:disabled { opacity: .5; cursor: default; }
.website-account-message, .website-account-social-notice {
  margin: 0;
  color: #ff9187;
  font-size: 12px;
  line-height: 1.45;
}
.website-account-message:empty, .website-account-social-notice:empty { display: none; }
.website-account-message[data-tone="success"] { color: #8ee5a3; }
.website-account-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 20px;
  color: rgba(235, 235, 240, .5);
  font-size: 12.5px;
  line-height: 1.3;
}
.website-account-footer .website-account-link {
  color: #f5f5f7;
  font-weight: 500;
}
.website-account-footer .website-account-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.website-account-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: rgba(235, 235, 240, .38);
  font-size: 11.5px;
}
.website-account-divider::before, .website-account-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .085);
}
.website-account-social { display: flex; justify-content: center; gap: 28px; }
.website-account-social > div {
  display: grid;
  justify-items: center;
  width: 64px;
  gap: 7px;
  color: rgba(235, 235, 240, .54);
  font-size: 11px;
  line-height: 1.2;
}
.website-account-social a, .website-account-social button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  cursor: pointer;
  transition: background 180ms ease, box-shadow 200ms ease, transform 180ms cubic-bezier(.22, 1, .36, 1);
}
.website-account-social :is(a, button):hover {
  background: rgba(255, 255, 255, .11);
  box-shadow: 0 0 14px rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .18);
  transform: translateY(-1px) scale(1.04);
}
.website-account-social :is(a, button):active { transform: scale(.94); }
.website-account-social img { width: 22px; height: 22px; object-fit: contain; display: block; }
.website-account-social-notice {
  margin-top: 10px;
  text-align: center;
  color: rgba(235, 235, 240, .74);
}
.website-account-link:focus-visible,
.website-account-input button:focus-visible,
.website-account-submit:focus-visible,
.website-account-back:focus-visible,
.website-account-social :is(a, button):focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .24), 0 0 12px rgba(255, 255, 255, .12);
}
.website-account-steps { display: grid; gap: 6px; margin-bottom: 2px; }
.website-account-segments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.website-account-segments i {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}
.website-account-segments i.active { background: var(--segment-color, rgba(245, 245, 247, .85)); }
.website-account-step-meta, .website-account-strength {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(235, 235, 240, .58);
  font-size: 11.5px;
}
.website-account-strength[hidden] { display: none; }
.website-account-strength .website-account-segments { flex: 1; }
.website-account-strength[data-score="1"] { --segment-color: #ff9187; }
.website-account-strength[data-score="2"] { --segment-color: #f5c156; }
.website-account-strength[data-score="3"] { --segment-color: #64d2ff; }
.website-account-strength[data-score="4"] { --segment-color: #5cd67a; }
.website-account-strength span { color: var(--segment-color); }
.website-account-hint {
  margin: 0;
  color: rgba(235, 235, 240, .62);
  font-size: 12px;
  line-height: 1.45;
}
.website-account-avatar-stage { display: grid; justify-items: center; gap: 10px; padding: 8px 0; text-align: center; }
.website-account-avatar {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font: inherit;
  font-size: 28px;
}
button.website-account-avatar { cursor: pointer; }
.website-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.website-account-review {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  padding: 12px;
}
.website-account-review dl {
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  font-size: 12px;
}
.website-account-review dt { color: rgba(235, 235, 240, .58); }
.website-account-review dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .website-account-dialog {
    --account-pad-x: 24px;
    --account-pad-top: 28px;
    --account-pad-bottom: 24px;
  }
  .website-account-input input { font-size: 16px; }
  .website-account-social { gap: 24px; }
}
@media (max-height: 680px) {
  .website-account-dialog {
    --account-pad-top: 24px;
    --account-pad-bottom: 20px;
  }
  .website-account-form { margin-top: 16px; }
  .website-account-input { min-height: 42px; }
  .website-account-input input { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .website-account-input,
  .website-account-submit,
  .website-account-back,
  .website-account-social a,
  .website-account-social button { transition: none; }
}

.studio-news-grid[hidden], .post-article[hidden], .post-related-section[hidden], .news-hero-stage[hidden] { display: none; }
.website-content-status { padding-block: 32px; color: rgba(245, 245, 247, .58); font-size: 14px; }

.website-account-stage.is-entering {
  animation: websiteAccountStageIn 200ms cubic-bezier(.22, 1, .36, 1) backwards;
}
@keyframes websiteAccountStageIn {
  from { opacity: 0; transform: translate3d(0, 6px, 0); }
  to { opacity: 1; transform: none; }
}

.website-content-revealed {
  animation: websiteContentReveal 220ms cubic-bezier(.22, 1, .36, 1) backwards;
}
@keyframes websiteContentReveal {
  from { opacity: 0; transform: translate3d(0, 6px, 0); }
  to { opacity: 1; transform: none; }
}

/* Lightweight dark-graphite shimmer skeletons matching real page geometry 1:1 (zero CLS) */
@keyframes webSkelSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.web-skel-box {
  border-radius: 8px;
  background-color: rgba(255, 255, 255, .055);
  background-image: linear-gradient(105deg, transparent 24%, rgba(255, 255, 255, .115) 48%, transparent 72%);
  background-size: 220% 100%;
  animation: webSkelSweep 1.65s cubic-bezier(.4, 0, .2, 1) infinite;
}
.web-skel-fill { width: 100%; height: 100%; border-radius: inherit; }
.web-skel-static { pointer-events: none; cursor: default; animation: none !important; }
.website-news-skeleton-wrap {
  margin: 0;
  padding: 0;
  text-align: left;
  color: inherit;
}
.web-skel-feature-inner { display: flex; flex-direction: column; height: 100%; }
.web-skel-meta { width: 112px; height: 12px; border-radius: 5px; }
.web-skel-meta-sm { width: 82px; height: 11px; border-radius: 5px; }
.web-skel-feature-title { width: 86%; height: clamp(24px, 3vw, 40px); margin-top: 12px; border-radius: 8px; }
.web-skel-feature-title-sm { width: 58%; height: clamp(22px, 2.6vw, 34px); margin-top: 10px; border-radius: 8px; }
.web-skel-line { width: 92%; height: 14px; border-radius: 5px; }
.web-skel-line-short { width: 68%; height: 14px; margin-top: 8px; border-radius: 5px; }
.web-skel-date { width: 76px; height: 11px; margin-top: auto; padding-top: 0; border-radius: 4px; }
.web-skel-feature-inner .web-skel-date { margin-top: 18px; }

.web-skel-list-card {
  display: grid;
  grid-template-columns: minmax(0, 43%) minmax(0, 1fr);
  height: 100%;
  min-height: var(--news-row-height, clamp(84px, 9vw, 132px));
  overflow: hidden;
  border-radius: 8px;
}
.web-skel-list-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  align-self: center;
  border-radius: 8px;
}
.web-skel-row-title { width: 90%; height: 17px; margin-top: 8px; border-radius: 6px; }
.web-skel-row-title-sm { width: 62%; height: 15px; margin-top: 6px; border-radius: 5px; }
.web-skel-more { pointer-events: none; }
.web-skel-more-label { display: inline-block; width: 92px; height: 13px; border-radius: 5px; }

.web-skel-hero-title { width: min(460px, 84%); height: clamp(34px, 4.2vw, 56px); border-radius: 10px; }
.web-skel-hero-title-sm { width: min(320px, 62%); height: clamp(32px, 3.8vw, 50px); margin-top: 10px; border-radius: 10px; }
.web-skel-pill-cta { width: 132px; height: 40px; margin-top: 28px; border-radius: 999px; }
.web-skel-bento-title-lg { width: 84%; height: 24px; border-radius: 7px; }
.web-skel-bento-title { width: 86%; height: 19px; border-radius: 6px; }
.web-skel-bento-title-sm { width: 56%; height: 18px; margin-top: 8px; border-radius: 6px; }

.website-post-skeleton { margin: 0; padding: 0 0 64px; text-align: left; }
.web-skel-post-media {
  position: relative;
  z-index: 1;
  width: min(100%, 1160px);
  height: 100%;
  border-radius: 0;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .68) 8%, #000 18%, #000 82%, rgba(0, 0, 0, .68) 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .68) 8%, #000 18%, #000 82%, rgba(0, 0, 0, .68) 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
.web-skel-post-header { display: grid; gap: 14px; padding: clamp(24px, 3.5vw, 40px) 0 28px; }
.web-skel-post-title { width: 78%; height: clamp(28px, 3.8vw, 44px); border-radius: 9px; }
.web-skel-post-title-sm { width: 52%; height: clamp(24px, 3vw, 36px); border-radius: 8px; }
.web-skel-post-body { display: grid; gap: 14px; padding-bottom: 40px; }
.web-skel-post-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.web-skel-pager-card { height: 78px; border-radius: 12px; }

@media (max-width: 720px) {
  .web-skel-list-card {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 84px;
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .web-skel-list-thumb {
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
  }
  .web-skel-post-pager {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .web-skel-box,
  .website-account-stage.is-entering,
  .website-content-revealed {
    animation: none !important;
    background-image: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 100%) {
    .content-surface .games-header, .content-surface .studio-news-cover {
      animation: officialSectionArrival linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}
@keyframes officialSectionArrival {
  from { translate: 0 16px; opacity: .85; }
  to { translate: 0 0; opacity: 1; }
}
