/* Sister site of Random Wheel: same light, same glass, same type.
   Layout idea: the groups are the poster. The names and settings sit in a quiet glass rail beside them. */
:root {
  --paper: #080A1C;
  --panel: #15173A;
  --ink: #F3F1FF;
  --ink-soft: #B3B0D0;
  --line: #2D2F5C;
  --signal-ink: #1A1033;
  --focus: #B5A8FF;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-line: rgba(255, 255, 255, 0.13);
  --field: rgba(6, 8, 24, 0.55);
  --lift: 0 18px 50px -22px rgba(0, 0, 0, 0.8);
  --aurora: 0.55;
  --violet: #7B5CFF;
  --rose: #FF5C8A;
  --amber: #FFB627;
  --aqua: #2ED3C6;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", Verdana, sans-serif;
  --radius: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; font-weight: 500; line-height: 1.5;
}
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The light behind everything */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 90vmax; height: 90vmax; border-radius: 50%; opacity: var(--aurora);
}
body::before {
  left: -30vmax; top: -38vmax;
  background: radial-gradient(closest-side, var(--violet), transparent 70%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
body::after {
  right: -34vmax; bottom: -44vmax;
  background: radial-gradient(closest-side, var(--rose), transparent 68%), radial-gradient(closest-side at 30% 30%, var(--amber), transparent 60%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vmax, -9vmax) scale(1.1); } }

.shell { max-width: 1220px; margin: 0 auto; padding: 0 24px 64px; }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 22px 0 14px; }
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1; letter-spacing: -0.02em;
  margin: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none;
}
.brand svg { flex: none; filter: drop-shadow(0 0 8px rgba(255, 92, 138, 0.55)); }
.modes { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); }
.modes a {
  text-decoration: none; color: var(--ink); padding: 7px 16px; border-radius: 999px; font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}
.modes a:hover { background: var(--glass-line); }
.modes a[aria-current="page"] { background: linear-gradient(120deg, var(--violet), var(--rose)); color: #FFFFFF; }
.top-tools { margin-inline-start: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.btn {
  border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink);
  border-radius: 12px; padding: 8px 14px; font-weight: 700; cursor: pointer; line-height: 1.2;
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.btn:hover { border-color: var(--violet); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.quiet { font-weight: 500; }
.btn[aria-pressed="true"] { background: color-mix(in srgb, var(--violet) 26%, transparent); border-color: var(--violet); }
.btn svg { flex: none; }
#markBtn svg { color: var(--amber); }
#siteShareBtn svg { color: var(--rose); }

/* Page title */
.head { padding: 6px 0 20px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 28px; }
.head > div:first-child { max-width: 760px; min-width: 0; flex: 1 1 420px; }
.spread { display: flex; gap: 8px; flex: none; }
.head h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(32px, 5.2vw, 56px); line-height: 1.02; margin: 0; text-wrap: balance;
}
.head p { margin: 10px 0 0; color: var(--ink-soft); font-size: 18px; max-width: 58ch; }

/* Main grid */
.work { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }

/* The stage: the button, then the groups */
.stage { display: flex; flex-direction: column; gap: 18px; min-width: 0; animation: arrive 700ms cubic-bezier(.2, .9, .2, 1) both; }
.go-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.go {
  position: relative; overflow: hidden; cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: -0.01em;
  background: linear-gradient(120deg, var(--amber), var(--rose)); color: var(--signal-ink);
  border: 0; border-radius: 999px; padding: 15px 40px 15px;
  box-shadow: 0 14px 34px -12px var(--rose), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 160ms cubic-bezier(.2, .8, .2, 1), box-shadow 160ms ease;
}
.go::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.6) 50%, transparent 62%);
  transform: translateX(-120%); animation: sheen 5s ease-in-out 1.2s infinite;
}
@keyframes sheen { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
.go:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 20px 40px -12px var(--rose), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.go:active { transform: translateY(1px) scale(0.98); }
.go:disabled { opacity: 0.55; cursor: default; transform: none; }
.go:disabled::after { animation: none; }
.plan { margin: 0; font-weight: 700; font-size: 17px; min-width: 0; flex: 1 1 200px; }
.plan.warn { color: var(--amber); }

.board { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); align-items: start; }
.grp {
  --c: var(--violet);
  position: relative; overflow: hidden; min-width: 0;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius);
  box-shadow: var(--lift); padding: 16px 16px 14px;
}
.grp::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.grp::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
}
.grp h3 {
  position: relative; z-index: 1; margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; line-height: 1.15;
}
.grp h3 span:first-child { overflow-wrap: anywhere; min-width: 0; }
.grp h3 .n { margin-inline-start: auto; font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.grp ol { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; min-height: 30px; }
.grp li {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px;
  background: var(--field); font-weight: 600; overflow-wrap: anywhere; line-height: 1.3;
}
.grp li.in { animation: name-in 300ms cubic-bezier(.2, .9, .2, 1) both; }
.grp li.lead { background: color-mix(in srgb, var(--c) 30%, var(--field)); }
.grp li .tag { margin-inline-start: auto; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.grp li.lead .tag { color: var(--ink); }
@keyframes name-in { from { opacity: 0; transform: translateY(12px) scale(0.92); } }
/* before the first shuffle the board shows the shape of what you will get */
.grp.ghost { border-style: dashed; box-shadow: none; }
.grp.ghost::after { opacity: 0.55; }
.grp.ghost li { height: 30px; padding: 0; background: var(--glass); }
.grp.ghost li:nth-child(odd) { width: 82%; }
.grp.ghost li:nth-child(even) { width: 64%; }
.grp.ghost .more { background: none; height: auto; width: auto; font-size: 14px; color: var(--ink-soft); font-weight: 600; }

.mark { margin: 2px 0 0; text-align: center; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; font-size: 15px; color: var(--ink-soft); opacity: 0.8; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }

.fs-exit {
  display: none; position: fixed; top: 14px; left: 14px; z-index: 30; width: 46px; height: 46px; padding: 0;
  justify-content: center; border-radius: 50%; background: var(--panel);
}
.stage:fullscreen, body.faux-full .stage {
  background: var(--paper); padding: 70px 28px 28px; overflow: auto; justify-content: flex-start;
}
body.faux-full .stage { position: fixed; inset: 0; z-index: 20; }
.stage:fullscreen .fs-exit, body.faux-full .fs-exit { display: inline-flex; }
.stage:fullscreen .board, body.faux-full .board { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.stage:fullscreen .grp h3, body.faux-full .grp h3 { font-size: 28px; }
.stage:fullscreen .grp li, body.faux-full .grp li { font-size: 22px; padding: 8px 12px; }

/* The glass rail */
.rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius);
  box-shadow: var(--lift); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.rail > .card { animation: settle 600ms cubic-bezier(.2, .8, .2, 1) both; }
.rail > .card:nth-child(1) { animation-delay: 120ms; }
.rail > .card:nth-child(2) { animation-delay: 190ms; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes settle { from { opacity: 0; transform: translateY(16px); } }
.card h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0; display: flex; align-items: center; gap: 10px; }
.pill {
  font-family: var(--font-body); font-size: 13px; font-weight: 700; color: #FFFFFF; border-radius: 999px; padding: 2px 11px;
  background: linear-gradient(120deg, var(--violet), var(--rose)); font-variant-numeric: tabular-nums;
}
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
textarea, .field input, .field select {
  background: var(--field); border: 1px solid var(--glass-line); border-radius: 12px; color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
textarea { width: 100%; min-height: 250px; resize: vertical; padding: 12px 14px; border-radius: 14px; line-height: 1.45; }
textarea.small { min-height: 84px; }
textarea:focus-visible, .field input:focus-visible, .field select:focus-visible {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 28%, transparent);
}
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-soft); }
.field input, .field select { padding: 8px 10px; font-size: 17px; }
.field select option { background: var(--panel); color: var(--ink); }
.note { font-size: 14px; color: var(--ink-soft); margin: 0; }
.example-flag { font-size: 13px; color: var(--ink-soft); border: 1px dashed var(--glass-line); border-radius: 8px; padding: 5px 9px; margin: 0; }
.check { display: flex; gap: 9px; align-items: center; font-size: 15.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--violet); flex: none; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--field); border: 1px solid var(--glass-line); }
.seg button {
  flex: 1 1 0; min-width: 0; border: 0; background: none; border-radius: 10px; padding: 8px 8px; font-weight: 700; cursor: pointer; line-height: 1.2;
  transition: background 160ms ease;
}
.seg button[aria-pressed="true"] { background: linear-gradient(120deg, var(--violet), var(--rose)); color: #FFFFFF; }
.step { display: flex; align-items: stretch; gap: 6px; }
.step input { width: 84px; text-align: center; font-size: 22px; font-weight: 800; padding: 6px 4px; background: var(--field); border: 1px solid var(--glass-line); border-radius: 12px; font-variant-numeric: tabular-nums; }
.step input:focus-visible { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 28%, transparent); }
.step .btn { width: 48px; justify-content: center; font-size: 22px; padding: 0; }
.fold { border-top: 1px solid var(--glass-line); padding-top: 10px; }
.fold > summary { cursor: pointer; font-weight: 700; padding: 2px 0; }
.fold[open] > summary { margin-bottom: 10px; }
.fold > * + * { margin-top: 10px; }

/* Text below the tool */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 32px; margin-top: 44px; }
.about h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 19px; margin: 0 0 6px; text-wrap: balance; }
.about p { margin: 0; color: var(--ink-soft); max-width: 46ch; }
.guide { margin-top: 40px; max-width: 820px; }
.guide h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 23px; margin: 30px 0 6px; text-wrap: balance; }
.guide h3 { font-size: 17px; margin: 18px 0 4px; }
.guide p, .guide li { color: var(--ink-soft); max-width: 70ch; }
.guide p { margin: 0 0 10px; }
.guide ol, .guide ul { margin: 0 0 10px; padding-left: 22px; }
.guide li { margin-bottom: 4px; }
.jobs { margin-top: 30px; }
.jobs h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 6px; }
.jobs p { margin: 0; line-height: 1.9; color: var(--ink-soft); }
.jobs a, .guide a, .foot a, .doc a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--glass-line); color: var(--ink-soft); font-size: 14px; }

/* Ads: two fixed spots, labelled, and invisible until Google fills them */
.ad { margin: 34px 0 0; text-align: center; min-width: 0; }
.ad-label { display: none; margin: 0 0 6px; font-size: 12px; color: var(--ink-soft); }
.ad:has(ins[data-ad-status="filled"]) .ad-label { display: block; }
.ad ins[data-ad-status="unfilled"] { display: none !important; }

/* About, contact, privacy and terms */
.doc { max-width: 70ch; margin: 10px 0 0; }
.doc h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; font-size: clamp(28px, 5vw, 40px); line-height: 1.1; margin: 10px 0 4px; }
.doc h2 { font-size: 20px; margin: 30px 0 6px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: 6px; }

.field.wide { width: 100%; }
.field.wide > span { color: var(--ink); font-weight: 700; }
.contact-form { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 560px; margin: 0 0 14px; }
.contact-form .field input, .contact-form textarea { font-size: 16px; color: var(--ink); }
.contact-form .field input { padding: 9px 12px; }
.contact-form textarea { min-height: 170px; }
.contact-form .cf-turnstile { min-height: 65px; max-width: 100%; }
.contact-form .btn { background: linear-gradient(120deg, var(--violet), var(--rose)); color: #FFFFFF; border-color: transparent; padding: 10px 20px; }
.contact-form .note { margin: 0; }
.contact-form .note.bad { color: var(--rose); }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 10px 20px; box-shadow: var(--lift);
  font-size: 15px; font-weight: 600; z-index: 40; max-width: calc(100% - 32px); opacity: 0; pointer-events: none;
  transition: opacity 160ms ease;
}
.toast.show { opacity: 1; }

@media (max-width: 880px) {
  .shell { padding: 0 16px 48px; }
  .work { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  /* on a phone you type first, then press the button, then read the groups */
  .rail { order: 1; }
  .stage { order: 2; }
  .head { padding-bottom: 14px; }
  .head p { font-size: 16px; }
  textarea { min-height: 170px; }
  /* the button rides at the bottom of the screen, so it is always one tap away while you type */
  .shell { padding-bottom: 104px; }
  .go { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 15; padding: 14px 20px; }
  .toast { bottom: 88px; }
}
@media (max-width: 600px) {
  .top { gap: 10px 12px; padding: 14px 0 10px; }
  .brand { font-size: 20px; }
  .modes { order: 3; width: 100%; }
  .modes a { flex: 1 1 0; text-align: center; padding: 7px 6px; font-size: 15px; }
  .top-tools { gap: 6px; }
  .top-tools .btn { padding: 7px 10px; font-size: 14px; }
  .seg button { font-size: 15px; }
  .board { grid-template-columns: repeat(var(--cols-phone, 2), minmax(0, 1fr)); gap: 10px; }
  .grp { padding: 14px 12px 12px; }
  .grp h3 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .go::after, .stage, .rail > .card, .grp li.in { animation: none; }
  .btn, .go { transition: none; }
}
@media print {
  body { background: #FFFFFF; color: #000000; }
  body::before, body::after, .top, .head p, .rail, .go-row, .acts, .about, .ad, .spread, .guide, .jobs, .foot, .toast, .fs-exit { display: none !important; }
  .work { display: block; }
  .board { grid-template-columns: repeat(3, 1fr); }
  .grp { background: none; border: 1px solid #999999; box-shadow: none; break-inside: avoid; }
  .grp::after { display: none; }
  .grp li { background: none; padding: 2px 0; color: #000000; }
  .grp h3, .grp h3 .n, .grp li .tag, .mark { color: #000000; }
}
