:root {
  color-scheme: dark;
  --sft-added: #8db7a6;
  --sft-reduced: #d99b97;
  --sft-changed: #d8b57b;
  --sft-surface: #242a2d;
  --sft-surface-strong: #242a2d;
  --sft-line: rgba(166,178,174, 0.16);
  --sft-line-strong: rgba(166,178,174, 0.28);
  --sft-service: #8db7a6;
}

* {
  box-sizing: border-box;
}

html {
  background: #191d20;
}

body.subscription-feature-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--gft-shell-bg);
  color: var(--gft-shell-text);
  font-family: var(--gft-shell-font);
  line-height: 1.4;
}

body.subscription-feature-page.service-xbox {
  --sft-service: #9bf00b;
}

body.subscription-feature-page.service-playstation {
  --sft-service: #4c8dff;
}

body.subscription-feature-page.service-nintendo {
  --sft-service: #ff5d64;
}

body.subscription-feature-page.service-geforce-now {
  --sft-service: #76b900;
}

.visually-hidden {
  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;
}

.sft-main {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
}

.sft-experience {
  width: 100%;
  min-width: 0;
}

.sft-service-tabs {
  position: sticky;
  top: 64px;
  z-index: 320;
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 62px;
  padding: 9px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--sft-line);
  background: rgba(36,42,45, 0.96);
  scrollbar-width: none;
}

.sft-service-tabs::-webkit-scrollbar {
  display: none;
}

.sft-service-picker {
  display: none;
}

.sft-service-tabs button,
.sft-latest-button,
.sft-step-button,
.sft-zoom-controls button,
.sft-dialog-close,
.sft-retry {
  min-height: 44px;
  border: 1px solid var(--sft-line);
  border-radius: 0;
  background: #242a2d;
  color: var(--gft-shell-text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0;
}

.sft-service-tabs button {
  flex: 0 0 auto;
  padding: 0 15px;
  color: var(--gft-shell-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.sft-service-tabs button:hover,
.sft-service-tabs button:focus-visible,
.sft-service-tabs button[aria-selected="true"] {
  border-color: var(--sft-service);
  color: var(--gft-shell-text);
}

.sft-service-tabs button[aria-selected="true"] {
  background: color-mix(in srgb, var(--sft-service) 10%, #242a2d);
  box-shadow: inset 0 -2px 0 var(--sft-service);
}

.sft-service-tabs button:focus-visible,
.sft-latest-button:focus-visible,
.sft-step-button:focus-visible,
.sft-zoom-controls button:focus-visible,
.sft-event-card:focus-visible,
.sft-dialog-close:focus-visible,
.sft-detail-source:focus-visible,
.sft-scrubber:focus-visible,
.sft-retry:focus-visible {
  outline: 2px solid var(--sft-service);
  outline-offset: 3px;
}

.sft-state {
  display: grid;
  place-items: center;
  min-height: 54vh;
  padding: 28px;
  color: var(--gft-shell-muted);
  text-align: center;
}

.sft-state[hidden] {
  display: none;
}

.sft-state.is-error {
  gap: 14px;
  color: var(--sft-reduced);
}

.sft-state p {
  margin: 0;
}

.sft-retry {
  padding: 0 18px;
}

.sft-timeline-panel {
  width: 100%;
  min-width: 0;
}

.sft-timeline-panel[hidden] {
  display: none;
}

.sft-timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 7px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid rgba(166,178,174, 0.08);
}

.sft-timeline-name {
  margin: 0;
  color: var(--gft-shell-muted);
  font-family: var(--gft-shell-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sft-latest-button {
  min-height: 36px;
  padding: 0 13px;
  border-color: color-mix(in srgb, var(--sft-service) 48%, transparent);
  color: var(--sft-service);
  font-family: var(--gft-shell-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.sft-latest-button:hover {
  border-color: var(--sft-service);
  background: color-mix(in srgb, var(--sft-service) 9%, #242a2d);
}

.sft-timeline-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  border-bottom: 1px solid var(--sft-line);
  background: var(--sft-surface);
}

.sft-timeline-viewport {
  position: relative;
  width: 100%;
  height: clamp(410px, calc(100svh - 286px), 620px);
  min-height: 410px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  touch-action: pan-x pinch-zoom;
  cursor: grab;
}

.sft-timeline-viewport::-webkit-scrollbar {
  display: none;
}

.sft-timeline-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.sft-timeline-track {
  position: relative;
  height: 100%;
  min-width: 100%;
}

.sft-axis {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  background: color-mix(in srgb, var(--sft-service) 52%, #2c3732);
  transform: translateY(-1px);
}

.sft-event-track {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sft-event-item {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--event-left);
  width: 1px;
  scroll-snap-align: center;
}

.sft-event-card {
  position: absolute;
  left: 50%;
  display: grid;
  align-content: start;
  gap: 8px;
  width: 220px;
  min-height: 104px;
  margin: 0;
  padding: 14px 15px;
  overflow: hidden;
  border: 1px solid var(--sft-line-strong);
  border-radius: 0;
  background: var(--sft-surface-strong);
  color: var(--gft-shell-text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transform: translateX(-50%);
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.sft-event-item.is-above .sft-event-card {
  bottom: calc(50% + 54px);
}

.sft-event-item.is-below .sft-event-card {
  top: calc(50% + 54px);
}

.sft-event-card:hover,
.sft-event-card[aria-current="true"] {
  border-color: var(--sft-service);
  background: color-mix(in srgb, var(--sft-service) 7%, var(--sft-surface-strong));
}

.sft-event-card:hover {
  transform: translateX(-50%) translateY(-2px);
}

.sft-event-card time {
  color: var(--sft-service);
  font-family: var(--gft-shell-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.sft-event-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gft-shell-text);
  font-size: 1.03rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sft-event-card .sft-announced {
  color: var(--gft-shell-muted);
  font-family: var(--gft-shell-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sft-event-item.is-future .sft-event-card {
  border-style: dashed;
}

.sft-event-connector {
  position: absolute;
  left: 0;
  width: 1px;
  background: var(--sft-line-strong);
}

.sft-event-item.is-above .sft-event-connector {
  top: calc(50% - 54px);
  height: 54px;
}

.sft-event-item.is-below .sft-event-connector {
  top: 50%;
  height: 54px;
}

.sft-event-dot {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--sft-surface);
  color: var(--sft-changed);
  font-family: var(--gft-shell-mono);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.sft-event-item.is-added .sft-event-dot {
  color: var(--sft-added);
}

.sft-event-item.is-reduced .sft-event-dot {
  color: var(--sft-reduced);
}

.sft-event-item.is-changed .sft-event-dot {
  color: var(--sft-changed);
}

.sft-event-card[aria-current="true"] + .sft-event-connector,
.sft-event-card[aria-current="true"] ~ .sft-event-dot {
  background-color: var(--sft-service);
}

.sft-event-card[aria-current="true"] ~ .sft-event-dot {
  border-color: var(--sft-service);
  color: #191d20;
}

.sft-step-button {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  border-color: var(--sft-line-strong);
  background: rgba(36,42,45, 0.92);
  color: var(--gft-shell-text);
  transform: translateY(-50%);
}

.sft-step-button span {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.sft-step-button.is-previous {
  left: 12px;
}

.sft-step-button.is-next {
  right: 12px;
}

.sft-step-button:hover:not(:disabled) {
  border-color: var(--sft-service);
  color: var(--sft-service);
}

.sft-step-button:disabled {
  opacity: 0.25;
  cursor: default;
}

.sft-timeline-navigation {
  display: grid;
  grid-template-columns: auto minmax(180px, 620px) auto;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  min-height: 68px;
  padding: 9px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid rgba(166,178,174, 0.08);
}

.sft-zoom-controls {
  display: flex;
  gap: 6px;
}

.sft-zoom-controls button {
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 40px;
  padding: 0;
  color: var(--gft-shell-muted);
}

.sft-zoom-controls button span {
  font-family: var(--gft-shell-mono);
  font-size: 1.18rem;
  line-height: 1;
}

.sft-zoom-controls button:hover:not(:disabled) {
  border-color: var(--sft-service);
  color: var(--sft-service);
}

.sft-zoom-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}

.sft-scrubber-wrap {
  min-width: 0;
}

.sft-scrubber-years {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
  color: var(--gft-shell-muted);
  font-family: var(--gft-shell-mono);
  font-size: 0.6rem;
  font-weight: 600;
}

.sft-scrubber {
  width: 100%;
  min-height: 30px;
  margin: 0;
  accent-color: var(--sft-service);
  cursor: pointer;
}

.sft-position {
  min-width: 58px;
  color: var(--gft-shell-muted);
  font-family: var(--gft-shell-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-align: right;
}

.sft-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  min-height: 38px;
  padding: 8px 16px;
  color: var(--gft-shell-muted);
  font-size: 0.68rem;
}

.sft-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sft-legend i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--gft-shell-mono);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
}

.sft-legend .is-added {
  color: var(--sft-added);
}

.sft-legend .is-reduced {
  color: var(--sft-reduced);
}

.sft-legend .is-changed {
  color: var(--sft-changed);
}

.sft-detail-dialog {
  width: min(520px, calc(100% - 32px));
  max-width: 520px;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--sft-service) 58%, var(--sft-line));
  border-radius: 0;
  background: #242a2d;
  color: var(--gft-shell-text);
}

.sft-detail-dialog::backdrop {
  background: rgba(36,42,45, 0.78);
}

.sft-detail-inner {
  position: relative;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 24px;
}

.sft-dialog-close {
  justify-self: end;
  min-height: 38px;
  padding: 0 13px;
  color: var(--gft-shell-muted);
  font-size: 0.72rem;
}

.sft-dialog-close:hover {
  border-color: var(--sft-service);
  color: var(--sft-service);
}

.sft-detail-content,
#sft-detail-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.sft-detail-date {
  margin: 0;
  color: var(--sft-service);
  font-family: var(--gft-shell-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sft-detail-dialog h2 {
  margin: 0;
  color: var(--gft-shell-text);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.sft-detail-summary {
  margin: 0;
  color: #d5ddd8;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.sft-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--gft-shell-muted);
  font-family: var(--gft-shell-mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
}

.sft-detail-meta .is-added {
  color: var(--sft-added);
}

.sft-detail-meta .is-reduced {
  color: var(--sft-reduced);
}

.sft-detail-meta .is-changed {
  color: var(--sft-changed);
}

.sft-detail-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 44px;
  max-width: 100%;
  min-width: 0;
  padding: 0 15px;
  border: 1px solid var(--sft-line-strong);
  color: var(--gft-shell-text);
  font-size: 0.78rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.sft-detail-source:hover {
  border-color: var(--sft-service);
  color: var(--sft-service);
}

.site-legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  width: 100%;
  padding: 18px 16px 22px;
  border-top: 1px solid var(--sft-line);
}

.site-legal-footer a {
  color: var(--gft-shell-muted);
  font-family: var(--gft-shell-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.site-legal-footer a:hover,
.site-legal-footer a:focus-visible {
  color: var(--sft-service);
}

@media (max-width: 768px) {
  html[data-gft-theme] body.subscription-feature-page .sft-service-tabs {
    display: none;
  }

  .sft-service-picker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--sft-line);
    background: var(--sft-surface-strong);
  }

  .sft-service-picker label {
    color: var(--gft-shell-muted);
    font-size: 0.875rem;
  }

  .sft-service-picker select {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 6px;
    border: 1px solid var(--sft-line);
    border-radius: 4px;
    background: #242a2d;
    color: var(--gft-shell-text);
    font: inherit;
    font-size: 1rem;
  }

  .sft-service-picker select:focus-visible {
    outline: 2px solid var(--sft-service);
    outline-offset: 2px;
  }

  .sft-service-tabs {
    top: 64px;
    justify-content: flex-start;
    min-height: 58px;
    padding: 7px 12px;
    scroll-snap-type: x proximity;
  }

  .sft-service-tabs button {
    min-height: 42px;
    padding: 0 13px;
    scroll-snap-align: start;
  }

  .sft-timeline-toolbar {
    min-height: 46px;
    padding: 5px 12px;
  }

  .sft-timeline-viewport {
    height: clamp(360px, calc(100svh - 320px), 470px);
    min-height: 360px;
    scroll-snap-type: x mandatory;
  }

  .sft-axis {
    top: 50%;
  }

  .sft-event-card {
    width: min(220px, calc(100vw - 84px));
    min-height: 104px;
    padding: 12px 13px;
  }

  .sft-event-item.is-above .sft-event-card {
    top: auto;
    bottom: calc(50% + 40px);
  }

  .sft-event-item.is-below .sft-event-card {
    top: calc(50% + 40px);
    bottom: auto;
  }

  .sft-event-card strong {
    font-size: 0.94rem;
  }

  .sft-event-item.is-above .sft-event-connector {
    top: calc(50% - 40px);
    height: 40px;
  }

  .sft-event-item.is-below .sft-event-connector {
    top: 50%;
    height: 40px;
  }

  .sft-event-dot {
    top: 50%;
  }

  .sft-step-button {
    top: 50%;
    width: 44px;
    height: 50px;
    min-height: 50px;
  }

  .sft-step-button.is-previous {
    left: 8px;
  }

  .sft-step-button.is-next {
    right: 8px;
  }

  .sft-timeline-navigation {
    grid-template-columns: auto minmax(100px, 1fr) auto;
    gap: 10px;
    min-height: 64px;
    padding: 7px 12px;
  }

  .sft-zoom-controls {
    gap: 4px;
  }

  .sft-zoom-controls button {
    width: 38px;
    min-height: 38px;
  }

  .sft-position {
    min-width: 48px;
    font-size: 0.64rem;
  }

  .sft-legend {
    gap: 13px;
    min-height: 36px;
    font-size: 0.64rem;
  }

  .sft-detail-dialog {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .sft-detail-inner {
    max-height: min(70svh, 560px);
    padding: 18px 18px max(22px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .sft-detail-dialog h2 {
    font-size: 1.3rem;
    line-height: 1.18;
  }

  .sft-detail-summary {
    font-size: 0.94rem;
    line-height: 1.45;
  }
}

@media (max-width: 390px) {
  .sft-service-tabs {
    top: 64px;
  }

  .sft-timeline-name {
    font-size: 0.64rem;
  }

  .sft-timeline-navigation {
    grid-template-columns: 76px minmax(90px, 1fr) 44px;
    gap: 8px;
  }

  .sft-position {
    min-width: 44px;
  }

  .sft-legend {
    justify-content: space-between;
    gap: 8px;
    padding-inline: 12px;
  }

  .site-legal-footer {
    gap: 10px 14px;
  }
}

@media (max-height: 720px) and (max-width: 768px) {
  .sft-timeline-viewport {
    height: 350px;
    min-height: 350px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sft-timeline-viewport,
  .sft-event-card {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
  }
}
