/* SkyShark platform: same look as skysharkstudios.com (see the brand guide). */
:root {
  --bg: #050507;
  --panel: #111116;
  --line: #24242c;
  --text: #ececf0;
  --muted: #9a9aa4;
  --steel: #a6a6ad;
  --red: #d8243c;
  --red-hot: #ff3550;
  --ok: #3fbf7f;
  --warn: #e0a030;
  --radius: 14px;
  --head: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--red-hot); }
h1, h2 { font-family: var(--head); line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h2 { font-size: 1.25rem; }
code, pre { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
pre { background: #0b0b10; border: 1px solid var(--line); border-radius: 10px; padding: 14px; columns: 2; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 2px; border-radius: 6px; }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px max(16px, calc((100vw - 1000px) / 2)); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--steel); font: 600 14px var(--head); letter-spacing: .2em; }
.brand b { color: var(--red); font-weight: 600; }
.badge { font-style: normal; font-size: 11px; letter-spacing: .15em; background: var(--red); color: #fff; padding: 2px 8px; border-radius: 999px; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 15px; }
.top nav a, .top .link-button { display: inline-flex; align-items: center; min-height: 44px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.link-button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.link-button:hover { color: var(--text); }

.wrap { width: min(1000px, 100%); margin: 0 auto; padding: 40px 16px 64px; flex: 1; }
.foot { text-align: center; padding: 24px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.foot a { color: var(--muted); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.card.narrow { max-width: 440px; margin: 24px auto; }
form { display: grid; gap: 8px; margin: 0 0 12px; }
form.inline { display: flex; gap: 10px; flex-wrap: wrap; }
label { font-weight: 600; font-size: 14px; margin-top: 6px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], input[inputmode], input:not([type]) {
  width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #0b0b10; color: var(--text); font: inherit;
}
form.inline input { width: auto; flex: 1; min-width: 200px; }
input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(216, 36, 60, .25); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14px var(--head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-hot); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--steel); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 12px; }
.btn:disabled { opacity: .55; cursor: progress; }
form .btn { justify-self: start; margin-top: 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.management-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }

.status { min-height: 1.6em; color: var(--muted); }
.status.error { color: var(--red-hot); }
.notice { background: rgba(216, 36, 60, .1); border: 1px solid rgba(216, 36, 60, .35); padding: 10px 14px; border-radius: 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.warn-text { color: var(--warn); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 10px; border-radius: 999px; margin-right: 6px; }
.pill.ok { background: rgba(63, 191, 127, .15); color: var(--ok); }
.pill.warn { background: rgba(224, 160, 48, .15); color: var(--warn); }
.pill.muted { background: rgba(154, 154, 164, .14); color: var(--muted); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts + .stats { margin-top: 16px; }
.game-card__head + .facts { margin-top: 16px; }
.rows { list-style: none; margin: 0 0 12px; padding: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row > div { display: grid; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.tabs a { padding: 8px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); }
.tabs a.active { color: var(--text); border-color: var(--red); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; }
.table td.actions { white-space: nowrap; }

@media (max-width: 640px) {
  .brand span { display: none; }
  pre { columns: 1; }
  .card { padding: 18px; }
}

/* Beta launcher and admin beta pages */
.game-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.game-card__head h2 { margin-bottom: 4px; }
.notes { white-space: pre-wrap; overflow-wrap: anywhere; }
details { margin: 8px 0 12px; }
summary { cursor: pointer; color: var(--steel); }
.feedback { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
textarea, select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #0b0b10; color: var(--text); font: inherit; resize: vertical; }
select { min-height: 44px; }
textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(216, 36, 60, .25); }
fieldset.checks { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; display: grid; gap: 4px; }
fieldset.checks legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.tabs.sub { margin-top: -6px; }
.feedback-item .notes { margin: 8px 0 12px; }

/* Older builds on the tester launcher */
.older-list { list-style: none; margin: 8px 0 0; padding: 0; }
.older-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line, #2a2a30); }
.older-list .notes { margin: 4px 0 0; }
@media (max-width: 640px) {
  .older-list li { flex-direction: column; }
  .older-list li > a { max-width: 100%; }
}

/* Admin build upload */
.upload-progress { width: 100%; height: 10px; margin: 10px 0 4px; accent-color: var(--red, #e0262e); }
.build-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 12px; }

/* Admin overview */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { display: grid; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); }
a.stat:hover { border-color: var(--red); }
.stat__value { font: 600 30px/1.1 var(--head); }
.stat__label { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.stat__note { color: var(--warn); font-size: 12px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 0 18px; }
.actions.spaced { margin-top: 16px; }
.nowrap { white-space: nowrap; }

/* Page status messages float in view instead of landing at the bottom of a long page. */
.wrap > .status:not(:empty) { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 10; width: max-content; max-width: calc(100vw - 32px);
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 10px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.wrap > .status.error:not(:empty) { border-left-color: var(--red-hot); color: var(--text); }
.form-status { min-height: 1.4em; margin: 6px 0 0; font-size: 14px; color: var(--ok); }
.form-status.error { color: var(--red-hot); }
.stat.plain { cursor: default; }

/* Incomplete privacy work stays readable above Users without obscuring the list. */
.privacy-result { margin-bottom: 18px; border-left: 4px solid var(--red-hot); }
.wrap > .status.privacy-status-inline:not(:empty) { position: static; transform: none; width: auto; max-width: none; }
/* Game identity: metadata alongside bounded, private image previews. */
.build-import-command { white-space: pre-wrap; overflow-wrap: anywhere; }
.branding { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.branding summary { cursor: pointer; font: 600 16px var(--head); padding: 8px 0; }
.branding-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 28px; }
.branding-grid > *, .branding-images { min-width: 0; }
.branding-images { display: grid; gap: 20px; }
.branding-upload { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.branding-upload p { margin: 4px 0; }
.branding input[type=file] { width: 100%; min-width: 0; font: inherit; font-size: 14px; }
.branding input[type=file]::file-selector-button { min-height: 44px; margin-right: 8px; }
.branding-preview { display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #24242c; }
.branding-preview--logo { min-height: 112px; padding: 8px; background: repeating-conic-gradient(#24242c 0% 25%, #34343c 0% 50%) 50% / 20px 20px; }
.branding-preview--logo img { max-height: 96px; max-width: 100%; object-fit: contain; }
.branding-preview--art { aspect-ratio: 16 / 9; }
.branding-preview--art img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 600px) { .branding-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Private library: compact branded shelves, using the shared studio tokens. */
.wrap:has(.library) { width: min(1160px, 100%); padding-top: 16px; padding-bottom: 24px; }
.library > h1 { margin-bottom: 8px; }
.library > .muted { margin: 0 0 20px; max-width: 850px; }
.library-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tile, .game-page { --accent: var(--red); min-width: 0; overflow-wrap: anywhere; }
.tile { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.tile:hover { border-color: var(--accent); }
.tile:has(.tile__link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }
.tile__link:focus-visible { outline: none; }
.tile__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.tile__body { padding: 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.tile > h2 { margin: 0; font-size: 0; height: 0; line-height: 0; }
.tile__link { font-size: 0; }
.tile__tagline { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.4; }
.tile__tagline, .game-art__name, .game-art__fallback span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile__action { margin-top: auto; }
.tile__action a { position: relative; z-index: 3; }
.tile__action > a:not(:first-child) { margin-top: 6px; }
.tile .download-info { position: absolute; top: 36px; left: 8px; right: 8px; z-index: 4; font-size: 11px; }
.tile .download-info summary { width: fit-content; padding: 1px 7px; background: #111116ed; border-radius: 6px; }
.tile .download-info[open] { background: var(--panel); padding: 8px; max-height: calc(100% - 44px); overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.tile .btn { font-size: 12px; letter-spacing: .02em; padding: 7px 12px; max-width: 100%; white-space: normal; text-align: center; }
.tile .btn:focus-visible, .game-page .btn:focus-visible { outline-color: var(--accent); }
.tile .btn.primary:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.reference-note { font-size: 11px; line-height: 1.4; margin: 7px 0 0; color: var(--muted); }
.game-art { position: relative; aspect-ratio: 16 / 9; isolation: isolate; overflow: hidden; background: #16161d; border-radius: var(--radius); }
.tile .game-art { border-radius: 13px 13px 0 0; }
.game-art__fallback { position: absolute; inset: 0; background: linear-gradient(135deg, #111116ee, #11111666), var(--accent); display: flex; align-items: center; padding: 20px; }
.game-art__fallback span { opacity: .18; font: 800 clamp(24px, 4vw, 42px)/1.05 var(--head); text-transform: uppercase; overflow-wrap: normal; word-break: keep-all; }
/* Without key art the title already sits on the tile; the oversized ghost copy broke mid-word and crowded the chips. */
.tile .game-art__fallback span { display: none; }
.game-art__fallback { background-image: linear-gradient(135deg, #111116ee 0%, #11111699 55%, #11111633 100%), radial-gradient(circle at 85% 15%, #ffffff1f, transparent 45%); }
.game-art__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-art__branding { position: absolute; inset: 0; background: linear-gradient(transparent 20%, #050507ed); display: flex; align-items: flex-end; padding: 16px; }
.game-art__name { font: 700 22px/1.1 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.game-art__logo { position: absolute; left: 16px; bottom: 16px; width: calc(100% - 32px); max-height: 65%; object-fit: contain; object-position: left bottom; background: linear-gradient(transparent, #050507); }
.game-art__branding:has(.game-art__logo[data-loaded=true]:not([hidden])) .game-art__name { visibility: hidden; }
.game-chips { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.tile__chips { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 1; }
.game-chip { background: #16161e; border: 1px solid #3b3b46; color: var(--steel); border-radius: 999px; padding: 2px 8px; font-size: 10px; line-height: 1.5; max-width: 100%; }
.library-controls { margin-bottom: 20px; display: grid; gap: 10px; }
.library-formats { display: flex; gap: 8px; flex-wrap: wrap; }
.library-formats .btn { min-height: 44px; text-transform: none; letter-spacing: 0; }
.library-formats [aria-pressed=true] { background: var(--red); border-color: var(--red); color: white; }
.library-search { max-width: 360px; }
.library-search label { display: block; margin: 0 0 4px; }
.library-controls p { margin: 0; }
.game-page > .game-art { margin: 20px 0 24px; }
.game-page > h1 { overflow-wrap: anywhere; }
.game-tagline { font-size: 20px; color: var(--steel); }
.game-page > .game-chips { margin: 16px 0; }
.game-page .game-chip { font-size: 12px; }
.game-release { margin-top: 24px; }
.game-page__action { margin-bottom: 20px; }
.game-page .reference-note { font-size: 13px; }
.game-page .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.game-page .older-list li { flex-wrap: wrap; }
.game-page .older-list li > div { min-width: 0; }
.game-page .feedback { margin-top: 32px; }
.game-page .feedback .btn { justify-self: start; }
@media (min-width: 640px) { .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  .wrap:has(.library) { width: min(1060px, 100%); padding-top: 8px; }
  .library > h1 { margin-bottom: 4px; }
  .library > .muted { margin-bottom: 8px; }
  .library > .notice { padding: 5px 12px; margin: 0 0 8px; }
  .library-grid { gap: 10px; }
  .tile__body { padding: 6px; gap: 4px; }
  .tile__action { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  /* Room for three label lines ("Download for Windows · 1000 MB"), so tile height never depends on build size. */
  .tile__action > .btn { min-height: 56px; padding: 6px; font-size: 11px; line-height: 1.25; }
  .tile__action > a:not(:first-child) { margin-top: 0; }
  /* A lone action (Play, or a reference build) fills the row at normal height instead of a narrow, tall block. */
  .tile__action > .btn:only-of-type { grid-column: 1 / -1; min-height: 44px; padding: 6px 14px; }
  .tile__action > .reference-note { grid-column: 1 / -1; margin: 0; }
}

.game-card { min-width: 0; overflow-wrap: anywhere; }
.game-card__head > div { min-width: 0; }
.checksum code { overflow-wrap: anywhere; white-space: normal; user-select: text; }
.publishing { min-width: 0; overflow-wrap: anywhere; }
.publishing-tokens { list-style: none; padding: 0; }
.publishing-tokens li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.publishing-tokens p { margin: 6px 0 0; }
.publishing input { min-width: 0; max-width: 100%; }
