/* The coin page, new style: what the coin opens, the wallet check, the holders' area, the roadmap and the notes
   from holders, in the page's one
   column. The shell, the folds and the capsules come from shell.css and pieces.css. The two steps of the wallet check
   look as they do on the dark room page: their styles (.gate) come from darkroom.css, loaded before this file.
   Green is the only color here and it means "live" or "passed". Every class here starts with "c-". */

/* The contract address with its one line */
.c-ca { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-75); margin-top: var(--sp-100); }

/* The line that appears when the check has passed */
.c-pass { display: flex; align-items: center; gap: var(--sp-75); color: var(--soft); }
.c-pass::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--safe); }

/* The holders' area: one row of dark glass per feature. Locked, it says so; open, it carries an Open button. */
.c-area { display: flex; flex-direction: column; gap: var(--sp-75); margin: 0; padding: 0; list-style: none; }
.c-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-100) var(--sp-200); min-height: 76px;
  padding: var(--sp-200) var(--sp-300); border-radius: var(--r-2xl); background: var(--s1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.c-item.c-open { background: var(--s2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.c-what { display: flex; flex-direction: column; gap: var(--sp-25); }
.c-what h3 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--fg); }
.c-what p { font-size: 14px; line-height: 20px; color: var(--dim); }
.c-state { color: var(--faint); white-space: nowrap; }

/* A group of rows with its label: what is open for holders today, what is planned for them, and the roadmap's three
   groups. The dot says which kind: lit for what exists, solid for what is being built, hollow for what is planned. */
.c-group { display: flex; align-items: center; gap: var(--sp-75); margin-top: var(--sp-300); color: var(--soft); }
.c-group::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: var(--r-full); }
.c-live::before { background: var(--safe); }
.c-build::before { background: var(--fg); }
.c-next::before { box-shadow: inset 0 0 0 1.5px var(--faint); }
.c-road { display: flex; flex-direction: column; gap: var(--sp-50); margin: 0; padding: 0; list-style: none; }
.c-road li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-25) var(--sp-200); min-height: 60px;
  padding: var(--sp-100) var(--sp-200); border-radius: var(--r-2xl); background: var(--s1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.c-road b { grid-column: 1; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--fg); }
.c-road span { grid-column: 1; font-size: 13px; line-height: 18px; color: var(--faint); }
.c-road i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; text-align: right; white-space: nowrap; }

/* The holders' notes: a field of dark glass to write one line in, then the notes as rows */
.c-write { display: flex; flex-direction: column; gap: var(--sp-100); }
.c-field {
  width: 100%; height: 52px; padding: 0 var(--sp-200); border: 0; border-radius: var(--r-2xl); background: var(--s1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 2px 6px rgba(0, 0, 0, 0.5);
  color: var(--fg); font: 400 16px/24px "Geist", system-ui, sans-serif; transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.c-field::placeholder { color: var(--faint); }
.c-field:hover { background: var(--s2); }
.c-field:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: var(--r-2xl); }
.c-field:disabled { opacity: 0.6; }
.c-write .p-chip:disabled { opacity: 0.45; cursor: default; filter: none; }
.c-left { color: var(--faint); }
.c-left.bad, .c-say.bad { color: var(--help); }
.c-say { min-height: 20px; font-size: 14px; line-height: 20px; color: var(--soft); }
.c-notes { display: flex; flex-direction: column; gap: var(--sp-50); margin: 0; padding: 0; list-style: none; }
.c-note { display: flex; flex-direction: column; gap: var(--sp-50); padding: var(--sp-200); border-radius: var(--r-2xl); background: var(--s1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.c-note p { color: var(--fg); overflow-wrap: anywhere; }
.c-note .label { color: var(--faint); }
.c-quiet { padding: var(--sp-200) 0; font-size: 14px; line-height: 20px; color: var(--faint); }
/* "Remove my note": a quiet text button at the end of the row */
.c-plain { margin-left: auto; }
/* The moderators' part: an outline, so it never looks like part of the wall */
.c-mod { display: flex; flex-direction: column; gap: var(--sp-100); padding: var(--sp-200); border-radius: var(--r-2xl); outline: 1px dashed rgba(255, 255, 255, 0.18); outline-offset: -1px; }
.c-note .s-acts { margin-top: var(--sp-75); }

/* On a phone the label at the end of a row goes under the text, so nothing is squeezed */
@media (max-width: 479px) {
  .c-item { grid-template-columns: minmax(0, 1fr); padding: var(--sp-200); }
  .c-item .p-chip { justify-self: start; }
  .c-road li { grid-template-columns: minmax(0, 1fr); }
  .c-road i { grid-column: 1; grid-row: auto; margin-top: var(--sp-50); text-align: left; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .c-item, .c-field { transition: none; }
}
