/* split/city. Direction: design/references/index.md, 2026-09-13 "The pick: Raid Roster, with Coal & Notes' type". */

@font-face { font-family: "Big Shoulders Display"; src: url("/static/fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("/static/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/static/fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/static/fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/static/fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/static/fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0c0e16;
  --panel: #121727;
  --raised: #1a2033;
  --line: #28314b;
  --line-soft: #1d2440;
  --text: #e6eaff;
  --dim: #8a94b6;
  --faint: #7c86aa; /* 4.5:1 on panels and raised surfaces */
  --coral: #ff5d8f;
  --coral-ink: #1a0610;
  --mint: #3dffb5;
  --amber: #ffbf47;
  --common: #9aa7c7;
  --rare: #58a6ff;
  --epic: #b77cff;
  --legendary: #ffbf47;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: Figtree, "Helvetica Neue", Arial, sans-serif;
  --cut-12: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --cut-6: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  --slant: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--body); font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(120, 140, 220, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 140, 220, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
a { color: var(--rare); text-decoration: none; }
a:hover { color: #8cc2ff; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; line-height: 1; letter-spacing: 0.005em; }
h1 { font-size: 38px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; letter-spacing: 0.02em; }
p { margin: 0; text-wrap: pretty; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.display { font-family: var(--display); font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Header ─────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 10; min-height: 56px; display: flex; align-items: center; gap: 24px; padding: 8px max(16px, calc((100vw - 1400px) / 2)); background: rgba(10, 12, 20, 0.94); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.logo { display: flex; flex-direction: column; line-height: 1; gap: 2px; color: var(--text); }
.logo:hover { text-decoration: none; color: var(--text); }
.logo .word { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.01em; }
.logo .word i { font-style: normal; color: var(--coral); margin: 0 1px; }
.logo .by { font-size: 10.5px; color: var(--dim); font-weight: 500; letter-spacing: 0.02em; padding-left: 1px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 14px; color: var(--dim); font-weight: 700; font-size: 16px; font-family: var(--display); letter-spacing: 0.02em; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--raised); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.top-actions form { margin: 0; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 22px 16px 64px; }
@media (min-width: 720px) { .wrap { padding: 22px 24px 64px; } }

/* ── Controls ───────────────────────────────────────── */
.btn {
  height: 30px; padding: 0 14px; border: 0; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--raised); color: var(--text); clip-path: var(--cut-6); white-space: nowrap; text-decoration: none;
}
.btn:hover { background: #242c45; color: var(--text); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: -4px; }
.btn-pri { background: var(--coral); color: var(--coral-ink); }
.btn-pri:hover { background: #ff7aa3; color: var(--coral-ink); }
.btn-sm { height: 26px; padding: 0 10px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--dim); }
.btn-ghost:hover { background: var(--raised); }
.btn-danger { color: #ff8a8a; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
@media (pointer: coarse) { .btn { min-height: 44px; } .btn-sm { min-height: 40px; } }

label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--dim); }
input, select, textarea {
  font: inherit; font-size: 14px; color: var(--text); background: #0f1320; border: 1px solid var(--line); border-radius: 0; height: 32px; padding: 0 10px; width: 100%; min-width: 0;
}
textarea { height: auto; min-height: 64px; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rare); box-shadow: 0 0 0 1px var(--rare); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--coral); }
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--text); font-size: 14px; }
.field-error { color: #ff8a8a; font-weight: 500; font-size: 12.5px; }
input[aria-invalid="true"] { border-color: #ff8a8a; }
.qty { width: 78px; }
.inline-form { display: flex; gap: 6px; align-items: center; margin: 0; flex-wrap: wrap; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ── Panels ─────────────────────────────────────────── */
.panel { background: var(--edge, var(--line)); padding: 1px; clip-path: var(--cut-12); }
.panel > .in { background: var(--panel); clip-path: var(--cut-12); padding: 16px; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.label { font-size: 12.5px; font-weight: 600; color: var(--dim); }
.amt { font-family: var(--display); font-weight: 700; font-size: 17px; }
.big { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; }
.flash { max-width: 1400px; margin: 16px auto 0; padding: 0 16px; }
.flash .in { padding: 10px 14px; }
details > summary { cursor: pointer; font-weight: 600; color: var(--dim); list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+ "; color: var(--coral); }
details[open] > summary::before { content: "− "; }

.status { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 12px; clip-path: var(--slant); white-space: nowrap; }
.status-open { background: rgba(61, 255, 181, 0.12); color: var(--mint); }
.status-locked { background: rgba(255, 191, 71, 0.14); color: var(--amber); }
.status-ordered { background: rgba(88, 166, 255, 0.14); color: var(--rare); }
.status-ready { background: rgba(183, 124, 255, 0.16); color: var(--epic); }
.status-done { background: rgba(138, 148, 182, 0.14); color: var(--dim); }
.status-cancelled { background: rgba(255, 138, 138, 0.12); color: #ff8a8a; }
.est { color: var(--amber); font-size: 12px; font-weight: 600; }

/* ── Beans: members are coffee beans ────────────────── */
.bean { --bean: var(--common); width: 22px; height: 28px; border-radius: 50%; transform: rotate(-24deg); position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--bean); box-shadow: inset -2px -3px 0 rgba(0, 0, 0, 0.22); overflow: hidden; }
.bean::after { content: ""; position: absolute; top: 4px; bottom: 4px; left: 50%; width: 6px; margin-left: -4px; border-right: 1.5px solid rgba(12, 14, 22, 0.32); border-radius: 50%; pointer-events: none; }
.bean b { transform: rotate(24deg); font-size: 10px; font-weight: 700; color: var(--bg); position: relative; z-index: 1; }
.bean img { width: 140%; height: 140%; object-fit: cover; transform: rotate(24deg); }
.bean-photo::after { border-right-color: rgba(12, 14, 22, 0.45); }
.bean-sm { width: 16px; height: 21px; }
.bean-sm::after { top: 3px; bottom: 3px; width: 4px; margin-left: -3px; border-right-width: 1.2px; }
.bean-sm b { font-size: 8.5px; }
.bean-lg { width: 44px; height: 56px; }
.bean-lg::after { top: 7px; bottom: 7px; width: 11px; margin-left: -7px; border-right-width: 2.5px; }
.bean-lg b { font-size: 18px; }
.who { display: inline-flex; align-items: center; gap: 8px; }

/* ── Splits list ────────────────────────────────────── */
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .row { flex: 1; }
.section-title { margin: 28px 0 12px; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--dim); letter-spacing: 0.02em; }
.split-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.split-card { display: block; color: var(--text); }
.split-card:hover { text-decoration: none; color: var(--text); --edge: #3a4670; }
.split-card h2 { font-size: 26px; }
.split-card .id { color: var(--faint); }
.item-lines { display: flex; flex-direction: column; gap: 3px; }
.empty { padding: 32px 0; color: var(--dim); }

/* ── Split page ─────────────────────────────────────── */
.split-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.title-row .id { color: var(--faint); }
.meta { display: flex; gap: 8px 18px; color: var(--dim); flex-wrap: wrap; align-items: center; }
.meta b { color: var(--text); font-weight: 600; }
.split-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .split-grid { grid-template-columns: minmax(0, 1fr); } .split-grid .party { order: 2; } }
.member-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.member-row.you { box-shadow: inset 3px 0 0 var(--coral); padding-left: 8px; }
.member-row.waiting { opacity: 0.6; }
.loot { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.loot-card .in { gap: 10px; }
.rarity { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.rarity .dim { font-family: var(--body); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.r-common { --rar: var(--common); --edge: #3a4460; }
.r-rare { --rar: var(--rare); --edge: #2c5687; }
.r-epic { --rar: var(--epic); --edge: #6b4a9e; }
.r-legendary { --rar: var(--legendary); --edge: #8a6a2a; }
.r-gear { --rar: var(--common); --edge: var(--line); }
.rarity .tier { color: var(--rar); }
.cname { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; }
.seg { display: flex; gap: 3px; height: 14px; }
.seg span { flex: 1; background: var(--line-soft); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.seg .on { background: var(--rar, var(--rare)); }
.seg .mine { background: var(--coral); }
.claims { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.claim-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.claim-chip.waiting { opacity: 0.55; }
.claim-chip form { margin: 0; }
.x { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 14px; padding: 0 2px; line-height: 1; }
.x:hover { color: #ff8a8a; }
.strip { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 16px; align-items: start; }
@media (max-width: 900px) { .strip { grid-template-columns: minmax(0, 1fr); } }
.yours { --edge: var(--coral); }
.pay-links { display: flex; flex-direction: column; gap: 8px; }
.pay-link { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--raised); color: var(--text); font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.pay-link:hover { background: #242c45; text-decoration: none; color: var(--text); }
.pay-link span:last-child { margin-left: auto; font-family: var(--body); font-weight: 500; color: var(--dim); font-size: 13px; letter-spacing: 0; }
.copy-row { min-height: 40px; display: flex; align-items: center; gap: 10px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.copy-row code { font-family: var(--body); color: var(--text); overflow-wrap: anywhere; }
.copy-row button { margin-left: auto; }
.section-gap { margin-top: 16px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th { text-align: left; font-weight: 600; color: var(--dim); font-size: 12px; padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
td.num, th.num { text-align: right; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; align-items: end; }

/* ── New split ──────────────────────────────────────── */
.new-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .new-split { grid-template-columns: minmax(0, 1fr); } }
.new-split fieldset { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.new-split legend { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; margin-bottom: 8px; }
.item-row, .cost-row { display: grid; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.item-row { grid-template-columns: minmax(140px, 2fr) minmax(120px, 1.5fr) 118px 88px 88px 64px 78px 78px 30px; }
.cost-row { grid-template-columns: minmax(140px, 2fr) 110px 150px 120px 30px; }
@media (max-width: 1180px) { .item-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .item-row .wide { grid-column: span 2; } }
@media (max-width: 560px) { .item-row, .cost-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .item-row .wide { grid-column: span 2; } }
.item-row:not([data-division="gram"]) .gram-only { visibility: hidden; }
@media (max-width: 1180px) { .item-row:not([data-division="gram"]) .gram-only { display: none; } }
.preview { position: sticky; top: 76px; }
.handoff-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.radio-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Sign in ────────────────────────────────────────── */
.signin { min-height: calc(100vh - 140px); display: grid; place-items: center; }
.signin .panel { width: min(100%, 420px); }
.signin .in { padding: 28px; gap: 16px; align-items: flex-start; }
.signin .word { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; }
.signin .word i { font-style: normal; color: var(--coral); }
.btn-discord { height: 44px; padding: 0 18px; font-size: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .pay-link { transition: background-color 0.12s ease; }
}
