.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html.has-radar-dialog { overflow: hidden; }

/* Header command center */
.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-command,
.header-watchlist {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 11px;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.header-command:hover,
.header-watchlist:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.055);
  transform: translateY(-1px);
}
.header-command > span { color: var(--accent); font-size: 17px; line-height: 1; transform: rotate(-13deg); }
.header-command b,
.header-watchlist b { font-weight: 660; white-space: nowrap; }
.header-command kbd {
  border: 1px solid var(--line);
  border-bottom-color: rgba(255,255,255,.22);
  border-radius: 6px;
  color: var(--dim);
  background: rgba(0,0,0,.22);
  padding: 2px 5px;
  font: 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.header-watchlist > span { color: var(--accent); font-size: 15px; }
.header-watchlist > i {
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 99px;
  color: #12170b;
  background: var(--accent);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

/* Actions available on every game surface */
.game-card,
.upcoming-card,
.event-row,
.release-row,
.community-row { position: relative; }
.game-quick-actions {
  position: absolute;
  z-index: 8;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .18s ease, transform .18s ease;
}
.game-card:hover > .game-quick-actions,
.upcoming-card:hover > .game-quick-actions,
.event-row:hover > .game-quick-actions,
.release-row:hover > .game-quick-actions,
.community-row:hover > .game-quick-actions,
.game-quick-actions:focus-within,
.game-quick-actions:has(.is-watched) {
  opacity: 1;
  transform: translateY(0);
}
.game-action {
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  color: #f2f4f7;
  background: rgba(6,8,12,.78);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.game-action:hover,
.game-action:focus-visible {
  color: var(--accent);
  border-color: rgba(182,255,59,.46);
  background: rgba(10,13,18,.94);
  transform: translateY(-1px);
  outline: none;
}
.game-action.is-watched {
  color: var(--accent);
  border-color: rgba(182,255,59,.38);
  background: rgba(25,34,15,.88);
}
.game-action-icon { font-size: 15px; line-height: 1; }
.game-action-label { display: none; font-size: 10px; font-weight: 680; white-space: nowrap; }
.game-action.action-label-visible .game-action-label { display: inline; }
.event-row .event-content,
.release-row .release-main,
.community-row .community-main { padding-right: 78px; }
.detail-personal-actions {
  position: static;
  opacity: 1;
  transform: none;
  flex-wrap: wrap;
}
.detail-personal-actions .game-action {
  min-height: 43px;
  height: 43px;
  border-radius: 11px;
  color: var(--text);
  background: var(--panel);
  box-shadow: none;
}
.detail-personal-actions .game-action:hover { color: var(--accent); }
.detail-personal-actions .game-action-label { display: inline; }
.detail-actions { flex-wrap: wrap; }
.detail-actions .detail-personal-actions { order: 2; }
.detail-actions .detail-price { margin-left: auto; }

/* Shared dialogs */
.radar-dialog {
  width: min(calc(100vw - 30px), 900px);
  max-width: none;
  max-height: min(88vh, 900px);
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  overflow: visible;
}
.radar-dialog::backdrop {
  background: rgba(2,4,8,.76);
  backdrop-filter: blur(9px) saturate(.8);
}
.radar-dialog[open] { animation: radar-dialog-in .18s ease both; }
@keyframes radar-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dialog-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 0, rgba(169,124,255,.13), transparent 24rem),
    linear-gradient(150deg, rgba(20,25,36,.985), rgba(10,13,20,.99));
  box-shadow: 0 45px 130px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.04);
}
.dialog-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 21px;
  line-height: 1;
}
.dialog-close:hover,
.dialog-close:focus-visible { color: var(--text); border-color: var(--line-strong); outline: none; }
.dialog-loading,
.dialog-error {
  min-height: 170px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 40px;
  color: var(--muted);
  text-align: center;
}
.dialog-loading i {
  width: 25px;
  height: 25px;
  border: 2px solid rgba(255,255,255,.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: radar-spin .7s linear infinite;
}
@keyframes radar-spin { to { transform: rotate(360deg); } }
.dialog-loading span,
.dialog-error p { color: var(--muted); font-size: 11px; }
.dialog-error > span { color: var(--accent); font-size: 30px; }
.dialog-error h3 { margin: 0; }
.dialog-error p { margin: 0; }

/* Ctrl+K command palette */
.command-palette { width: min(calc(100vw - 30px), 760px); }
.command-surface { max-height: min(80vh, 720px); display: flex; flex-direction: column; }
.command-search-row {
  min-height: 70px;
  padding: 12px 14px 12px 20px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.command-search-row > span { color: var(--accent); font-size: 25px; transform: rotate(-14deg); }
.command-search-row input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 18px;
  letter-spacing: -.015em;
}
.command-search-row input::placeholder { color: #69717e; }
.command-search-row > kbd,
.command-footer kbd {
  border: 1px solid var(--line);
  border-bottom-color: rgba(255,255,255,.21);
  border-radius: 6px;
  color: var(--dim);
  background: rgba(0,0,0,.22);
  padding: 3px 6px;
  font: 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.command-context {
  padding: 12px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.command-context strong { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.command-context span { color: var(--dim); font-size: 9px; text-align: right; }
.command-results {
  min-height: 180px;
  max-height: min(56vh, 510px);
  overflow-y: auto;
  padding: 8px 10px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.command-result {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 5px;
  transition: background .14s ease, border-color .14s ease;
}
.command-result + .command-result { margin-top: 3px; }
.command-result.is-selected {
  border-color: rgba(182,255,59,.18);
  background: rgba(182,255,59,.055);
}
.command-result-main {
  min-width: 0;
  border: 0;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 82px minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 6px;
  color: var(--text);
  background: transparent;
  text-align: left;
}
.command-poster {
  position: relative;
  width: 82px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #242b3b, #111620);
}
.command-poster img,
.personal-poster img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.personal-poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.18);
  font-weight: 820;
  letter-spacing: -.08em;
}
.command-result-copy { min-width: 0; display: grid; gap: 4px; }
.command-result-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.command-result-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 9px; }
.command-result-score { width: 48px; display: grid; justify-items: end; }
.command-result-score b { font-size: 16px; }
.command-result-score small { color: var(--accent); font-size: 6px; letter-spacing: .1em; }
.command-watch {
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255,255,255,.025);
}
.command-watch:hover,
.command-watch.is-watched { color: var(--accent); border-color: rgba(182,255,59,.32); }
.command-watch .game-action-label { display: none; }
.command-empty {
  min-height: 190px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 36px 20px;
  text-align: center;
}
.command-empty > span { color: var(--accent); font-size: 27px; }
.command-empty strong { font-size: 15px; }
.command-empty p { max-width: 420px; margin: 0; color: var(--muted); font-size: 10px; }
.command-empty .primary-button { margin-top: 8px; font-size: 10px; }
.command-footer {
  min-height: 45px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 8px;
}
.command-footer span { display: inline-flex; align-items: center; gap: 5px; }
.command-footer b { color: var(--accent); }

/* Watchlist */
.watchlist-dialog { width: min(calc(100vw - 30px), 920px); }
.watchlist-surface { max-height: min(88vh, 860px); display: flex; flex-direction: column; }
.watchlist-header { padding: 27px 28px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.watchlist-header h2 { margin: 5px 0 4px; font-size: 31px; letter-spacing: -.04em; }
.watchlist-header p { margin: 0; color: var(--muted); font-size: 10px; }
.watchlist-toolbar { padding: 10px 28px; display: flex; flex-wrap: wrap; gap: 7px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); }
.watchlist-toolbar button,
.watch-card-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.02);
  padding: 7px 9px;
  font-size: 8px;
}
.watchlist-toolbar button:hover,
.watch-card-action:hover { color: var(--text); border-color: var(--line-strong); }
.watchlist-body { min-height: 250px; overflow-y: auto; padding: 14px 16px 18px; }
.watch-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}
.watch-card + .watch-card { margin-top: 8px; }
.watch-card.is-unread { border-color: rgba(182,255,59,.28); background: rgba(182,255,59,.035); }
.watch-card-media { min-width: 0; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: transparent; }
.watch-poster { position: relative; width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: linear-gradient(145deg,#242b3b,#111620); }
.watch-card-body { min-width: 0; padding: 3px 4px 2px 0; display: flex; flex-direction: column; }
.watch-card-heading { min-width: 0; display: flex; align-items: center; gap: 8px; }
.watch-card-heading button { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; padding: 0; color: var(--text); background: transparent; text-align: left; font-size: 15px; font-weight: 700; }
.watch-card-heading button:hover { color: var(--accent); }
.watch-card-heading span { flex: 0 0 auto; border-radius: 5px; padding: 3px 6px; color: #11170b; background: var(--accent); font-size: 7px; font-weight: 850; letter-spacing: .08em; }
.watch-card-body > p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.watch-card-actions { margin-top: auto; display: flex; align-items: center; gap: 7px; }
.watch-card-actions > a { color: var(--accent); font-size: 9px; margin-right: auto; }
.watch-card-actions .game-action-label { display: none; }

/* Release journey */
.release-journey { padding-bottom: 44px; }
.journey-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:16px; }
.journey-heading-copy { min-width:0; }
.journey-heading .eyebrow { margin-bottom:6px; }
.journey-heading h2 { margin:0; font-size:22px; line-height:1.15; letter-spacing:-.02em; }
.journey-heading p { max-width:680px; margin:6px 0 0; color:var(--muted); font-size:10px; line-height:1.45; }
.journey-summary { flex:0 0 auto; display:flex; align-items:baseline; gap:10px; white-space:nowrap; }
.journey-summary strong { font-size:10px; }
.journey-summary span { color:var(--dim); font-size:8px; }
.journey-track { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.journey-stage { min-width:0; min-height:164px; display:flex; flex-direction:column; padding:14px; border:1px solid var(--line); border-radius:12px; background:rgba(15,19,28,.58); }
.journey-stage-head { display:grid; grid-template-columns:30px minmax(0,1fr) auto; align-items:start; gap:9px; }
.journey-step { width:30px; height:30px; display:grid; place-items:center; border:1px solid var(--line-strong); border-radius:8px; color:var(--muted); font-size:8px; font-weight:800; letter-spacing:.06em; }
.journey-stage-head small { display:block; margin:1px 0 3px; color:var(--dim); font-size:6px; font-weight:760; letter-spacing:.09em; }
.journey-stage-head h3 { margin:0; font-size:13px; line-height:1.15; letter-spacing:-.015em; }
.journey-state { margin-top:1px; border:1px solid var(--line); border-radius:99px; padding:3px 6px; color:var(--dim); font-size:6px; line-height:1; text-transform:uppercase; }
.journey-stage > p { margin:12px 0 14px; color:var(--muted); font-size:9px; line-height:1.5; }
.journey-stage-foot { margin-top:auto; padding-top:10px; border-top:1px solid var(--line); }
.journey-stage-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.journey-stage-meta time, .journey-stage-meta span { color:var(--dim); font-size:7px; }
.journey-stage-meta b { color:var(--blue); font-size:7px; }
.journey-source-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.journey-source-list a, .journey-source-list span { color:var(--muted); font-size:8px; text-decoration:none; }
.journey-source-list a:hover { color:var(--text); }
.journey-stage.is-confirmed .journey-step { color:var(--text); border-color:rgba(86,200,255,.34); background:rgba(86,200,255,.06); }
.journey-stage.is-optional { opacity:.72; background:rgba(15,19,28,.38); }
.journey-stage.is-optional .journey-state { color:var(--dim); }
.journey-stage[data-journey-stage="public"] { border-color:rgba(85,232,158,.22); }
.journey-stage[data-journey-stage="public"] .journey-step { color:var(--green); border-color:rgba(85,232,158,.32); background:rgba(85,232,158,.05); }
.journey-stage[data-journey-stage="public"] .journey-state { color:var(--green); border-color:rgba(85,232,158,.18); }


@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 10px; }
  .header-command { display: none; }
  .header-watchlist b { display: none; }
  .header-watchlist { min-width: 42px; justify-content: center; padding-inline: 8px; }
  .journey-track { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .header-tools { margin-left: auto; }
  .header-watchlist > span { display: none; }
  .site-header { grid-template-columns: 1fr auto auto; }
  .game-quick-actions { opacity: 1; transform: none; }
  .event-row .event-content,
  .release-row .release-main,
  .community-row .community-main { padding-right: 0; }
  .event-row > .game-quick-actions,
  .release-row > .game-quick-actions,
  .community-row > .game-quick-actions { top: 8px; right: 8px; }
  .radar-dialog { width: min(calc(100vw - 14px), 900px); max-height: 94vh; }
  .dialog-surface { border-radius: 17px; }
  .command-search-row { min-height: 62px; grid-template-columns: auto minmax(0,1fr) auto; padding-left: 14px; }
  .command-search-row > kbd { display: none; }
  .command-context { align-items: flex-start; flex-direction: column; gap: 4px; }
  .command-context span { text-align: left; }
  .command-result-main { grid-template-columns: 68px minmax(0,1fr); gap: 10px; }
  .command-poster { width: 68px; }
  .command-result-score { display: none; }
  .command-footer { overflow-x: auto; gap: 13px; white-space: nowrap; }
  .watchlist-header { padding: 21px 18px 16px; }
  .watchlist-toolbar { padding-inline: 18px; }
  .watchlist-body { padding: 10px; }
  .watch-card { grid-template-columns: 105px minmax(0,1fr); gap: 10px; }
  .watch-card-actions { flex-wrap: wrap; }
  .release-journey { padding-bottom: 32px; }
  .journey-heading { align-items:flex-start; flex-direction:column; gap:10px; }
  .journey-summary { white-space:normal; }
  .journey-track { grid-template-columns:1fr; }
  .journey-stage { min-height:0; }
}

@media (max-width: 430px) {
  .header-watchlist { min-width: 38px; height: 36px; }
  .header-watchlist > i { min-width: 19px; height: 19px; }
  .game-action { min-width: 32px; height: 32px; padding-inline: 8px; }
  .detail-personal-actions { width: 100%; }
  .detail-personal-actions .game-action { flex: 1 1 auto; }
  .detail-actions .detail-price { width: 100%; margin-left: 0; }
  .command-result { grid-template-columns: minmax(0,1fr) 36px; }
  .command-watch { width: 36px; height: 36px; }
  .command-footer span:nth-child(n+3) { display: none; }
  .watch-card { grid-template-columns: 82px minmax(0,1fr); }
  .watch-card-heading button { font-size: 13px; }
  .watch-card-body > p { font-size: 8px; }
  .watch-card-actions .watch-card-action { padding: 6px; }
}

@media (hover: none), (pointer: coarse) {
  .game-quick-actions { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .radar-dialog[open],
  .dialog-loading i { animation: none; }
  .game-quick-actions,
  .game-action,
}
