* {
  box-sizing:border-box;
}
:root {
  color-scheme:light;
  --pink:#ff4c76;
  --pink-ink:#c92550;
  --ink:#23232b;
  --muted:#6a6a76;
  --line:#e6e6eb;
  --canvas:#f7f7f9;
  --radius:20px;
}
body {
  margin:0;
  color:var(--ink);
  background:var(--canvas);
  font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
button,input,textarea,select {
  font:inherit;
}
button,a,input,select,textarea {
  touch-action:manipulation;
}
button {
  cursor:pointer;
}
button:disabled {
  opacity:.48;
  cursor:not-allowed;
}
[hidden] {
  display:none!important;
}
a {
  color:inherit;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid #e52958;
  outline-offset:3px;
}
.skip {
  position:absolute;
  left:16px;
  top:-100px;
  z-index:50;
  background:#fff;
  padding:12px;
}
.skip:focus {
  top:8px;
}
.topbar {
  display:flex;
  align-items:center;
  gap:28px;
  justify-content:space-between;
  min-height:84px;
  padding:16px 4vw;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-size:17px;
  font-weight:800;
  white-space:nowrap;
}
.brand img {
  width:40px;
  height:40px;
  object-fit:contain;
}
.brand-detail {
  display:block;
  font-size:9px;
  letter-spacing:1.6px;
  color:var(--muted);
  margin-top:2px;
}
.topbar nav {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.topbar nav a {
  padding:9px 13px;
  text-decoration:none;
  border-radius:999px;
  font-size:12px;
  font-weight:650;
}
.topbar nav a:hover {
  background:var(--canvas);
}
.topbar nav a[aria-current] {
  background:#fff0f4;
  color:var(--pink-ink);
}
.account {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:11px;
  color:var(--muted);
}
.page {
  max-width:1460px;
  margin:auto;
  padding:44px 4vw 72px;
}
.page-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px;
}
.eyebrow {
  font-size:10px;
  letter-spacing:1.5px;
  font-weight:750;
  color:var(--muted);
  margin:0 0 8px;
}
h1 {
  font-size:clamp(32px,4vw,48px);
  line-height:1.1;
  letter-spacing:-1.8px;
  margin:0 0 12px;
}
h1 span {
  color:var(--pink);
}
.intro {
  max-width:630px;
  margin:0;
  color:var(--muted);
  font-size:15px;
}
h2 {
  font-size:24px;
  line-height:1.15;
  letter-spacing:-.7px;
  margin:0;
}
h3 {
  margin:0;
  font-size:13px;
}
.primary,.secondary,.quiet,.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 18px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:650;
  text-decoration:none;
  font-size:13px;
  white-space:nowrap;
}
.primary {
  background:var(--pink);
  color:#25131a;
}
.primary:hover:not(:disabled) {
  background:#ff6a8d;
}
.secondary {
  background:#fff;
  border-color:var(--line);
  color:var(--ink);
}
.secondary:hover:not(:disabled) {
  background:#f4f4f7;
}
.quiet {
  background:transparent;
  font-size:11px;
  padding:6px;
  min-height:36px;
}
.notice {
  padding:17px 20px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
  margin:0 0 20px;
}
.notice p {
  margin:5px 0;
  color:var(--muted);
}
.notice-actions {
  display:flex;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}
.notice.warning {
  background:#fff3f6;
  border-color:#f5c9d5;
  color:#9b2244;
}
.notice.success {
  background:#f0f8f4;
  border-color:#c9e4d6;
  color:#236744;
}
.summary {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-bottom:28px;
}
.summary-item {
  padding:17px 20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.summary-item strong {
  font-size:26px;
  letter-spacing:-1px;
}
.summary-item span {
  font-size:12px;
  color:var(--muted);
}
.toolbar {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}
.search-wrap {
  flex:1;
}
.search-wrap input {
  width:100%;
  padding:12px 16px;
}
.status-filter {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  color:var(--muted);
}
input,textarea,select {
  border:1px solid #dcdce3;
  border-radius:11px;
  background:#fff;
  color:var(--ink);
  min-height:44px;
  padding:10px 12px;
  max-width:100%;
}
textarea {
  resize:vertical;
}
input:read-only {
  background:#f4f4f7;
  color:var(--muted);
}
.workspace {
  display:grid;
  grid-template-columns:minmax(270px,.85fr) minmax(380px,1.15fr);
  align-items:start;
  gap:26px;
}
.library {
  min-width:0;
}
.muted {
  font-size:12px;
  color:var(--muted);
}
#list-status {
  margin:2px 0 13px;
}
.game-list {
  display:grid;
  gap:10px;
}
.game-card {
  display:flex;
  align-items:center;
  text-align:left;
  gap:16px;
  width:100%;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  color:var(--ink);
}
.game-card:hover {
  border-color:#b7b7c3;
}
.game-card[aria-pressed=true] {
  border-color:#e93460;
  box-shadow:0 0 0 2px #ff4c7612;
}
.game-art {
  height:90px;
  width:76px;
  flex-shrink:0;
  border-radius:12px;
  background:#f1f1f5;
  overflow:hidden;
  display:grid;
  place-items:center;
  color:#b5b5bf;
  font-size:24px;
}
.game-art img {
  height:100%;
  width:100%;
  object-fit:cover;
}
.game-card-copy {
  flex:1;
  min-width:0;
}
.game-title {
  display:block;
  font-weight:700;
  font-size:16px;
  margin-bottom:4px;
  overflow-wrap:anywhere;
}
.game-category {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-bottom:10px;
}
.badges {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.badge {
  font-size:10px;
  font-weight:650;
  border-radius:999px;
  padding:4px 8px;
  background:#f0f0f4;
  color:#5f5f70;
  display:inline-block;
}
.badge-live {
  background:#eaf5ee;
  color:#256d45;
}
.badge-coming_soon {
  background:#fff0f4;
  color:#bb2d52;
}
.badge-featured {
  background:#f1f2f5;
  color:#484955;
}
.empty-list {
  padding:36px 24px;
  border:1px dashed #d6d6de;
  border-radius:18px;
  text-align:center;
  background:#fff;
  color:var(--muted);
}
.editor {
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 8px 36px #20202f04;
}
.editor-empty {
  padding:100px 38px;
  text-align:center;
}
.editor-empty p {
  color:var(--muted);
  max-width:290px;
  margin:14px auto;
}
.empty-symbol {
  color:var(--pink);
  font-size:42px;
  margin-bottom:18px;
}
#game-form {
  padding:27px;
}
.editor-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:24px;
  overflow-wrap:anywhere;
}
.editor-head .muted {
  max-width:140px;
  text-align:right;
}
fieldset {
  border:0;
  padding:0;
  margin:0;
  min-width:0;
}
.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-bottom:18px;
}
.field label {
  font-size:12px;
  font-weight:650;
}
.required {
  color:var(--pink-ink);
}
.field small {
  font-size:11px;
  color:var(--muted);
  line-height:1.5;
}
.field-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.field-error {
  font-size:11px;
  color:#b42348;
}
.field-error:empty {
  display:none;
}
[aria-invalid=true] {
  border-color:#c92550;
}
.advanced {
  border-top:1px solid var(--line);
  padding-top:14px;
  margin:0 0 20px;
}
.advanced summary {
  font-weight:650;
  font-size:12px;
  cursor:pointer;
  margin-bottom:15px;
}
.publish-settings {
  background:#f8f8fa;
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  margin:7px 0 24px;
}
.checkbox {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
}
.checkbox input {
  width:18px;
  height:18px;
  min-height:18px;
  accent-color:var(--pink-ink);
}
.preview-section {
  margin:0 0 23px;
}
.section-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}
.section-label span {
  font-size:10px;
  color:var(--muted);
}
.preview-card {
  display:flex;
  align-items:center;
  gap:18px;
  padding:16px;
  background:#f7f7f9;
  border-radius:16px;
}
.preview-art {
  width:96px;
  height:118px;
  flex-shrink:0;
  overflow:hidden;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#ededf2;
  font-size:36px;
  color:#b8b8c5;
}
.preview-art img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.preview-copy {
  min-width:0;
  overflow-wrap:anywhere;
}
.preview-copy h3 {
  font-size:20px;
  letter-spacing:-.5px;
}
.preview-copy p {
  font-size:12px;
  color:var(--muted);
  margin:7px 0 12px;
}
.preview-note,.save-note {
  font-size:11px;
  color:var(--muted);
  margin:12px 0 0;
}
.text-link {
  display:inline-block;
  color:var(--pink-ink);
  font-weight:650;
  font-size:11px;
  margin-top:10px;
  text-underline-offset:3px;
}
.reward-policy {
  padding:17px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin-bottom:22px;
}
.reward-policy p {
  color:var(--muted);
  font-size:11px;
  line-height:1.7;
  margin:7px 0 0;
}
.save-bar {
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
#load-latest {
  margin:0 0 20px;
}
@media(max-width:1000px) {
  .topbar {
    gap:14px;
    flex-wrap:wrap;
  }
  .account {
    margin-left:auto;
  }
  .topbar nav {
    order:3;
    width:100%;
  }
  .page {
    padding-top:28px;
  }
  .workspace {
    gap:18px;
    grid-template-columns:minmax(230px,.8fr) minmax(350px,1.2fr);
  }
  .game-art {
    width:58px;
    height:74px;
  }
  .game-card {
    gap:11px;
  }
  .game-title {
    font-size:14px;
  }
}
@media(max-width:720px) {
  .page {
    padding:25px 18px 50px;
  }
  .topbar {
    padding:14px 18px;
  }
  .account #user-email {
    display:none;
  }
  .topbar nav {
    gap:0;
    justify-content:space-between;
  }
  .topbar nav a {
    padding:8px 10px;
  }
  .page-head {
    align-items:flex-start;
  }
  .page-head .primary {
    padding:9px 12px;
    font-size:12px;
  }
  .intro {
    font-size:13px;
  }
  .summary {
    grid-template-columns:repeat(2,1fr);
    gap:9px;
    margin-bottom:20px;
  }
  .summary-item {
    padding:12px 15px;
  }
  .summary-item strong {
    font-size:23px;
  }
  .toolbar {
    flex-wrap:wrap;
    gap:9px;
  }
  .search-wrap {
    flex-basis:100%;
  }
  .status-filter {
    flex:1;
  }
  .status-filter select {
    flex:1;
  }
  .workspace {
    grid-template-columns:1fr;
  }
  .game-list {
    max-height:430px;
    overflow:auto;
    padding:2px;
  }
  .game-art {
    width:58px;
    height:66px;
  }
  .editor-empty {
    padding:42px 25px;
  }
  #game-form {
    padding:21px;
  }
  .field-row {
    gap:12px;
  }
  .editor-head {
    align-items:flex-start;
  }
  .editor-head h2 {
    font-size:23px;
  }
  .editor-head .muted {
    font-size:10px;
  }
  .preview-art {
    width:74px;
    height:94px;
  }
  .preview-copy h3 {
    font-size:18px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
  }
}
