:root {
  --paper: #F4ECDD; --card: #FFF6E6; --ink: #221B2E; --frame: #2A2138; --muted: #6E6478;
  --sun: #FFC94A; --pink: #F48FB1; --teal: #3FB7A8; --blue: #4F9BD9; --red: #E8374A;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: var(--frame); color: var(--ink); font: 600 18px/1.3 Fredoka, "Trebuchet MS", system-ui, sans-serif;
  -webkit-user-select: none; user-select: none; touch-action: none; }
.display { font-family: "Luckiest Guy", Impact, sans-serif; font-weight: 400; letter-spacing: .03em; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }

/* the 1600x900 board, scaled to fit by app.js */
.board { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; overflow: hidden;
  border-radius: 28px; background: var(--paper);
  background-image: radial-gradient(rgba(34, 27, 46, .07) 1.6px, transparent 1.7px); background-size: 32px 32px; }

/* goal notes */
.note { position: absolute; width: 232px; height: 108px; padding: 10px 14px; border-radius: 16px; background: #fff;
  box-shadow: inset 0 0 0 3px var(--ink), 0 5px 0 var(--ink); transform: rotate(var(--r, 0deg)); transition: background .2s; }
.note.new { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.note.mine { cursor: pointer; background: #FFF1C9; }
.note.done { background: #D6F1EC; }
.note .who { display: flex; align-items: center; gap: 7px; font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.note .who i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--ink); }
.note .who img { width: 20px; height: 20px; margin-left: auto; }
.note p { margin: 4px 0 0; font-size: 18px; line-height: 1.22; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.note .x { position: absolute; right: 6px; top: 4px; font-size: 20px; color: var(--red); }
@keyframes pop { from { transform: rotate(var(--r)) scale(.3); opacity: 0; } }

/* Kubo + countdown card */
.kubo { position: absolute; left: 800px; top: 176px; height: 156px; transform: translateX(-50%); pointer-events: none; }
.kubo.bump { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: translateX(-50%) translateY(-14px) scale(1.04); } }
.card { position: absolute; left: 540px; top: 320px; width: 520px; height: 360px; padding: 22px 28px 16px; border-radius: 28px;
  background: var(--card); box-shadow: inset 0 0 0 4px var(--ink), 0 8px 0 var(--ink); display: flex; flex-direction: column; }
.clock { display: flex; justify-content: center; align-items: baseline; font-size: 112px; line-height: 1; height: 106px; color: var(--ink); }
.clock .d { display: inline-block; width: .6em; text-align: center; }
.clock .sep { display: inline-block; width: .3em; text-align: center; transform: translateY(-.06em); }
.clock .days { font-size: .55em; margin-right: .25em; }
.clock.party { color: var(--red); font-size: 96px; }
.until { margin: 6px 0 14px; text-align: center; font-size: 20px; color: var(--muted); }
.goalform { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; }
.field { font: inherit; font-weight: 500; font-size: 21px; padding: 10px 14px; border: 0; border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 3px var(--ink); outline: none; color: var(--ink); min-width: 0; -webkit-user-select: text; user-select: text; }
.field:focus { box-shadow: inset 0 0 0 3px var(--blue); }
.field.name { flex: 1; font-size: 18px; }
.btn { border-radius: 14px; background: var(--sun); color: var(--ink); padding: 8px 22px; font-size: 24px;
  box-shadow: inset 0 0 0 3px var(--ink), 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(3px); box-shadow: inset 0 0 0 3px var(--ink), 0 1px 0 var(--ink); }
.btn.small { font-size: 18px; padding: 6px 14px; }
.foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.muted { color: var(--muted); }
.links { display: flex; gap: 14px; }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.link:hover { color: var(--blue); }

.ball { position: absolute; left: 0; top: 0; width: 94px; height: 94px; margin: -3px 0 0 -3px; pointer-events: none; will-change: transform; }

/* all-goals panel */
.list { position: absolute; inset: 40px 120px; background: var(--card); border-radius: 26px; padding: 22px 26px;
  box-shadow: inset 0 0 0 4px var(--ink), 0 8px 0 var(--ink); display: flex; flex-direction: column; z-index: 5; }
.list[hidden] { display: none; }
.listhead { display: flex; justify-content: space-between; align-items: center; }
.listhead h2 { margin: 0; font-size: 34px; }
.listbody { margin-top: 14px; overflow-y: auto; columns: 2; column-gap: 28px; }
.listbody .item { break-inside: avoid; padding: 8px 0; border-bottom: 2px solid #E6D9C2; font-size: 19px; }
.listbody .item b { color: var(--muted); font-weight: 600; margin-right: 6px; }
.listbody .item.done { color: #23786E; }
.listbody .empty { color: var(--muted); }

/* other people's cursors, drawn in screen pixels so they stay readable when the board is small */
.cursors { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.cursor { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity .2s; }
.cursor svg { display: block; width: 24px; height: 28px; filter: drop-shadow(0 2px 0 rgba(34, 27, 46, .35)); }
.cursor span { position: absolute; left: 18px; top: 22px; padding: 2px 9px; border-radius: 10px; white-space: nowrap;
  font-size: 13px; color: #fff; background: var(--c); box-shadow: 0 0 0 2px var(--ink); }
