/* Setup wizard — builds on style.css tokens */
:root {
  --check-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.setup-page {
  background:
    radial-gradient(rgba(42, 27, 71, .09) 1.6px, transparent 1.8px) 0 0 / 24px 24px,
    var(--cream);
  min-height: 100vh;
}
.setup { max-width: 800px; margin: 0 auto; padding: 36px 20px 72px; }
.setup:has([data-panel="welcome"]:not([hidden])) { max-width: 1080px; }
.setup .card { padding: 32px; }
.step h1 { font-size: 36px; margin: 0 0 8px; }
.step .lead-sm { font-size: 17.5px; color: var(--text-2); margin: 0 0 20px; max-width: 40em; }
.step .eyebrow {
  display: inline-block;
  color: var(--ink);
  background: var(--mint);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px 14px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .04em;
  margin: 0 0 16px;
  box-shadow: 0 3px 0 var(--ink);
}
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 2.5px dashed var(--line); flex-wrap: wrap; }
.step-actions.center { justify-content: center; border-top: 0; padding-top: 0; }
.center-step { text-align: center; display: grid; justify-items: center; gap: 10px; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike.small { font-size: 13.5px; }

/* Mascots */
.signin-step { position: relative; padding-right: 230px !important; }
.signin-mascot { position: absolute; right: 18px; bottom: 18px; width: 200px; }
.step-mascot { width: 190px; margin-bottom: 2px; }
.step-mascot.thinking { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Stepper */
.stepper { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 10px; }
.stepper li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: #fff;
  border: 2.5px solid var(--ink);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 800;
  min-width: 0;
  box-shadow: 0 3px 0 var(--ink);
}
.stepper .num {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--panel-2);
  border: 2.5px solid var(--ink);
  font: 400 15px/1 var(--font-display);
}
.stepper .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li.active { color: var(--ink); background: var(--lavender); }
.stepper li.active .num { background: var(--violet); color: #fff; }
.stepper li.done { color: var(--ink); }
.stepper li.done .num { background: var(--mint); color: transparent; position: relative; }
.stepper li.done .num::after {
  content: "";
  position: absolute; inset: 5px;
  background: var(--ink);
  -webkit-mask: var(--check-svg) center / contain no-repeat;
  mask: var(--check-svg) center / contain no-repeat;
}

/* Sign in */
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-2); font-weight: 700; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px;
  background: var(--mint) var(--check-svg) center / 13px no-repeat;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.discord-btn { gap: 10px; }

/* Server picker */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 22px 0 14px; }
.pick-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 14px;
  background: #fff;
  border: var(--outline);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .12s ease;
}
.pick-card:hover { background: var(--panel-2); transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
.pick-card:active { transform: translateY(4px); box-shadow: none; }
.pick-card:focus-visible { outline: none; box-shadow: 0 4px 0 var(--ink), var(--ring); }
.pick-card img, .pick-card .icon-fallback { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--ink); }
.pick-name { font: 400 18px/1.2 var(--font-display); overflow-wrap: anywhere; }

.server-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: -6px 0 20px;
  padding: 8px 14px 8px 8px;
  background: var(--panel-2);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.server-banner img, .server-banner .icon-fallback { width: 34px; height: 34px; border-radius: 50%; font-size: 13px; border-width: 2px; }

.perm-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.perm-list li { padding: 11px 15px; background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius-sm); color: var(--text-2); font-weight: 600; }
.perm-list b { color: var(--ink); }

/* Check */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li, .check-row { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.check-row { padding: 14px; background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); }
.check-row.warn { background: #fffaf0; }
.mark { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); color: var(--ink); }
.mark .icon { width: 14px; height: 14px; stroke-width: 3.4; }
.ok .mark { background: var(--mint); }
.bad .mark { background: var(--danger); color: #fff; }
.warn .mark { background: var(--gold); }
.check-row p { margin: 4px 0 8px; }
.howto summary { cursor: pointer; color: var(--accent-text); font-weight: 800; }
.howto ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }

/* Welcome */
.welcome-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; margin-top: 22px; align-items: start; }
.inline { display: flex; gap: 10px; align-items: flex-start; }
.inline select { flex: 1; }
.inline .btn { margin-bottom: 0; }
.preview { position: sticky; top: 90px; }
.preview-label { font-size: 12px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 10px; }
/* Discord look-alike (Discord's own colors on purpose), with the brand outline */
.dc { background: #313338; border: var(--outline); border-radius: 18px; overflow: hidden; font: 500 14px/1.4 var(--font-sans); box-shadow: var(--shadow); }
.dc-channel { padding: 11px 16px; border-bottom: 3px solid var(--ink); background: #2b2d31; color: #dbdee1; font-weight: 800; }
.dc-msg { display: flex; gap: 12px; padding: 16px; }
.dc-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--lavender) url("/brand/floxy-mark.svg") center / 115% no-repeat; flex: none; border: 2px solid #1e1f22; }
.dc-head { margin: 0 0 4px; }
.dc-head b { color: #fff; }
.dc-bot { background: #5865f2; color: #fff; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 3px; }
.dc-time { color: #949ba4; font-size: 12px; margin-left: 4px; }
.dc-text { color: #dbdee1; overflow-wrap: anywhere; }
.dc-mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.dc-button { display: inline-block; margin-top: 10px; background: #5865f2; color: #fff; font-weight: 700; padding: 7px 16px; border-radius: 4px; }
.dc-members { background: #2b2d31; border-top: 1px solid #3f4147; padding: 12px 16px; }
.dc-role { margin: 0 0 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; color: #949ba4; }
.dc-member { margin: 0; display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.dc-mavatar { width: 28px; height: 28px; border-radius: 50%; background: #8ea1ff; }

/* Go live */
.big-check { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; padding: 18px; background: var(--panel-2); border: 2.5px solid var(--ink); border-radius: var(--radius); margin-top: 18px; cursor: pointer; }
.big-check input { margin-top: 2px; }

/* Done */
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; margin: 20px 0; text-align: left; }
.next-card { display: grid; gap: 4px; padding: 18px !important; margin: 0; text-decoration: none; color: var(--ink); font-weight: 600; transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.next-card b { font: 400 19px/1.2 var(--font-display); }
.next-card:nth-child(1) { background: #f4efff; }
.next-card:nth-child(2) { background: #fff6d6; }
.next-card:nth-child(3) { background: #e6fcf5; }
.next-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }

@media (max-width: 760px) {
  .stepper { gap: 6px; }
  .stepper .label { display: none; }
  .stepper li { justify-content: center; padding: 8px 6px; }
  .stepper li.active { flex: 3; }
  .stepper li.active .label { display: inline; }
  .welcome-grid, .next-grid { grid-template-columns: 1fr; }
  .preview { position: static; }
  .inline { flex-direction: column; align-items: stretch; }
  .setup .card { padding: 22px; }
  .step h1 { font-size: 30px; }
  .signin-step { padding-right: 22px !important; padding-top: 150px !important; }
  .signin-mascot { right: auto; left: 50%; transform: translateX(-50%); top: -10px; bottom: auto; width: 150px; }
}
