.dev-page {
  display: block;
  padding: 96px 24px 72px;
}

.dev {
  width: min(42rem, 100%);
  margin: 0 auto;
}

.dev-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.dev-back:hover {
  color: var(--fg);
}

.dev-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
}

.dev-lead {
  margin: 0 0 2rem;
  color: var(--muted);
}

.dev-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.dev-list li {
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.dev-item-title {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.dev-cta-row {
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dev-cta {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  background: rgb(79 140 255 / 16%);
  border: 1px solid rgb(79 140 255 / 45%);
  border-radius: 10px;
}

.dev-cta:hover {
  background: rgb(79 140 255 / 26%);
}

.upload-step {
  margin: 0 0 1rem;
}

.upload-step[hidden] {
  display: none;
}

.upload-step-title {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.dev-cta--ghost {
  background: none;
  border-color: var(--border);
  color: var(--muted);
  font-weight: 500;
}

.dev-cta--ghost:hover {
  background: rgb(255 255 255 / 4%);
  color: var(--fg);
}

.upload-form {
  margin: 0 0 1.5rem;
}

.upload-form fieldset {
  margin: 0;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.upload-form fieldset:disabled,
.upload-form fieldset[disabled] {
  opacity: 0.55;
}

.upload-form label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.upload-form input[type="text"],
.upload-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--fg);
  background: #0f1419;
  border: 1px solid var(--border);
  border-radius: 10px;
  resize: vertical;
}

.upload-form input[type="file"] {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.upload-form button {
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--fg);
  cursor: pointer;
  background: rgb(79 140 255 / 16%);
  border: 1px solid rgb(79 140 255 / 45%);
  border-radius: 10px;
}

.upload-form button:disabled {
  cursor: not-allowed;
}

.dev-note {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
}

/* ---------------- 网页预览页 ---------------- */

.web-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: -0.6rem 0 1.6rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgb(255 255 255 / 3%);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.web-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--muted);
}

.web-status.is-online .web-dot {
  background: #48d597;
  box-shadow: 0 0 0 0.18rem rgb(72 213 151 / 18%);
}

.web-step {
  margin: 0 0 1.1rem;
  padding: 1.15rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.web-step-title {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.web-step-text {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--fg);
}

.web-step-note {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.web-step-text code,
.web-step-note code,
.web-faq code,
.dev-note code {
  padding: 0.08rem 0.32rem;
  font-size: 0.82em;
  background: #0f1419;
  border: 1px solid var(--border);
  border-radius: 0.3rem;
}

.web-code-label {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.web-code {
  position: relative;
  margin: 0 0 0.85rem;
  padding: 0.72rem 4.2rem 0.72rem 0.85rem;
  overflow-x: auto;
  background: #0f1419;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.web-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--fg);
  white-space: pre;
}

.web-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.28rem 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  color: var(--muted);
  cursor: pointer;
  background: rgb(255 255 255 / 5%);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.web-copy:hover {
  color: var(--fg);
}

.web-copy.is-copied {
  color: #48d597;
  border-color: rgb(72 213 151 / 45%);
}

.web-copy.is-copy-failed {
  color: #ff7b72;
  border-color: rgb(255 123 114 / 45%);
}

.web-open {
  margin: 0.25rem 0 0;
}

.web-open label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.web-open-row {
  display: flex;
  gap: 0.55rem;
}

.web-open input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.58rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--fg);
  background: #0f1419;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.web-open input:focus {
  outline: none;
  border-color: rgb(79 140 255 / 60%);
  box-shadow: 0 0 0 3px rgb(79 140 255 / 12%);
}

.web-open .dev-cta {
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.web-error {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: #ff7b72;
}

.web-faq {
  margin: 1.4rem 0 1.2rem;
  padding: 1.15rem 1.2rem;
  background: rgb(255 255 255 / 2%);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.web-faq-title {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.web-faq ul {
  margin: 0;
  padding-left: 1.1rem;
}

.web-faq li {
  margin: 0.3rem 0;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .web-open-row {
    flex-direction: column;
  }

  .web-open .dev-cta {
    text-align: center;
  }
}

.dev-note a {
  color: var(--accent);
  text-decoration: none;
}

.dev-note a:hover {
  text-decoration: underline;
}


.upload-step-text {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--fg);
}

.upload-hint {
  margin: -0.2rem 0 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.upload-hint code,
.upload-step-text code {
  padding: 0.08rem 0.32rem;
  font-size: 0.82em;
  background: #0f1419;
  border: 1px solid var(--border);
  border-radius: 0.3rem;
}

.upload-error {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  color: #ff7b72;
}

.upload-error a {
  color: var(--accent);
}

.upload-success {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--fg);
}

/* ---------------- 我的作品（dev 页管理） ---------------- */

.my-games {
  margin: 2rem 0 1.4rem;
}

.dev-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.my-games-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.my-games-status[hidden] {
  display: none;
}

.my-games-status a {
  color: var(--accent);
}

.my-games-list {
  display: grid;
  gap: 0.75rem;
}

.my-game {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.my-game-cover {
  flex: 0 0 auto;
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0b0f14;
  border-radius: 8px;
}

.my-game-info {
  flex: 1;
  min-width: 0;
}

.my-game-name {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.my-game-summary {
  display: -webkit-box;
  margin: 0 0 0.3rem;
  overflow: hidden;
  font-size: 0.8rem;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.my-game-url {
  display: block;
  overflow: hidden;
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-game-url:hover {
  text-decoration: underline;
}

.my-game-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.my-game-actions button,
.my-game-edit-actions button {
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  background: rgb(255 255 255 / 4%);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.my-game-actions button:hover,
.my-game-edit-actions button:hover {
  color: var(--fg);
}

.my-game-actions button[data-action="delete"]:hover {
  color: #ff7b72;
  border-color: rgb(255 123 114 / 45%);
}

.my-game-edit {
  flex: 1;
  display: grid;
  gap: 0.55rem;
}

.my-game-edit label {
  font-size: 0.75rem;
  color: var(--muted);
}

.my-game-edit input,
.my-game-edit textarea {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  color: var(--fg);
  background: #0f1419;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.my-game-edit textarea {
  resize: vertical;
}

.my-game-edit-actions {
  display: flex;
  gap: 0.45rem;
}

.my-game-edit-actions button[type="submit"] {
  color: var(--fg);
  background: rgb(79 140 255 / 16%);
  border-color: rgb(79 140 255 / 45%);
}

.my-game-error {
  margin: 0;
  font-size: 0.78rem;
  color: #ff7b72;
}

@media (max-width: 560px) {
  .my-game {
    flex-wrap: wrap;
  }

  .my-game-cover {
    width: 72px;
  }

  .my-game-info {
    flex: 1 1 11rem;
  }

  .my-game-actions {
    flex-direction: row;
  }
}
