/* Claimout — a wireframe roster. Dark ground, hairlines, one cyan accent; the CA hangs in a side rail. */
:root {
  --gr: #090D13;
  --ink: #DCE6F0;
  --dim: rgba(220, 230, 240, .56);
  --faint: rgba(220, 230, 240, .32);
  --ac: #62F0FF;
  --wire: rgba(98, 240, 255, .26);
  --wire2: rgba(98, 240, 255, .12);
  --warn: #FF8A6E;
  --dsp: 'Chakra Petch', 'Manrope', sans-serif;
  --txt: 'Manrope', system-ui, sans-serif;
  --code: 'Fira Code', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html {
  background-color: var(--gr);
  background-image: linear-gradient(var(--wire2) 1px, transparent 1px), linear-gradient(90deg, var(--wire2) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-text-size-adjust: 100%;
}
.co-body {
  margin: 0; color: var(--ink); font: 15px/1.5 var(--txt); background: transparent;
  padding: 0 62px 40px 16px; min-height: 100vh;
}
a { color: var(--ac); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
code { font-family: var(--code); }

/* ---- identity strip (phone) / rail (desktop) ---- */
.co-id { display: flex; align-items: center; gap: 12px; height: 50px; border-bottom: 1px solid var(--wire); margin: 0 -62px 0 -16px; padding: 0 62px 0 16px; }
.co-mark { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 600 17px/1 var(--dsp); letter-spacing: .04em; text-transform: uppercase; }
.co-mark img { border: 1px solid var(--wire); border-radius: 4px; }
.co-links { display: flex; gap: 12px; margin-left: auto; font-size: 13px; }
.co-links a { color: var(--dim); white-space: nowrap; }
.co-conn { border: 1px solid var(--ac); background: transparent; color: var(--ac); font: 600 12px/1 var(--code); padding: 8px 10px; border-radius: 3px; }

/* ---- the CA: a vertical tab on the phone's right edge, a card in the rail on desktop ---- */
.co-cabar {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 30;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px;
  width: 48px; padding: 12px 0; background: rgba(9, 13, 19, .94);
  border: 1px solid var(--ac); border-right: 0; border-radius: 6px 0 0 6px;
  box-shadow: -6px 0 22px rgba(98, 240, 255, .14);
}
.co-cabar-k, .co-cabar-v, .co-cabar-copy, .co-cabar-gm { flex-shrink: 0; white-space: nowrap; }
.co-cabar-k { font: 600 11px/1 var(--dsp); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.co-cabar-v { font: 500 12px/1.1 var(--code); color: var(--ink); user-select: all; -webkit-user-select: all; word-break: break-all; }
.co-cabar-v.is-off { color: var(--faint); font-style: italic; user-select: text; }
.co-cabar-copy { border: 0; background: var(--ac); color: var(--gr); font: 700 11px/1 var(--code); padding: 9px 7px; border-radius: 3px; letter-spacing: .06em; }
.co-cabar-copy:disabled { background: transparent; color: var(--faint); border: 1px dashed var(--faint); }
.co-cabar-copy.is-done { background: var(--ink); }
.co-cabar-gm { font: 500 11px/1 var(--code); color: var(--dim); }

/* ---- the elimination headline + live sentence ---- */
.co-h1 { font: 700 38px/1.02 var(--dsp); letter-spacing: -.01em; margin: 0; padding: 16px 12px 8px; text-transform: uppercase; }
.co-h1 em { font-style: normal; color: var(--ac); display: block; }
.co-live { margin: 0; padding: 0 12px 14px; font-size: 15.5px; line-height: 1.5; color: var(--ink); max-width: 62ch; border-bottom: 1px solid var(--wire); }
.co-live b { color: var(--ac); font-weight: 700; }
.co-live .co-w { color: var(--warn); font-weight: 700; }

/* ---- the roster sheet (the object) ---- */
.co-sheet { position: relative; margin-top: 18px; border: 1px solid var(--wire); background: rgba(9, 13, 19, .82); padding: 0 0 14px; }
.co-sheet::before, .co-sheet::after { content: ''; position: absolute; width: 12px; height: 12px; border: 2px solid var(--ac); }
.co-sheet::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.co-sheet::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.co-sheet-top { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--wire); }
.co-cell { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--wire2); min-width: 0; }
.co-cell-pot { grid-column: 1 / -1; border-top: 1px solid var(--wire2); border-right: 0; }
.co-k { font: 500 10.5px/1.2 var(--code); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.co-v { font: 600 18px/1.1 var(--dsp); }
.co-bell { font-family: var(--code); font-weight: 500; font-variant-numeric: tabular-nums; }
.co-bell.is-close { color: var(--warn); }
.co-pot { font-size: 30px; color: var(--ac); }
.co-pot.is-idle { font-size: 18px; color: var(--ink); }
.co-key { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 9px 12px; font-size: 12px; color: var(--dim); border-bottom: 1px solid var(--wire2); }
.co-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.co-dot-in { background: var(--ac); }
.co-dot-due { border: 1px dashed var(--warn); }
.co-dot-out { background: linear-gradient(135deg, transparent 45%, var(--faint) 45%, var(--faint) 55%, transparent 55%); border: 1px solid var(--faint); }

.co-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.co-grid { width: 100%; border-collapse: collapse; font: 13px/1.2 var(--code); }
.co-grid th { font: 500 10.5px/1 var(--code); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--wire); white-space: nowrap; }
.co-grid td { padding: 8px 6px; border-bottom: 1px solid var(--wire2); white-space: nowrap; }
.co-grid .co-n { width: 30px; color: var(--faint); text-align: right; padding-right: 8px; }
.co-grid .co-who { min-width: 96px; }
.co-grid .co-r { width: 26px; text-align: center; padding: 6px 2px; }
.co-grid th.co-r.is-now { color: var(--ac); }
.co-grid .co-stk { text-align: right; padding-right: 12px; }
.co-tick { display: inline-block; width: 16px; height: 16px; line-height: 16px; border: 1px solid var(--wire); }
.co-tick.is-on { background: var(--ac); border-color: var(--ac); }
.co-tick.is-gap { border-color: var(--faint); background: linear-gradient(135deg, transparent 46%, var(--faint) 46%, var(--faint) 54%, transparent 54%); }
.co-tick.is-due { border: 1px dashed var(--warn); animation: co-blink 1.1s steps(2, start) infinite; }
.co-grid tr.is-out td { color: var(--faint); }
.co-grid tr.is-out .co-who span { text-decoration: line-through; text-decoration-color: var(--warn); text-decoration-thickness: 2px; }
.co-grid tr.is-due td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.co-grid tr.is-due .co-flag { color: var(--warn); }
.co-grid tr.is-me .co-who { color: var(--ac); }
.co-grid tr.is-ghost td { color: var(--faint); }
.co-grid tr.is-first td { color: var(--ink); background: rgba(98, 240, 255, .07); }
.co-grid tr.is-first td:first-child { box-shadow: inset 3px 0 0 var(--ac); }
.co-grid tr.is-first .co-tick { border: 1px dashed var(--ac); animation: co-blink 1.1s steps(2, start) infinite; }
.co-grid tr.is-new td { animation: co-print .9s ease-out; }
.co-flag { display: block; font-size: 10.5px; color: var(--dim); margin-top: 2px; }
.co-to-pot { color: var(--warn); }
@keyframes co-blink { to { opacity: .25; } }
@keyframes co-print { from { background: rgba(98, 240, 255, .28); } to { background: transparent; } }

.co-do { padding: 14px 12px 0; display: flex; flex-direction: column; gap: 8px; }
.co-claim { width: 100%; border: 0; background: var(--ac); color: var(--gr); font: 700 17px/1 var(--dsp); letter-spacing: .05em; text-transform: uppercase; padding: 17px 14px; border-radius: 3px; }
.co-claim:disabled { background: transparent; color: var(--faint); border: 1px dashed var(--faint); cursor: default; }
.co-do-note { margin: 0; font-size: 12.5px; color: var(--dim); }
.co-ring, .co-pull { border: 1px solid var(--ac); background: transparent; color: var(--ac); font: 600 13px/1 var(--code); padding: 10px 12px; border-radius: 3px; }
.co-owed { margin: 0; font-size: 14px; }

/* ---- tape, rules, past ---- */
.co-h2 { font: 600 15px/1.2 var(--dsp); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin: 0 0 10px; }
.co-h2-n { color: var(--faint); font-family: var(--code); letter-spacing: 0; }
.co-tape, .co-rules, .co-past, .co-mine { margin-top: 26px; }
.co-feed { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--wire); max-height: 420px; overflow: auto; }
.co-feed li { padding: 7px 0 7px 12px; font: 12.5px/1.45 var(--code); border-bottom: 1px dashed var(--wire2); }
.co-feed li.is-new { animation: co-print 1.2s ease-out; }
.co-feed .t { color: var(--faint); margin-right: 8px; }
.co-feed .c-out { color: var(--warn); }
.co-feed .c-in { color: var(--ac); }
.co-feed-none { color: var(--dim); font: 13px/1.5 var(--txt) !important; }
.co-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.co-steps b { color: var(--ink); }
.co-steps li { color: var(--dim); }
.co-worked { margin-top: 16px; border: 1px solid var(--wire); padding: 12px; }
.co-worked-k { margin: 0 0 8px; font: 600 12px/1 var(--code); text-transform: uppercase; letter-spacing: .1em; color: var(--ac); }
.co-wt { width: 100%; border-collapse: collapse; font: 12.5px/1.35 var(--code); }
.co-wt td { padding: 6px 4px; border-bottom: 1px solid var(--wire2); vertical-align: top; }
.co-wt td:first-child { color: var(--faint); white-space: nowrap; }
.co-wt td:last-child { text-align: right; }
.co-wt-end td { color: var(--ac); border-bottom: 0; }
.co-fine { font-size: 12.5px; color: var(--dim); margin: 10px 0 0; }
.co-pastlist { list-style: none; margin: 0; padding: 0; }
.co-pastlist li { padding: 8px 0; border-bottom: 1px dashed var(--wire2); font: 12.5px/1.45 var(--code); }

.co-foot { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--wire); font-size: 12.5px; color: var(--dim); }
.co-foot p { margin: 0 0 6px; }
.co-foot-a code { word-break: break-all; color: var(--ink); }

.co-pick { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; z-index: 50; }
.co-pick[hidden], .co-toast[hidden], .co-mine[hidden], .co-owed[hidden], .co-ring[hidden], .co-cabar-gm[hidden], [hidden] { display: none !important; }
.co-pick-box { background: var(--gr); border: 1px solid var(--ac); padding: 16px; min-width: 260px; display: grid; gap: 8px; }
.co-pick-box p { margin: 0; font-family: var(--dsp); }
.co-pick-box button { background: transparent; border: 1px solid var(--wire); color: var(--ink); padding: 10px; display: flex; align-items: center; gap: 8px; }
.co-pick-box img { width: 20px; height: 20px; }
.co-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--gr); padding: 10px 14px; font: 600 13px/1 var(--code); z-index: 60; border-radius: 3px; }

/* ---- tablet: one column, wider measure, bigger object ---- */
@media (min-width: 640px) {
  .co-body { padding: 0 76px 48px 32px; }
  .co-id { margin: 0 -76px 0 -32px; padding: 0 76px 0 32px; height: 54px; }
  .co-h1 { font-size: 54px; padding: 22px 18px 10px; }
  .co-live { padding: 0 18px 18px; }
  .co-h1 em { display: inline; }
  .co-live { font-size: 17px; }
  .co-sheet-top { grid-template-columns: 1fr 1fr 1.4fr; }
  .co-cell-pot { grid-column: auto; border-top: 0; }
  .co-grid { font-size: 14px; }
  .co-grid .co-r { width: 32px; }
  .co-tick { width: 20px; height: 20px; }
  .co-claim { width: auto; align-self: flex-start; padding: 17px 30px; }
  .co-cabar { width: 54px; }
  .co-cabar-v { font-size: 13px; }
}

/* ---- desktop: the page recomposes — rail | roster | tape ---- */
@media (min-width: 1000px) {
  .co-body {
    display: grid; max-width: 1240px; margin: 0 auto; padding: 0 24px 40px 0; column-gap: 32px;
    grid-template-columns: 236px minmax(0, 1fr) 320px;
    grid-template-areas: "rail sheet tape" "rail rules past" "rail mine mine" "rail foot foot";
    grid-template-rows: auto auto auto 1fr;
  }
  .co-id {
    grid-area: rail; position: sticky; top: 0; align-self: start; height: 100vh; margin: 0; padding: 26px 18px;
    flex-direction: column; align-items: flex-start; gap: 16px; border-bottom: 0; border-right: 1px solid var(--wire);
  }
  .co-mark { font-size: 20px; }
  .co-links { margin: 300px 0 0; flex-direction: column; gap: 8px; font-size: 14px; }
  .co-conn { margin-top: auto; width: 100%; padding: 12px; }
  .co-cabar {
    writing-mode: horizontal-tb; transform: none; top: 96px; right: auto;
    left: calc(max(0px, (100vw - 1240px) / 2) + 18px); width: 200px; padding: 14px;
    flex-direction: column; align-items: flex-start; gap: 10px; border: 1px solid var(--ac); border-radius: 4px;
  }
  .co-cabar-v { font-size: 13px; line-height: 1.45; white-space: normal; word-break: break-all; }
  .co-cabar-copy { width: 100%; padding: 11px; font-size: 12px; }
  .co-h1 { font-size: 62px; padding: 30px 24px 12px; }
  .co-live { font-size: 18px; padding: 0 24px 22px; }
  .co-sheet { grid-area: sheet; align-self: start; margin-top: 34px; }
  .co-tape { grid-area: tape; margin-top: 34px; align-self: start; position: sticky; top: 16px; }
  .co-feed { max-height: 70vh; }
  .co-rules { grid-area: rules; margin-top: 34px; }
  .co-past { grid-area: past; margin-top: 34px; }
  .co-mine { grid-area: mine; }
  .co-foot { grid-area: foot; }
  .co-pot { font-size: 38px; }
  .co-v { font-size: 22px; }
}
@media (min-width: 1400px) {
  .co-h1 { font-size: 72px; }
}

@media (min-width: 1000px) { .co-cabar-v.is-off { word-break: normal; } }
