/* The developer console, on top of site.css (the look every page shares,
   which the platform serves here too). Restyled on 2026-10-11 to match the
   public pages: dark, the same buttons and type. Every class dashboard.js
   uses is kept. No framework, no build step. */

/* --- the top bar ------------------------------------------------------------ */

.c-top {
  flex-wrap: wrap;
  gap: 8px 24px;
  height: auto;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.c-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.c-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.c-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.account {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-size: 15px;
}

.me {
  color: var(--muted);
}

.me strong {
  color: var(--text);
}

.linklike {
  font: inherit;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue-hover);
  font-weight: 600;
  cursor: pointer;
}

.linklike:hover {
  color: var(--text);
  text-decoration: underline;
}

.c-main {
  padding-top: 32px;
  padding-bottom: 72px;
}

/* --- building blocks ------------------------------------------------------ */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
}

.panel {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel h2,
.step h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.panel p,
.step p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.display-lg {
  font-size: 48px;
}

.c-main .lead {
  font-size: 17px;
}

.small,
.small p,
.panel .small,
.panel .small p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.small p + p,
.panel .small p + p {
  margin-top: 6px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
}

.input {
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-deep);
  color: var(--text);
}

.input::placeholder,
.name-box input::placeholder {
  color: #6f7898;
}

.input:focus,
.name-box:focus-within {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(91, 134, 255, 0.22);
}

/* Delete: quiet, red text, so it is never mistaken for a harmless action. */
.btn-danger {
  border-color: transparent;
  background: none;
  color: var(--red);
  padding: 0 12px;
}

.btn-danger:hover:not(:disabled) {
  border-color: rgba(255, 107, 107, 0.45);
  background: var(--red-soft);
  color: var(--red);
}

.btn-block {
  width: 100%;
  min-height: 50px;
  font-size: 16px;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Feedback: a problem reads as a problem, success as success. Two classes, so
   they win over the plain paragraph colour of a panel or a step. */
.note.note-error {
  color: var(--red);
  font-weight: 700;
}

.note.note-ok {
  color: var(--green);
  font-weight: 700;
}

.c-main code {
  font-size: 0.88em;
}

/* --- sign in ------------------------------------------------------------- */

.signin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 56px;
  align-items: center;
  padding: 24px 0 32px;
}

.signin-title {
  font-size: clamp(36px, 4.4vw, 54px);
}

.signin-aside .lead {
  margin-top: 16px;
  max-width: 540px;
}

.signin-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.signin-steps li {
  position: relative;
  padding: 2px 0 2px 46px;
  color: var(--text-2);
  font-size: 16px;
  counter-increment: step;
}

.signin-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--blue-hover);
  font-weight: 800;
}

.signin-steps b {
  color: var(--text);
}

.addr {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.signin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  font-weight: 700;
}

.signin-card {
  width: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line-strong);
}

.signin-card .display {
  font-size: 30px;
}

.signin-card .lead {
  font-size: 15px;
}

.signin-card .lead strong {
  color: var(--text);
}

.create-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.create-question {
  margin: 0;
  font-size: 15px;
}

.signin-play {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* --- change password -------------------------------------------------------- */

#password-panel {
  margin-bottom: 24px;
}

.password-row .input {
  flex: 1 1 180px;
  min-width: 0;
}

/* --- first visit ------------------------------------------------------------ */

.first-visit {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.first-visit .eyebrow {
  margin-bottom: 0;
}

.first-visit .lead {
  max-width: 700px;
  margin-bottom: 18px;
}

.first-visit .lead a {
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.step {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 8px 22px rgba(91, 134, 255, 0.35);
}

.step:nth-child(2) .step-num {
  background: var(--violet);
  box-shadow: 0 8px 22px rgba(155, 107, 255, 0.35);
}

.step:nth-child(3) .step-num {
  background: var(--pink);
  box-shadow: 0 8px 22px rgba(255, 95, 168, 0.35);
}

.prompt {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 14px;
  color: var(--text) !important;
}

/* --- your games ---------------------------------------------------------- */

.columns {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.main-col {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-col {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.game-card.is-failed {
  box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.5);
}

/* The game's first letter in its colour: the same tile as on the public page. */
.game-tile {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  color: #fff;
}

.game-main {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.game-name {
  font-weight: 800;
  font-size: 19px;
  overflow-wrap: anywhere;
}

.game-owner {
  font-size: 13px;
  color: var(--muted);
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 14px;
  color: var(--muted);
}

.game-meta a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-actions .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.chip-live {
  background: var(--green-soft);
  color: var(--green);
}

.chip-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.chip-quiet {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
}

.chip-busy {
  background: var(--amber-soft);
  color: var(--amber);
}

.chip-failed {
  background: var(--red-soft);
  color: var(--red);
}

/* --- upload ----------------------------------------------------------------- */

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 16px;
  border: 2px dashed rgba(91, 134, 255, 0.5);
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue-hover);
  text-align: center;
  cursor: pointer;
}

.drop:hover,
.drop.is-over {
  border-color: var(--blue-hover);
  background: rgba(91, 134, 255, 0.24);
}

.drop:focus-within {
  outline: 3px solid var(--blue-hover);
  outline-offset: 2px;
}

.drop.has-file {
  border-style: solid;
}

.drop-title {
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

.drop-sub {
  font-size: 14px;
  color: var(--text-2);
}

.drop-link {
  color: var(--blue-hover);
  font-weight: 700;
}

/* The name box shows the address being chosen: ayfer.multiplayground.io/my-game. */
.name-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-deep);
  overflow: hidden;
}

.name-box input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  outline: none;
}

/* On a phone the address before the name can be longer than the box: it gives
   way (ending in "...") so the name being typed always has room. */
.name-prefix {
  flex: 0 1 auto;
  max-width: 62%;
  padding: 0 0 0 12px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.name-prefix + input {
  padding-left: 0;
}

.needs {
  padding-top: 4px;
}

.needs-title {
  color: var(--text-2) !important;
  font-weight: 700;
}

.needs-list {
  margin: 6px 0 8px;
  padding-left: 18px;
}

.needs-list li + li {
  margin-top: 3px;
}

/* --- logs ------------------------------------------------------------------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 12, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
}

.overlay-box {
  width: min(900px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line-strong);
  overflow: hidden;
}

.overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.overlay-head h3 {
  margin: 0;
  font-size: 17px;
}

.logs {
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  background: var(--bg-deep);
  color: #e6e9ef;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Changing a game's display name, in place on its card. */
.title-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.title-buttons {
  display: flex;
  gap: 8px;
}

/* What renaming does and does not do, before anyone saves. */
.title-warning {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--amber-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.35);
  color: #ffe2b3;
  font-size: 14px;
}

.title-warning p {
  margin: 0;
}

.title-warning p + p {
  margin-top: 4px;
}

/* --- narrower windows --------------------------------------------------------- */

@media (max-width: 900px) {
  .signin {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* The form first: a returning developer came to sign in. */
  .signin-side {
    order: -1;
    max-width: 520px;
  }

  .signin-title {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  /* Three lines on a phone: it scrolls away instead of covering the page. */
  .nav {
    position: static;
  }

  .c-top {
    gap: 4px 12px;
  }

  .c-links {
    order: 3;
    width: 100%;
    margin-left: -10px;
  }

  .c-links a {
    min-height: 36px;
    padding: 0 10px;
  }

  .account {
    order: 4;
    width: 100%;
    margin-left: 0;
    font-size: 14px;
    gap: 4px 16px;
  }

  .c-main {
    padding-top: 20px;
  }

  .display {
    font-size: 28px;
  }

  .display-lg {
    font-size: 32px;
  }

  .signin-card {
    padding: 22px;
  }

  .game-card {
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .game-tile {
    width: 52px;
    height: 52px;
    font-size: 26px;
    border-radius: 14px;
  }

  .game-actions {
    width: 100%;
  }

  .game-actions .btn {
    flex: 1 1 0;
    min-height: 44px;
  }

  .game-actions .btn-danger {
    flex: 0 0 auto;
  }
}

/* --- comments on a game (the Comments button of a game's card) --- */

.comments-list {
  margin: 0;
  padding: 12px 16px 16px;
  list-style: none;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.comment {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-head .btn {
  margin-left: auto;
}

.comment-when {
  color: var(--muted, #a4acc8);
  font-size: 12px;
}

.comment-text {
  margin: 4px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comments-none {
  color: var(--muted, #a4acc8);
}
