/* A duty board on a wall, drawn as game UI. Hard edges, flat fills, no glow, no gradients, no rounded corners. One loud colour. */
@font-face { font-family: "Poster"; src: url("fonts/poster.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Label"; src: url("fonts/display.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plain"; src: url("fonts/text-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plain"; src: url("fonts/text-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0c0c0b; --panel: #161614; --well: #20201d; --ink: #f5f3ea; --dim: #b3b0a4; --line: #4a4943;
  --loud: #c8ff00; --on-loud: #0c0c0b;
  --label: 800 1rem/1 "Label", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; border-radius: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.45 "Plain", ui-sans-serif, sans-serif; min-height: 100vh; overflow-wrap: anywhere; }
body.has-hotbar { padding-bottom: 92px; }
h1, h2, h3, h4, p, ol, ul, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--loud); outline-offset: 2px; }
kbd { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dim { color: var(--dim); font-weight: 400; }
.small { font-size: .95rem; color: var(--dim); }
.note { color: var(--dim); font-size: .95rem; margin-top: 10px; }
.note a { color: var(--ink); }
.empty { color: var(--dim); padding: 14px 0; }
.empty a { color: var(--ink); }

h2 { font: 800 1.45rem/1 "Label", "Arial Narrow", sans-serif; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
h2.gapped { margin-top: 30px; }
h3 { font: 700 1.0625rem/1.25 "Plain", sans-serif; }
h3.sub { font: var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 16px 0 6px; }

.mark { font: 400 1.05rem/1 "Poster", sans-serif; text-decoration: none; white-space: nowrap; }
.mark b { font-weight: 400; background: var(--loud); color: var(--on-loud); padding: 0 4px 2px; margin-left: 1px; }

/* Buttons are slabs with a hard shadow, and they sit down when pressed. */
.btn { display: inline-block; background: var(--loud); color: var(--on-loud); border: 3px solid var(--loud); font: 800 1.1rem/1 "Label", sans-serif; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; padding: 11px 14px; min-height: 44px; cursor: pointer; box-shadow: 4px 4px 0 var(--line); text-align: center; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn.big { font-size: 1.3rem; padding: 14px 18px; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn.off { color: var(--line); cursor: not-allowed; }
.btn.off:hover { background: none; color: var(--line); border-color: var(--line); }

.flash { background: var(--ink); color: var(--bg); font-weight: 700; padding: 10px 12px; margin-bottom: 16px; }

/* ---- forms ---- */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 12px; align-items: end; margin-top: 10px; }
.form .span, .form fieldset, .form textarea { grid-column: 1 / -1; }
.form > .btn { justify-self: start; }
label { display: block; font: 700 .95rem/1.25 "Plain", sans-serif; color: var(--dim); }
input, select, textarea { display: block; width: 100%; margin-top: 4px; min-height: 44px; background: var(--bg); color: var(--ink); border: 2px solid var(--line); padding: 8px 10px; font: 400 1.0625rem/1.3 "Plain", sans-serif; }
input:focus, select:focus, textarea:focus { border-color: var(--loud); outline: none; }
input[readonly] { color: var(--dim); font-size: .9rem; }
input::placeholder { color: #7f7d73; }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; color: var(--ink); cursor: pointer; }
.check input { width: 24px; height: 24px; min-height: 0; margin: 0; flex: none; accent-color: var(--loud); }
.boxes { display: grid; gap: 8px; }
legend { font: 700 .95rem/1.25 "Plain", sans-serif; color: var(--dim); padding: 0; margin-bottom: 4px; }
.daypick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.daypick legend { grid-column: 1 / -1; }
.daypick label { cursor: pointer; }
.daypick input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.daypick span { display: block; text-align: center; padding: 11px 0; font: var(--label); letter-spacing: .04em; text-transform: uppercase; border: 2px solid var(--line); color: var(--ink); }
.daypick input:checked + span { background: var(--loud); color: var(--on-loud); border-color: var(--loud); }
.daypick input:focus-visible + span { outline: 3px solid var(--loud); outline-offset: 2px; }
.inline { display: inline; margin: 0; }
.row { display: flex; gap: 8px; align-items: end; }
.row input { flex: 1; min-width: 0; }
.row.wrap { flex-wrap: wrap; margin-top: 12px; }
.trap { position: absolute; left: -9999px; }
.x { background: none; border: 0; color: var(--dim); font: 700 1.2rem/1 "Plain", sans-serif; width: 32px; height: 32px; cursor: pointer; padding: 0; }
.x:hover { background: var(--ink); color: var(--bg); }

details.add { margin-top: 16px; border: 2px dashed var(--line); }
details.add[open] { border-style: solid; }
details.add > summary { font: 800 1.1rem/1 "Label", sans-serif; letter-spacing: .07em; text-transform: uppercase; padding: 14px; cursor: pointer; list-style: none; }
details.add > summary::before { content: "+ "; color: var(--loud); }
details.add > summary::-webkit-details-marker { display: none; }
details.add > form, details.add > .empty { padding: 0 14px 14px; }
.editlink, .links a { display: inline-block; color: var(--dim); font-size: .95rem; padding: 7px 0; }
.links { display: flex; gap: 16px; }

/* ---- the nameplate ---- */
.plate { border-bottom: 3px solid var(--line); padding: 12px 16px 12px; }
.plate-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1180px; margin: 0 auto 12px; }
.mode { font: var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.plate-name { display: flex; justify-content: space-between; align-items: center; gap: 14px; max-width: 1180px; margin: 0 auto; }
.plate h1 { font: 400 clamp(1.6rem, 6vw, 2.8rem)/1.1 "Poster", sans-serif; }
.zone { max-width: 1180px; margin: 6px auto 0; color: var(--dim); font-size: .95rem; }
.tier { display: inline-flex; gap: 3px; flex: none; align-items: center; }
.tier i { width: 12px; height: 20px; border: 2px solid var(--dim); }
.tier i.on { background: var(--loud); border-color: var(--loud); }
.tier.pro { background: var(--loud); color: var(--on-loud); font: 800 1.05rem/1 "Label", sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; }

.board { max-width: 1212px; margin: 0 auto; padding: 18px 16px 0; }

/* ---- hotbar: fixed at the bottom like the bar it's named after ---- */
.hotbar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 640px); display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; background: var(--line); border: 3px solid var(--line); border-bottom: 0; z-index: 10; }
.hotbar.six { grid-template-columns: repeat(6, 1fr); }
.hotbar a { background: var(--panel); text-decoration: none; padding: 6px 2px 8px; text-align: center; min-height: 60px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.hotbar kbd { font: 700 .8rem/1 "Plain", sans-serif; color: var(--dim); }
.hotbar span { font: 800 .98rem/1 "Label", sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.hotbar a:hover { background: var(--well); }
.hotbar a[aria-current] { background: var(--loud); color: var(--on-loud); }
.hotbar a[aria-current] kbd { color: var(--on-loud); }

/* ---- board tab ---- */
.grid-board { display: grid; gap: 22px; }
.frames { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.frame { background: var(--panel); border-left: 6px solid var(--loud); padding: 10px 12px 11px; }
.frame h3 { font: 800 1.4rem/1.05 "Label", sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.role { color: var(--dim); font-size: .95rem; min-height: 1.2em; }
.bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; margin: 7px 0 6px; }
.bar i { height: 10px; background: var(--well); }
.bar i.on { background: var(--loud); }
.plain li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.more { display: inline-block; margin-top: 8px; padding: 6px 0; color: var(--dim); font-size: .95rem; }

.next { background: var(--loud); color: var(--on-loud); padding: 14px 16px 16px; align-self: start; box-shadow: 6px 6px 0 var(--line); }
.next h2 { margin-bottom: 10px; }
.next .kind { font: var(--label); letter-spacing: .08em; text-transform: uppercase; }
.next-title { font: 400 clamp(1.35rem, 5vw, 1.9rem)/1.15 "Poster", sans-serif; margin: 2px 0 10px; }
.count { font: 800 clamp(2.6rem, 11vw, 3.6rem)/1 "Label", sans-serif; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.next-when { margin-top: 6px; font-weight: 700; }
.next-note { margin-top: 8px; }
.next.none { background: var(--panel); color: var(--ink); box-shadow: none; }
.next.none .btn { color: var(--ink); }

/* ---- rota ---- */
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.weeknav h2 { margin: 0; text-align: center; font-size: 1.2rem; }
.weeknav .btn { padding: 11px 16px; font-size: 1.2rem; }
.week { display: grid; gap: 3px; background: var(--line); border: 3px solid var(--line); margin-top: 12px; }
.day { background: var(--panel); padding: 10px 10px 12px; min-width: 0; }
.day.today { background: var(--well); }
.day.today h3, .day.today h4 { color: var(--loud); }
.day h3, .day h4 { font: 800 1.05rem/1 "Label", sans-serif; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; }
.pips { display: grid; grid-template-columns: repeat(24, 1fr); gap: 1px; }
.pips i { height: 14px; }
.pips .c0 { background: var(--bg); }
.pips .c1 { background: #7e9f0a; }
.pips .c2 { background: var(--loud); }
.chips { margin-top: 8px; display: grid; gap: 3px; }
.chip { position: relative; background: var(--bg); padding: 5px 30px 5px 7px; font-size: .95rem; line-height: 1.3; margin-top: 8px; }
.chips .chip { margin-top: 0; }
.chip b { display: block; font: 800 1.05rem/1.1 "Label", sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.chip small { display: block; color: var(--dim); font-size: .85rem; }
.chip .x { position: absolute; top: 0; right: 0; }
.rep { color: var(--dim); }
.gap { margin-top: 8px; color: var(--dim); font-size: .95rem; }

/* ---- events ---- */
.quests { display: grid; gap: 3px; background: var(--line); border: 3px solid var(--line); }
.quest { background: var(--panel); padding: 11px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
.kindtag { grid-column: 1 / -1; justify-self: start; font: 800 .95rem/1 "Label", sans-serif; letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--dim); padding: 3px 6px; color: var(--ink); }
.kindtag.k-restart { background: var(--loud); border-color: var(--loud); color: var(--on-loud); }
.q-note { font-size: .95rem; white-space: pre-line; margin-top: 3px; }
.q-count { font: 800 1.6rem/1 "Label", sans-serif; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.editlink { grid-column: 1 / -1; justify-self: start; }
.cal { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.past li { display: flex; gap: 8px; align-items: center; justify-content: space-between; color: var(--dim); }
.past b { color: var(--ink); font-weight: 400; margin-right: auto; }

/* ---- roster: party slots ---- */
.party { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.member { background: var(--panel); padding: 11px 12px; border-left: 6px solid var(--line); min-width: 0; }
.member.on { border-left-color: var(--loud); }
.m-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.member h3 { font: 800 1.4rem/1.05 "Label", sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.state { font: var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--loud); white-space: nowrap; }
.member.vacant { background: none; border: 2px dashed var(--line); color: var(--dim); display: flex; align-items: center; justify-content: center; min-height: 92px; font: var(--label); letter-spacing: .08em; text-transform: uppercase; }

/* ---- log ---- */
.log-form { margin-bottom: 18px; }
.log { display: grid; gap: 12px; }
.entry { border-left: 6px solid var(--line); padding: 2px 0 2px 12px; }
.entry header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--dim); font-size: .95rem; }
.entry header b { color: var(--ink); }
.entry header .inline { margin-left: auto; }
.entry p { white-space: pre-line; margin-top: 3px; }
.tag { font: 800 .95rem/1 "Label", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.entry.t-urgent { border-left-color: var(--loud); }
.entry.t-urgent .tag { background: var(--loud); color: var(--on-loud); padding: 3px 6px; }
.entry.t-issue { border-left-color: var(--ink); }
.entry.t-issue .tag { color: var(--ink); }
.pager { display: flex; gap: 8px; margin-top: 16px; }

/* ---- tasks ---- */
.tasks { display: grid; gap: 3px; }
.task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--panel); padding: 8px 10px; }
.tick { display: block; width: 34px; height: 34px; background: var(--bg); border: 3px solid var(--dim); color: var(--on-loud); font: 700 1.2rem/1 "Plain", sans-serif; cursor: pointer; padding: 0; text-align: center; }
span.tick { line-height: 28px; cursor: default; }
button.tick:hover { border-color: var(--loud); }
.task.done .tick { background: var(--loud); border-color: var(--loud); }
.task.done h3 { color: var(--dim); text-decoration: line-through; font-weight: 400; }
.late { color: var(--loud); font-weight: 700; }

/* ---- keys ---- */
.keys { display: grid; gap: 16px; }
.panel { background: var(--panel); padding: 14px 14px 16px; border-top: 3px solid var(--line); }
.panel.loud-edge { border-top-color: var(--loud); }
.panel.danger { border-top-color: var(--dim); }
.panel > p { margin-bottom: 8px; }
.panel > .btn { margin-top: 2px; }
.link { margin-bottom: 12px; }
.form + .link { margin-top: 16px; }
.link label { margin-bottom: 4px; }
.link input { margin-top: 0; }
.save { margin-bottom: 18px; }

/* ---- landing ---- */
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; max-width: 1000px; margin: 0 auto; }
.toplink { font: var(--label); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
.toplink:hover { color: var(--loud); }
.land { max-width: 1000px; margin: 0 auto; padding: 0 16px 30px; }
.hero { padding: 26px 0 22px; }
.hero.small h1 { font-size: clamp(2rem, 8vw, 3rem); }
.hero.small .btn { margin-top: 16px; }
.kicker { font: var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.hero h1, .notice-head h1 { font: 400 clamp(2.5rem, 11.5vw, 5.4rem)/1.04 "Poster", sans-serif; }
.notice-head h1 { font-size: clamp(2rem, 9vw, 3.6rem); }
.hero mark { background: var(--loud); color: var(--on-loud); padding: 0 .12em; display: inline-block; }
.lead { font-size: 1.2rem; max-width: 34rem; margin-top: 14px; }
.demo { margin-bottom: 26px; }
.demo-head { display: flex; justify-content: space-between; background: var(--line); padding: 5px 9px; font: var(--label); letter-spacing: .08em; text-transform: uppercase; }
.demo .week { margin-top: 0; border-top: 0; }
#make { margin-bottom: 30px; }
#make .note { margin-top: 12px; }
#licence-landing { margin-bottom: 16px; }
#licence-landing .row { margin-top: 10px; }
#licence-landing label { flex: 1; }
.slots { margin-bottom: 30px; }
.slots ol { display: grid; gap: 3px; background: var(--line); border: 3px solid var(--line); }
.slots li { background: var(--panel); padding: 12px 12px 13px 54px; position: relative; }
.slots kbd { position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--loud); color: var(--loud); font: 800 1.05rem/1 "Label", sans-serif; }
.slots h3 { font: 800 1.25rem/1.1 "Label", sans-serif; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.slots p { color: var(--dim); font-size: 1rem; }
.plans { display: grid; gap: 16px; }
.plan { background: var(--panel); padding: 16px; border-top: 3px solid var(--line); }
.plan.pro { border-top-color: var(--loud); }
.cost { font: 800 3rem/1 "Label", sans-serif; margin-bottom: 10px; }
.cost small { font-size: 1.2rem; color: var(--dim); font-weight: 700; }
.plan ul { margin-bottom: 14px; }
.plan li { padding: 3px 0; }
.plan li::before { content: "▪ "; color: var(--loud); }
.end { margin-top: 22px; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; color: var(--dim); max-width: 1000px; margin: 0 auto; padding: 16px; font-size: .95rem; }

/* ---- public page ---- */
.notice { max-width: 760px; margin: 0 auto; padding: 22px 16px 26px; }
.notice-head { margin-bottom: 20px; }
.notice section { margin-bottom: 26px; }
.notice .next { box-shadow: 6px 6px 0 var(--line); }
.notice .foot { padding: 22px 0 0; }

@media (min-width: 760px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .slots ol { grid-template-columns: 1fr 1fr 1fr; }
  .keys { grid-template-columns: 1fr 1fr; align-items: start; }
  .quest { grid-template-columns: auto minmax(0, 1fr) auto; }
  .kindtag { grid-column: auto; min-width: 7.2rem; text-align: center; }
  .editlink { grid-column: 2 / -1; }
  .plate-name { align-items: flex-end; }
  .demo .week .day h4 { margin-bottom: 7px; }
}

@media (min-width: 1000px) {
  .grid-board { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  body.has-hotbar { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: no-preference) {
  .next { animation: stamp .18s steps(3, end); }
  @keyframes stamp { from { transform: translate(-6px, -6px); box-shadow: 12px 12px 0 var(--line); } }
}
