/* The corkboard (2026-10-24): her ideas pinned up with red string between them, in plain shapes. One colour scheme, no
   dark mode switch (her standing rule). */
:root { --wall: #2a0a14; --velvet: #4e1230; --gold: #c9a24b; --cream: #f2e2c4; --ink: #2a1c2e; --pink: #c4477a; --teal: #4fb3a9; --cork: #b9855a; --string: #b3261e; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--wall); color: var(--cream); font-family: 'Crimson Pro', Georgia, serif; }
main { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 12px 120px; max-width: 1660px; margin: 0 auto; }
.quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.back { position: fixed; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); background: var(--velvet); z-index: 5; }
.back::after { content: ""; position: absolute; left: 12px; top: 10px; width: 9px; height: 9px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); }
.back:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.line { margin: 0; font: italic 15px Lora, Georgia, serif; opacity: .85; }
.line a { color: var(--gold); }
.tidy { padding: 4px 12px; border: 1px dashed var(--gold); border-radius: 14px; background: none; color: var(--gold); font: italic 14px Lora, Georgia, serif; cursor: pointer; }
.tidy:hover, .tidy:focus-visible { background: var(--velvet); outline: none; box-shadow: 0 0 0 3px var(--teal); }
/* the board: cork in a wooden frame; wider than most screens, so it scales down and can be scrolled */
.board { position: relative; width: 100%; overflow: auto; border: 14px solid #5a3a22; border-radius: 6px; box-shadow: inset 0 0 40px #0009, 0 20px 50px #000c;
  background-color: var(--cork);
  background-image: radial-gradient(circle at 20% 30%, #00000014 0 2px, transparent 2.5px), radial-gradient(circle at 70% 60%, #ffffff12 0 1.5px, transparent 2px), radial-gradient(circle at 40% 80%, #00000010 0 1px, transparent 1.5px);
  background-size: 23px 19px, 31px 27px, 17px 13px; }
.pins { position: relative; transform-origin: 0 0; }
.strings { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.strings path { fill: none; stroke: var(--string); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(1px 2px 1px #0007); }
.strings path.lit { stroke: #ff5a4a; stroke-width: 3.5; }
.strings path.short { stroke-width: 1.8; }
/* a card: an index card with a pin through its top */
.card, .label, .scrap { position: absolute; display: block; text-decoration: none; color: var(--ink); transform: rotate(var(--tilt, 0deg)); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.card:active, .label:active, .scrap:active { cursor: grabbing; }
.card { width: 150px; min-height: 66px; padding: 14px 10px 8px; background: #fffdf6; border: 1px solid #d9c9a8; box-shadow: 2px 4px 7px #0008;
  background-image: linear-gradient(#f3a6c6 0 0), repeating-linear-gradient(180deg, transparent 0 17px, #9fc3d955 17px 18px); background-size: 100% 1px, 100% 18px; background-position: 0 22px, 0 23px; background-repeat: no-repeat, repeat; }
.card h3 { margin: 0; font-size: 14px; line-height: 1.15; color: #7a2e55; }
.card .stage { margin: 4px 0 0; font: italic 11px Lora, Georgia, serif; color: #2a1c2e; opacity: .8; }
.card .hint { margin: 2px 0 0; font: 12px/1.25 'Crimson Pro', Georgia, serif; }
.card.lot { background-color: #efe6d2; border-style: dashed; }
.card.lot h3 { color: #6a5a3a; }
.card.dressed { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 2px 4px 7px #0008; }
.card:hover, .card:focus-visible, .label:hover, .scrap:hover { z-index: 9; outline: none; }
.card:focus-visible { box-shadow: 0 0 0 3px var(--teal), 2px 4px 7px #0008; }
.card.moving, .label.moving, .scrap.moving { z-index: 10; box-shadow: 6px 10px 16px #000b; }
/* the card of a place: bigger, darker, a title */
.label { width: 170px; padding: 16px 12px 10px; background: var(--cream); border: 2px solid #7a5230; box-shadow: 2px 4px 7px #0008; text-align: center; }
.label h2 { margin: 0; font-size: 18px; color: var(--ink); }
/* a scrap of paper on a short string: where a thing came from */
.scrap { max-width: 120px; padding: 12px 8px 6px; background: #f6edd6; border: 1px solid #d9c9a8; box-shadow: 1px 3px 5px #0007; font: italic 12px/1.25 Lora, Georgia, serif; color: #2a1c2e;
  clip-path: polygon(0 4%, 6% 0, 30% 3%, 55% 0, 80% 2%, 100% 0, 98% 40%, 100% 70%, 97% 100%, 70% 97%, 40% 100%, 10% 98%, 0 90%); }
/* the pin: a coloured head with a shadow; its colour is the stage */
.pin { position: absolute; left: 50%; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8, transparent 50%), var(--head, #888); box-shadow: 0 2px 3px #0009, inset 0 -2px 3px #0006; }
.pin::after { content: ""; position: absolute; left: 50%; top: 11px; width: 2px; height: 5px; margin-left: -1px; background: #777; }
.pin.s0 { --head: #8a8a92; }   /* an empty lot: grey */
.pin.s1 { --head: #d23a2e; }   /* working: red */
.pin.s2 { --head: #e2b06a; }   /* dressed: gold */
.pin.place { --head: #2a1c2e; width: 16px; height: 16px; margin-left: -8px; }
.pin.scrap { --head: #4fb3a9; width: 11px; height: 11px; margin-left: -5px; top: 2px; }
.words { position: absolute; padding: 2px 8px; background: #fffdf6; border: 1px solid var(--string); border-radius: 10px; font: italic 11px Lora, Georgia, serif; color: #7a2e55; white-space: nowrap; pointer-events: none; transform: translate(-50%, -50%); z-index: 11; }
.doors { display: flex; gap: 20px; margin-top: 10px; }
.door { position: relative; display: block; width: 46px; height: 76px; border: 3px solid var(--gold); border-radius: 23px 23px 4px 4px; background: #b64a1e; }
.door .knob { position: absolute; right: 8px; top: 44px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.door:hover, .door:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .card, .label, .scrap { transform: none; } }
