/* 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; left: 14px; top: 78px; 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 is scaled and pulled about as one thing (below) */
.board { position: relative; width: 100%; 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; } }
/* THE ROOM'S BOARD (2026-10-29): the board over the bed in her Marble room, up close. The rose wallpaper and the cork are
   cut from the room's own picture (art/board/), every card is the note, photo or map it is in the room, in its paper's
   colour and tilt, and the yarn is the room's red. board.js adds the class "room" when board.json carries the room. */
.board.room { border: 0; border-radius: 4px; background: #a59c86 url(art/board/wallpaper.jpg?v=2) 0 0 / 930px 500px; box-shadow: 0 20px 50px #000c; }
.board.room .pins { background: url(art/board/wallpaper.jpg?v=2) 0 0 / 930px 500px; }
.board.room .cork { position: absolute; border: 9px solid #6b4528; border-radius: 3px; background: url(art/board/cork.jpg) 0 0 / 100% 100%;
  box-shadow: 3px 8px 16px #0008, inset 0 0 22px #0007; border-color: #7a5232 #5e3c22 #4f321c #6b4528; }
.board.room .card { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0; border: 0; background: var(--paper);
  background-image: linear-gradient(160deg, #ffffff1f, transparent 45%, #0000001a); box-shadow: 2px 4px 7px #0008; }
.board.room .card.lot, .board.room .card.dressed { border: 0; background-color: var(--paper); }
.board.room .card.dressed { box-shadow: 0 0 0 2px var(--gold), 2px 4px 7px #0008; }
.board.room .card h3 { width: 84%; max-height: 74%; margin: 6% 0 0; overflow: hidden; text-align: center; line-height: 1.08; color: #2b2738; font-family: Lora, Georgia, serif !important; font-style: italic; font-weight: 400 !important; letter-spacing: 0; }
.board.room .card.sheet { background-image: linear-gradient(160deg, #ffffff1f, transparent 45%, #0000001a), repeating-linear-gradient(180deg, transparent 0 13px, #7d9bb440 13px 14px); background-position: 0 0, 0 18%; }
.board.room .card img.hand { max-width: 84%; max-height: 66%; margin-top: 6%; object-fit: contain; pointer-events: none; }
.board.room .card.photo .pic { position: absolute; left: 8%; top: 7%; width: 84%; height: 71%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(.92); pointer-events: none; }
.board.room .card.photo .cap { position: absolute; left: 6%; right: 6%; top: 79%; bottom: 3%; display: flex; align-items: center; justify-content: center; }
.board.room .card.photo .cap h3 { width: 100%; max-height: 100%; margin: 0; }
.board.room .card.photo .cap img.hand { max-height: 100%; margin: 0; }
.board.room .card.map svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.board.room .card.map path, .board.room .card.map ellipse { fill: none; stroke: #3c3446; stroke-width: 1.4px; vector-effect: non-scaling-stroke; }
.board.room .card.map .spot { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; font: italic 14px/1.05 Lora, Georgia, serif; color: #2b2738; pointer-events: none; }
.board.room .card.map .spot img.hand { max-width: 100%; max-height: 100%; }
.board.room .pin { width: 10px; height: 10px; margin: -5px 0 0 -5px; z-index: 2; }
.board.room .pin::after { display: none; }
.board.room .strings { z-index: 3; }
.board.room .strings path { stroke: #801a22; stroke-width: 3.4; filter: drop-shadow(2px 3px 1.5px #0008); }
.board.room .strings path.lit { stroke: #c4312c; stroke-width: 4.2; }
.board.room .card:hover, .board.room .card:focus-visible { z-index: 9; }
.board.room .scrap { z-index: 4; }
/* the kinds of string (2026-10-29): red yarn ties ideas; gold thread is a door between pages; teal thread a door inside
   the game; pale thread runs from the bedroom on the map to what shows up there. Pointing at a card lights its own. */
.board.room .strings path.page { stroke: #d9b45e; stroke-width: 1.8; }
.board.room .strings path.page.twin { stroke-width: 1.3; }
.board.room .strings path.game { stroke: #3f9e94; stroke-width: 1.8; stroke-dasharray: 7 4; }
.board.room .strings path.place { stroke: #efe4cc; stroke-width: 1.5; }
.board.room .strings path { transition: opacity .25s; }
.board.room .strings.quiet path { opacity: .22; }
.board.room .strings.quiet path.lit { opacity: 1; stroke-width: 4; }
.board.room .strings.quiet path.page.lit, .board.room .strings.quiet path.game.lit, .board.room .strings.quiet path.place.lit { stroke-width: 2.6; }
/* THE WALLS (2026-10-29): with walls.css the page is the room's wall itself, so the board drops its own frame and paper
   and hangs straight on the wallpaper; the few words on the page sit on little labels so the roses do not swallow them. */
.walls main { padding-bottom: 40px; }
.walls .board.room, .walls .board.room .pins { background: none; box-shadow: none; }
.walls .tidy { background: #fffaf0e6; color: #2a1c2e; border: 1px solid #7a5232; box-shadow: 1px 2px 4px #0005; }
.walls .tidy:hover, .walls .tidy:focus-visible { background: #fffaf0; box-shadow: 0 0 0 3px var(--teal); }
.walls .line a { color: #7a2e55; }
.walls .back { z-index: 31; }

/* nearer (her walk, 31 October night): the mouse drags the bare cork; the magnifying glass, as on a picture's card, is a round
   button at the foot of the screen, and while it is on a round lens shows the board under the mouse or finger three times nearer */
.board.panning { cursor: grabbing; }
.glass-on { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border-radius: 50%;
  border: 3px solid #b8913f; box-shadow: 0 0 0 1px #6a4a10, 0 4px 12px #0008; background: #fbf5e8; color: #3a2430; cursor: pointer; }
.glass-on svg { width: 28px; height: 28px; }
.glass-on[aria-pressed="true"] { background: #f3d98c; }
.glass-on:focus-visible { outline: 3px solid #4fb3a9; outline-offset: 3px; }
.board-over { position: fixed; z-index: 20; cursor: none; touch-action: none; }
.board-lens { position: fixed; z-index: 21; overflow: hidden; border-radius: 50%; border: 5px solid #b8913f; box-shadow: 0 0 0 2px #6a4a10, 0 10px 24px #0009; pointer-events: none; background: #a59c86; }
.board-lens[hidden] { display: none; }
.board-lens .board-lens-in { position: absolute; left: 0; top: 0; }

/* the board is pulled and scaled as one thing inside its space, nothing scrolls (board.js, "where the board is") */
.board { overflow: hidden; touch-action: none; cursor: grab; }
.board.panning { cursor: grabbing; }
.board .pins { position: absolute; left: 0; top: 0; }
.board .card { -webkit-touch-callout: none; }
.line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.board .card.moving, .board .label.moving, .board .scrap.moving { filter: drop-shadow(6px 10px 8px #0009); }
@media (pointer: coarse) { .board.room .strings path { filter: none; } }   /* a hundred soft shadows, swaying, is a lot for a phone */

/* OVER THE ROOM (board.html?in=room, room-view.js): no wall and no page, only the board lying over the room, the room dim behind it */
html.inroom, html.inroom body { height: 100%; overflow: hidden; background: transparent !important; background-image: none !important; }
html.inroom .crown, html.inroom .skirting, html.inroom .back { display: none !important; }
html.inroom main { position: fixed; inset: 0; display: block; max-width: none; margin: 0; padding: 0; }
html.inroom .board { position: absolute; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.inroom .line { position: fixed; left: 12px; top: 12px; right: 70px; z-index: 12; justify-content: flex-start; opacity: 1; }
html.inroom .board-x { position: fixed; right: 10px; top: 10px; z-index: 12; width: 48px; height: 48px; padding: 0; border-radius: 50%; font: 30px / 1 Georgia, serif; color: #f3d98c; background: #2a0a14; border: 2px solid #c9a24b; cursor: pointer; touch-action: manipulation; }
html.inroom .board-x:hover, html.inroom .board-x:focus-visible { background: #4e1230; box-shadow: 0 0 0 3px #4fb3a9; outline: none; }
@media (min-width: 1800px) { html.inroom .board-x { width: 64px; height: 64px; font-size: 40px; } }

/* a card in the hand: its paper large, what we have written about it under it; a touch beside them puts it back */
.up { position: fixed; inset: 0; z-index: 40; overflow: auto; padding: 16px; background: #1a0d10d9; cursor: default; touch-action: pan-y; }
.up.come { animation: up-come .28s cubic-bezier(.2, .8, .3, 1); }
@keyframes up-come { from { opacity: 0; } to { opacity: 1; } }
.up-sheet { display: flex; flex-direction: column; align-items: center; gap: 22px; min-height: 100%; justify-content: center; padding: 24px 56px; }
.up-paper { position: relative; flex: none; transform: rotate(var(--tilt, 0deg)); }
.board.room .up-paper .card, .up-paper .card { position: absolute; pointer-events: none; cursor: default; box-shadow: 3px 7px 16px #000a; }
.up-words { flex: none; width: min(100%, max(480px, 34vw)); padding: 16px 20px 18px; border: 1px solid #d9c9a8; border-radius: 3px; background: #fffdf6; color: #2a1c2e; box-shadow: 3px 7px 16px #000a; font: clamp(17px, 1.25vw, 28px) / 1.32 'Crimson Pro', Georgia, serif; }
.up-words h2 { margin: 0; font: italic 1.3em / 1.12 Lora, Georgia, serif; color: #7a2e55; }
.up-words p { margin: .55em 0 0; }
.up-words .up-stage { margin-top: .2em; font: italic .85em Lora, Georgia, serif; color: #2a1c2e; }
.up-words .up-scrap { padding: .3em .6em; background: #f6edd6; font: italic .92em / 1.3 Lora, Georgia, serif; }
.up-ties { margin-top: .9em; padding-top: .7em; border-top: 1px dashed #b3261e; }
.up-ties p { margin: 0 0 .4em; font: italic .9em Lora, Georgia, serif; }
.up-ties button { min-height: 38px; margin: 0 6px 6px 0; padding: 4px 11px; border: 1px solid #b3261e; border-radius: 17px; background: #fff; color: #2a1c2e; font: .9em / 1.1 'Crimson Pro', Georgia, serif; cursor: pointer; touch-action: manipulation; }
.up-ties button:hover, .up-ties button:focus-visible { background: #f3d98c; outline: none; box-shadow: 0 0 0 3px #4fb3a9; }
.up-go { display: inline-block; margin-top: .9em; padding: .45em 1em; border: 2px solid #c9a24b; border-radius: 22px; background: #2a0a14; color: #f3d98c; font: italic 1em Lora, Georgia, serif; text-decoration: none; touch-action: manipulation; }
.up-go:hover, .up-go:focus-visible { background: #4e1230; outline: none; box-shadow: 0 0 0 3px #4fb3a9; }
.up-x, .up-prev, .up-next { position: fixed; z-index: 41; width: 48px; height: 48px; padding: 0; border-radius: 50%; font: 30px / 1 Georgia, serif; color: #f3d98c; background: #2a0a14; border: 2px solid #c9a24b; cursor: pointer; touch-action: manipulation; }
.up-x:hover, .up-prev:hover, .up-next:hover, .up-x:focus-visible, .up-prev:focus-visible, .up-next:focus-visible { background: #4e1230; box-shadow: 0 0 0 3px #4fb3a9; outline: none; }
.up-x { right: 10px; top: 10px; }
.up-prev { left: 10px; top: calc(50% - 24px); }
.up-next { right: 10px; top: calc(50% - 24px); }
@media (max-width: 760px) {
  .up-sheet { padding: 62px 0 24px; justify-content: flex-start; }
  .up-prev { left: 10px; top: 10px; } .up-next { left: 66px; right: auto; top: 10px; }
}
@media (min-width: 1800px) { .up-x, .up-prev, .up-next { width: 64px; height: 64px; font-size: 40px; } }
@media (prefers-reduced-motion: reduce) { .up.come { animation: none; } }
.up-paper .card h3 { padding-bottom: .14em; }   /* the tails of the letters, this large */
html.inroom .glass-on { right: 7px; bottom: auto; top: 68px; }   /* the room's purse has the corner */
@media (min-width: 1800px) { html.inroom .glass-on { right: 15px; top: 84px; } }
.card-up .board-x, .card-up .glass-on { display: none !important; }
html.inroom .board { background: #1a0d1059; }   /* the room's own board is right behind this one: a little more dark between them */
