:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f7f9ff;
  background: #071126;
  font-synthesis: none;
  --gold-400: #d2b06a;
  --gold-300: #e6ce95;
  --gold-200: #f2e3ba;
  --cyan-300: #aee9f7;
  --text: #f7f9ff;
  --muted: #d1d9e8;
  --muted-2: #b7c2d7;
  --shadow: 0 30px 90px rgba(1,5,18,.44);
}
* { box-sizing: border-box; }
html, body {
  min-width: 320px;
  min-height: 100%;
  background: #071126;
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 18% 2%, rgba(78,101,181,.22), transparent 34%),
    radial-gradient(ellipse at 84% 0%, rgba(83,150,184,.12), transparent 30%),
    radial-gradient(ellipse at 50% 102%, rgba(54,74,143,.10), transparent 42%),
    linear-gradient(180deg, #0c1a39 0%, #091630 44%, #061022 100%);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .67;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.88) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(174,229,247,.66) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(230,206,149,.58) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255,255,255,.28) 0 .7px, transparent 1.1px);
  background-size: 94px 94px, 137px 137px, 197px 197px, 59px 59px;
  background-position: 16px 22px, 55px 68px, 111px 33px, 31px 14px;
}
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  left: 50%;
  top: -26vh;
  width: 110vw;
  height: 68vh;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(102,112,201,.10), transparent 64%);
  filter: blur(24px);
}
.sky-haze {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 31%, rgba(146,166,226,.022) 46%, transparent 61%),
    linear-gradient(246deg, transparent 0 36%, rgba(224,205,151,.016) 52%, transparent 68%);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible,
.upload-state:focus-visible,
.platform-option input:focus-visible + span {
  outline: 3px solid rgba(174,233,247,.84);
  outline-offset: 3px;
}
.page-shell {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 76px;
  display: grid;
  gap: 26px;
}
.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17,35,72,.93), rgba(8,20,45,.96));
  border: 1px solid rgba(224,205,151,.24);
  border-radius: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(18px);
}
.hero {
  padding: 45px 46px 39px;
  border-color: rgba(224,205,151,.32);
  background:
    radial-gradient(circle at 82% -4%, rgba(105,116,198,.10), transparent 34%),
    linear-gradient(180deg, rgba(19,39,80,.95), rgba(8,20,45,.97));
}
.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: .135em;
  text-transform: uppercase;
  color: #b9e2ef;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  font-family: inherit;
  font-size: clamp(2.8rem, 5vw, 3.35rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -.028em;
  color: #fbfbf7;
}
h2 {
  margin-bottom: 0;
  font-family: inherit;
  font-size: 1.52rem;
  line-height: 1.3;
  font-weight: 720;
  color: #f7f9fd;
}
h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.28;
  font-weight: 720;
  color: #f7f9fd;
}
.support-badge {
  flex: 0 0 auto;
  min-width: 102px;
  text-align: center;
  border: 1px solid rgba(230,206,149,.48);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(179,141,72,.08);
  color: var(--gold-200);
  font-size: 1.08rem;
  font-weight: 780;
  letter-spacing: .01em;
}
.hero-divider {
  height: 1px;
  margin: 30px 0 26px;
  background: linear-gradient(90deg, rgba(230,206,149,.30), rgba(158,183,229,.15) 58%, transparent);
}
.supported-row {
  display: grid;
  grid-template-columns: 172px 1fr;
  gap: 32px;
  align-items: start;
}
.section-label {
  padding-top: 2px;
  font-size: 1rem;
  font-weight: 780;
  color: #c0cadc;
  text-transform: uppercase;
  letter-spacing: .095em;
  white-space: nowrap;
}
.dlc-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px 42px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dlc-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  gap: 10px;
  align-items: baseline;
  color: #f3f6fb;
  font-size: 1.14rem;
  font-weight: 670;
  line-height: 1.45;
}
.dlc-list li::before {
  content: "✦";
  color: var(--gold-400);
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  transform: translateY(-.02em);
}
.offline-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(158,183,229,.14);
  color: var(--gold-300);
  font-size: 1.08rem;
  line-height: 1.45;
}
.offline-note > span:first-child {
  flex: 0 0 auto;
  color: var(--gold-400);
  font-size: .96rem;
  line-height: 1;
}
.workspace-card {
  padding: 0;
  min-height: 360px;
}
.upload-state {
  min-height: 360px;
  padding: 52px 36px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  outline: none;
  transition: background .14s ease;
}
.upload-state.dragging { background: rgba(46,70,122,.20); }
.drop-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
  border: 1px solid rgba(230,206,149,.40);
  border-radius: 50%;
  color: var(--gold-200);
  font-size: 1.42rem;
}
.upload-state h2 {
  font-size: 1.65rem;
  font-weight: 720;
}
.upload-state > p {
  margin: 11px 0 24px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.5;
}
.profile-state {
  padding: 40px 44px 44px;
}
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.profile-title {
  min-width: 0;
  flex: 1 1 auto;
}
.profile-title h2 {
  font-family: inherit;
  font-size: 1.42rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  color: #f7f9fd;
}
.profile-state-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}
.state-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(166,185,227,.22);
  border-radius: 999px;
  background: rgba(13,29,60,.42);
  color: #d7dfed;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
}
.status-chip {
  border-color: rgba(174,233,247,.24);
  color: #c7edf6;
}

.id-chip {
  margin-left: 5px;
  border-color: rgba(230,206,149,.30);
  background: rgba(80,62,31,.16);
  color: #f0ddaa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.profile-details {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin: 28px 0 32px;
  border-top: 1px solid rgba(224,205,151,.17);
  border-bottom: 1px solid rgba(224,205,151,.17);
}
.detail-item {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 17px 0 18px;
  border-bottom: 1px solid rgba(158,183,229,.11);
}
.detail-item:not(.detail-right):not(.detail-wide) { padding-right: 28px; }
.detail-right {
  padding-left: 28px;
  border-left: 1px solid rgba(158,183,229,.11);
}
.detail-last { border-bottom: 0; }
.detail-label {
  color: #b9c5da;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.detail-value {
  min-width: 0;
  color: #f4f6fb;
  font-size: 1.09rem;
  font-weight: 650;
  line-height: 1.45;
}

.platform-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
.platform-fieldset legend {
  padding: 0;
  margin-bottom: 13px;
  color: #d7deeb;
  font-size: 1.08rem;
  font-weight: 730;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 13px;
}
.platform-option {
  display: block;
  min-width: 0;
  cursor: pointer;
}
.platform-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.platform-option span {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border: 1px solid rgba(166,185,227,.23);
  border-radius: 12px;
  background: rgba(17,35,71,.38);
  color: #e9edf6;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.platform-option:hover span { border-color: rgba(208,194,156,.38); }
.platform-option input:checked + span {
  border-color: rgba(230,206,149,.72);
  color: #fff2d1;
  background: rgba(33,47,82,.48);
}
.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 11px;
  min-height: 50px;
  padding: 12px 19px;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 740;
  letter-spacing: .005em;
  transition: border-color .14s ease, background .14s ease, transform .14s ease, opacity .14s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled {
  cursor: default;
  opacity: .56;
}
.button.primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(232,210,154,.72);
  background:
    radial-gradient(circle at 50% -45%, rgba(214,228,255,.22), transparent 53%),
    linear-gradient(135deg, rgba(37,55,105,.98) 0%, rgba(58,73,132,.98) 48%, rgba(31,48,94,.99) 100%);
  color: #fff7e4;
  text-shadow: 0 1px 0 rgba(0,0,0,.20);
  box-shadow:
    0 12px 30px rgba(3,9,28,.28),
    0 0 28px rgba(112,142,218,.10),
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(5,10,26,.30);
}
.button.primary::before {
  content: "✦";
  display: inline-block;
  margin-right: .62em;
  color: #f0d99e;
  font-size: .92em;
  transform: translateY(-.02em);
}
.button.primary::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 24%, rgba(255,255,255,.09) 45%, transparent 66%);
  transform: translateX(-52%);
  transition: transform .32s ease;
}
.button.primary:hover:not(:disabled) {
  border-color: rgba(242,222,169,.92);
  background:
    radial-gradient(circle at 50% -45%, rgba(221,234,255,.27), transparent 53%),
    linear-gradient(135deg, rgba(42,62,118,.99) 0%, rgba(66,83,148,.99) 48%, rgba(35,54,104,1) 100%);
  box-shadow:
    0 14px 34px rgba(3,9,28,.32),
    0 0 34px rgba(126,158,231,.16),
    inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -1px 0 rgba(5,10,26,.30);
}
.button.primary:hover:not(:disabled)::after { transform: translateX(52%); }
.button.secondary {
  border-color: rgba(176,195,232,.26);
  background: rgba(35,55,99,.74);
  color: #f0f4fc;
}
.button.secondary:hover:not(:disabled) {
  border-color: rgba(230,206,149,.42);
  background: rgba(41,63,111,.84);
}
.button.ghost {
  border-color: rgba(176,195,232,.20);
  background: transparent;
  color: #d7dfed;
}
.button.ghost:hover:not(:disabled) {
  border-color: rgba(230,206,149,.38);
  color: #f0e4c4;
}
.button.compact {
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 1.02rem;
}
.button.wide {
  width: 100%;
  min-height: 66px;
  border-radius: 14px;
  font-size: 1.16rem;
  letter-spacing: .012em;
}
.patch-result {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid rgba(224,205,151,.16);
}
.result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.result-platform {
  margin: 12px 0 17px;
  color: var(--muted);
  font-size: 1.05rem;
}
.result-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px 30px;
}
.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 11px 0;
  border-top: 1px solid rgba(158,183,229,.09);
}
.result-item:nth-child(-n+2) { border-top: 0; }
.result-name {
  min-width: 0;
  color: #f1f4f9;
  font-size: 1.06rem;
  font-weight: 660;
  line-height: 1.4;
}
.result-badge {
  flex: 0 0 auto;
  color: #e2d3a3;
  font-size: 1rem;
  font-weight: 740;
}
.result-badge.existing { color: #b7c2d6; }
.result-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.inline-error {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(218,108,112,.24);
  color: #e8b9bd;
  font-size: 1.02rem;
  line-height: 1.55;
}
.inline-error strong {
  color: #f4cfd2;
  font-size: 1.08rem;
}
.hidden { display: none !important; }
@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 22px, 980px);
    padding: 24px 0 50px;
    gap: 19px;
  }
  .hero { padding: 32px 25px 30px; }
  .profile-state { padding: 30px 25px 34px; }
  .title-row { gap: 16px; }
  h1 { font-size: clamp(2.4rem, 10vw, 2.9rem); }
  .supported-row { grid-template-columns: 1fr; gap: 15px; }
  .dlc-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 20px; }
  .workspace-card, .upload-state { min-height: 330px; }
  .upload-state { padding: 42px 24px 40px; }
  .profile-details { grid-template-columns: 1fr; }
  .detail-item,
  .detail-item:not(.detail-wide),
  .detail-right,
  .detail-wide {
    grid-column: 1;
    padding: 15px 0 16px;
    border-left: 0;
  }
  .detail-last { border-bottom: 0; }
  .result-list { grid-template-columns: 1fr; }
  .result-item:nth-child(2) { border-top: 1px solid rgba(158,183,229,.09); }
  .support-badge { min-width: auto; padding: 9px 12px; }
}
@media (max-width: 560px) {
  .platform-grid { grid-template-columns: 1fr; }
  .dlc-list { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .title-row, .section-heading, .result-heading { align-items: stretch; }
  .support-badge { align-self: flex-start; }
  .button.compact { flex: 0 0 auto; }
}
