
/* Layout: the chart of the coast fills the room. Top left, the year in letterpress. Right, the yellow 18th-green board with the story under the leaders.
   Bottom left, a magnifying glass over the sea shows that year's links. Bottom, the years as a map scale bar. Below the fold: dials, the rota and the year sheet.
   One deliberate look: printed paper in daylight. */
:root {
  --paper: #efe7d4; --paper-2: #e6dcc4; --paper-3: #d9cdb1;
  --ink: #2a2118; --ink-2: #4a3e30; --ink-3: #6f6250;
  --sea: #6f8f9b; --sea-ink: #34505b;
  --yellow: #f2c41b; --yellow-2: #e0ae0c; --yellow-ink: #1b1608;
  --red: #b3261e; --scot: #2c4d74; --eng: #a3322a; --nire: #3f6b46;
  --display: "IM Fell English", "IM Fell DW Pica", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --caps: "IM Fell English SC", "IM Fell English", "Iowan Old Style", Georgia, serif;
  --text: "EB Garamond", Garamond, "Palatino Linotype", Palatino, Georgia, serif;
  --tile: "Archivo Narrow", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
html { background: var(--paper); }
body { background-color: var(--paper); background-image: var(--paper-tex, none); background-size: 720px 720px; color: var(--ink); }
body { font-family: var(--text); font-size: 18px; line-height: 1.5; }
button { font: inherit; color: inherit; }

/* ---------- the stage ---------- */
.stage { position: relative; height: clamp(680px, 100svh, 1040px); overflow: hidden; isolation: isolate; }
.view { position: absolute; inset: 0; }
#world { position: absolute; inset: 0; transition: filter .6s ease; }
#world canvas:not(.flatmap) { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
[hidden] { display: none !important; }
.grain { position: absolute; inset: 0; pointer-events: none; z-index: 2; background-image: var(--paper-tex, none); background-size: 720px 720px; mix-blend-mode: multiply; opacity: .95; }
#flash { position: absolute; inset: 0; pointer-events: none; z-index: 3; background: rgba(240, 244, 255, .9); opacity: 0; }

/* map labels, projected from the chart */
.labels { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.vlab { position: absolute; transform: translate(-50%, -100%); font-family: var(--caps); font-size: 14px; color: var(--ink); white-space: nowrap; letter-spacing: .02em;
  text-shadow: 0 0 3px var(--paper), 0 0 6px var(--paper), 0 0 10px var(--paper); transition: opacity .4s, color .4s; }
.vlab b { font-weight: 400; font-family: var(--text); font-size: 14px; color: var(--ink); margin-left: 5px; font-variant-numeric: tabular-nums; background: rgba(250, 246, 236, .94); padding: 0 4px; border-radius: 1px; box-shadow: 0 0 0 1px rgba(42, 33, 24, .18); text-shadow: none; }
.vlab.on { color: #9a1d16; font-size: 17px; text-shadow: 0 0 2px var(--paper), 0 0 4px var(--paper), 0 0 8px var(--paper), 0 0 14px var(--paper), 0 0 22px var(--paper); }
.vlab.off { opacity: 0; }
.rlab { position: absolute; transform: translate(-50%, -50%); font-family: var(--display); font-style: italic; font-size: 15px; color: rgba(42, 33, 24, .64); letter-spacing: .32em; white-space: nowrap; text-transform: uppercase; }
.rlab.sea { color: rgba(40, 70, 82, .74); letter-spacing: .5em; font-size: 13px; }
.lead { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: visible; }

/* header */
.corner { position: absolute; left: max(16px, 3.5vw); top: 16px; z-index: 6; font-family: var(--text); font-style: italic; font-size: 15px; color: var(--ink-2); text-shadow: 0 0 2px var(--paper), 0 0 5px var(--paper), 0 0 10px var(--paper), 0 0 16px var(--paper); }
.top { position: absolute; left: max(16px, 3.5vw); top: 38px; z-index: 6; pointer-events: none; max-width: 42vw; }
.yr { font-family: var(--display); font-size: clamp(76px, 9.5vw, 136px); line-height: .84; letter-spacing: -.02em; color: var(--ink);
  text-shadow: .5px .5px 0 rgba(42, 33, 24, .35), -.4px 0 0 rgba(42, 33, 24, .25), 0 0 1px rgba(42, 33, 24, .4), 0 0 10px var(--paper), 0 0 22px var(--paper); }
.ed { font-family: var(--display); font-style: italic; font-size: 22px; margin-top: 8px; color: var(--ink); text-shadow: 0 0 2px var(--paper), 0 0 5px var(--paper), 0 0 10px var(--paper), 0 0 18px var(--paper), 0 0 26px var(--paper); }
.ed b { font-weight: 400; font-style: normal; font-family: var(--caps); }

/* the yellow board */
.boardpos { position: absolute; right: max(16px, 3vw); top: 30px; z-index: 6; transform-origin: 100% 0; }
.board { position: relative; width: 520px; }
.legs { position: absolute; left: 34px; right: 34px; top: 24px; height: 1200px; z-index: -1; display: flex; justify-content: space-between; pointer-events: none; }
.legs i { width: 12px; height: 100%; background: linear-gradient(90deg, #6d6a62, #9e9a90 45%, #5d5a52); box-shadow: 2px 0 6px rgba(0,0,0,.25); }
.face { position: relative; background: var(--yellow); padding: 12px 14px 14px; border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(27, 22, 8, .85), inset 0 0 0 5px var(--yellow), inset 0 0 0 6px rgba(27, 22, 8, .35), 0 22px 40px rgba(60, 45, 15, .32), 0 3px 0 #b8900a;
  background-image: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 35%), repeating-linear-gradient(90deg, rgba(120, 90, 0, .05) 0 1px, transparent 1px 7px); }
.bhead { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; border-bottom: 2px solid var(--yellow-ink); }
.bhead .tiles { display: flex; gap: 3px; }
.bhead .tiles .t { width: 22px; height: 28px; font-size: 19px; }
.bhead span.r { font-family: var(--tile); font-weight: 700; font-size: 13.5px; letter-spacing: .16em; color: var(--yellow-ink); text-transform: uppercase; }
.cols { display: grid; grid-template-columns: 24px minmax(0, 1fr) repeat(4, 30px) 46px; column-gap: 4px; padding: 6px 4px 2px; font-family: var(--tile); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; color: var(--yellow-ink); text-transform: uppercase; }
.cols span { text-align: center; } .cols span:nth-child(2) { text-align: left; } .cols span:first-child { text-align: left; }
.brows { display: grid; gap: 5px; padding: 4px 4px 2px; }
.brow { display: grid; grid-template-columns: 24px minmax(0, 1fr) repeat(4, 30px) 46px; column-gap: 4px; align-items: center; min-height: 30px; position: relative; }
.brow .name { display: flex; gap: 2px; min-width: 0; overflow: hidden; }
.t { flex: none; width: 19px; height: 26px; display: grid; place-items: center; font-family: var(--tile); font-weight: 700; font-size: 17px; line-height: 1; color: #111;
  background: linear-gradient(180deg, #fff, #ecebe6); border-radius: 1.5px; box-shadow: 0 1px 0 rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.12); }
.t.sp { background: transparent; box-shadow: none; width: 8px; }
.t.red { color: var(--red); }
.t.drop { animation: tdrop .38s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes tdrop { from { transform: translateY(-14px) rotateX(70deg); opacity: 0; } to { transform: none; opacity: 1; } }
.n { height: 26px; display: grid; place-items: center; font-family: var(--tile); font-weight: 700; font-size: 16px; color: #111; background: linear-gradient(180deg, #fff, #ecebe6);
  border-radius: 1.5px; box-shadow: 0 1px 0 rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.12); font-variant-numeric: tabular-nums; }
.n.tot { font-size: 18px; }
.n.red { color: var(--red); }
.n.empty { background: transparent; box-shadow: none; }
.btag { position: absolute; right: -6px; top: -10px; display: flex; gap: 4px; flex-direction: row-reverse; z-index: 2; }
.btag span { font-family: var(--tile); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--yellow-ink);
  padding: 1px 6px; border-radius: 1px; box-shadow: 0 2px 3px rgba(0,0,0,.25); white-space: nowrap; }
.btag span.red { background: var(--red); }
.btag span:nth-child(1) { transform: rotate(2.5deg); } .btag span:nth-child(2) { transform: rotate(-2deg); }
.well { display: flex; gap: 3px; flex-wrap: wrap; padding: 2px 4px 8px; }
.well:empty { display: none; }
.story { margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--yellow-ink); display: grid; grid-template-columns: 118px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.slab { justify-self: start; font-family: var(--tile); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #111; line-height: 1.2;
  padding: 5px 7px 4px; background: linear-gradient(180deg, #fff, #ecebe6); border-radius: 1.5px; box-shadow: 0 1px 0 rgba(0,0,0,.35); margin-top: 3px; transition: opacity .25s; }
#capTxt { margin: 0; font-family: var(--text); font-weight: 500; font-size: 19px; line-height: 1.32; color: var(--yellow-ink); text-wrap: pretty; transition: opacity .25s; }
.story.swap .slab, .story.swap #capTxt { opacity: 0; }
.steps { grid-column: 1 / -1; display: flex; gap: 4px; margin-top: 10px; }
.steps:empty { display: none; }
.steps i { flex: 1; height: 2px; background: rgba(27, 22, 8, .18); position: relative; overflow: hidden; }
.steps i b { position: absolute; inset: 0; background: var(--yellow-ink); transform-origin: 0 50%; transform: scaleX(0); }

.under { position: relative; display: flex; align-items: flex-start; gap: 22px; padding: 0 60px 0 62px; }
.hanger { position: relative; padding-top: 20px; transform-origin: 50% 0; }
.hanger:hover, .hanger:focus-within { animation: swing 1.5s cubic-bezier(.3, .6, .4, 1); }
@keyframes swing { 0% { transform: rotate(0); } 18% { transform: rotate(2.4deg); } 42% { transform: rotate(-1.6deg); } 66% { transform: rotate(.7deg); } 100% { transform: rotate(0); } }
.chain { position: absolute; top: 0; width: 4px; height: 22px; background: repeating-linear-gradient(180deg, #8e8a80 0 3px, #5d5a52 3px 4px, rgba(0,0,0,0) 4px 6px); }
.chain.l { left: 18px; } .chain.r { right: 18px; }
.playplate { white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; font-family: var(--tile); font-weight: 700; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: #111;
  padding: 9px 18px 8px 15px; background: linear-gradient(180deg, #fff, #ecebe6); border: 0; border-radius: 1.5px; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.35), 0 10px 18px rgba(60, 45, 15, .3); }
.playplate svg { width: 11px; height: 11px; }
.tlink { white-space: nowrap; margin-top: 28px; padding: 2px 12px 4px; background: var(--paper); border: 1px solid rgba(60, 45, 15, .28); box-shadow: 0 2px 5px rgba(40, 30, 10, .22); cursor: pointer; font-family: var(--text); font-style: italic; font-size: 20px; color: var(--ink); text-decoration: none;
  text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tlink:hover, .tlink:focus-visible { text-decoration: underline; outline: none; }
.mute { margin-left: auto; margin-top: 26px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(239, 231, 212, .7); border: 1px solid rgba(42, 33, 24, .3); color: var(--ink-2); }
.mute:hover { color: var(--ink); border-color: rgba(42, 33, 24, .6); }
.playplate:focus-visible, .mute:focus-visible, .scale:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* the glass: that year's links, magnified */
.glass { --gs: clamp(220px, 33vh, 310px); position: absolute; z-index: 5; width: var(--gs); height: var(--gs); left: max(16px, 3.5vw); bottom: clamp(176px, 22vh, 196px); border-radius: 50%;
  transition: width .9s cubic-bezier(.3, 1, .4, 1), height .9s cubic-bezier(.3, 1, .4, 1), left .9s cubic-bezier(.3, 1, .4, 1), bottom .9s cubic-bezier(.3, 1, .4, 1); }
.glass .lensv { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #dfe6e2; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.glass canvas { width: 100% !important; height: 100% !important; display: block; }
.glass .rim { position: absolute; inset: -9px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 210deg, #6b4f22, #c9a35a, #f4dc9a, #b88a3e, #6b4f22, #a77d36, #e8c97c, #8a6a2c, #6b4f22);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 11px), #000 calc(100% - 10.5px)); mask: radial-gradient(closest-side, transparent calc(100% - 11px), #000 calc(100% - 10.5px));
  box-shadow: 0 14px 30px rgba(60, 45, 15, .35); }
.glass .shine { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse 60% 40% at 32% 22%, rgba(255,255,255,.35), transparent 60%), radial-gradient(circle at 50% 50%, transparent 62%, rgba(20, 30, 30, .25) 100%); }
.glass .gcap { position: absolute; left: 50%; bottom: -32px; transform: translateX(-50%); font-family: var(--caps); font-size: 16px; color: var(--ink); white-space: nowrap;
  background: var(--paper); padding: 1px 12px 2px; border: 1px solid rgba(60, 45, 15, .28); box-shadow: 0 2px 5px rgba(40, 30, 10, .22); }
.glass .gcap i { font-family: var(--text); font-size: 13.5px; color: var(--ink-2); margin-left: 6px; }
.glass.big { --gs: min(68vh, 560px); left: calc(50% - var(--gs) / 2 - 12vw); bottom: calc(50% - var(--gs) / 2 + 20px); }

/* the scale of years */
.rail { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; padding: 0 max(16px, 3.5vw) 12px; }
.rail::before { content: ""; position: absolute; inset: 0; z-index: -1; background-color: var(--paper); background-image: var(--paper-tex, none); background-size: 720px 720px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 34%); mask-image: linear-gradient(180deg, transparent, #000 34%); }
.rhead { position: relative; display: flex; justify-content: space-between; align-items: flex-end; min-height: 22px; }
.quiet { font-family: var(--text); font-style: italic; font-size: 15px; color: var(--ink-2); }
.first { position: absolute; bottom: 8px; font-family: var(--text); font-style: italic; font-size: 16px; color: var(--ink); white-space: nowrap; transition: opacity .7s; text-shadow: 0 0 2px var(--paper), 0 0 6px var(--paper), 0 0 12px var(--paper); }
.first.gone { opacity: 0; }
.scale { position: relative; height: 66px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.scale.drag { cursor: grabbing; }
.scale svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.src { display: flex; justify-content: flex-end; margin-top: 2px; }

@media (max-width: 1100px) {
  .stage { height: auto; display: flex; flex-direction: column; gap: 10px; padding-block: 14px 0; }
  .view { position: relative; inset: auto; height: min(70svh, 118vw); min-height: 360px; order: 1; }
  .corner { position: relative; left: auto; top: auto; order: -1; padding-inline: 16px; }
  .top { position: relative; left: auto; top: auto; order: 0; padding-inline: 16px; max-width: none; }
  .yr { font-size: 78px; }
  .glass { position: relative; left: auto !important; bottom: auto !important; order: 2; align-self: center; --gs: min(72vw, 300px) !important; margin: 4px 0 40px; }
  .boardpos { position: relative; right: auto; top: auto; order: 4; align-self: center; transform-origin: 50% 0; }
  .legs { display: none; }
  .rail { position: relative; order: 5; }
  .rail::before { -webkit-mask-image: none; mask-image: none; }
  .flagbox { position: relative; order: 3; inset: auto; height: min(52vw, 230px); margin: 0 16px; }
  .under { padding: 0 16px; }
  .story { grid-template-columns: 1fr; row-gap: 8px; }
  #capTxt { font-size: 27px; } .slab { font-size: 15px; }
  .playplate { font-size: 19px; } .tlink { font-size: 23px; margin-top: 32px; } .mute { width: 44px; height: 44px; } .under { gap: 16px; }
  .rlab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .t.drop { animation: none; } #world, .glass { transition: none; } }

/* ---------- additions ---------- */
#world.np { filter: saturate(.35) brightness(.98); }
.lensv canvas { transition: filter .25s ease, opacity .25s ease; }
.lensv.blur canvas { filter: blur(7px) saturate(.6); opacity: .8; }
.glass { cursor: default; }
.glass.big { cursor: zoom-out; }
.glass.big .gcap { font-size: 23px; bottom: -46px; }
.glass.big .gcap i { font-size: 16px; }
.brow.gone { opacity: 0; transform: translateX(-12px); transition: opacity .4s, transform .4s; }
.brow.np { grid-template-columns: minmax(0, 1fr); }
.brow .pos { font-family: var(--tile); font-weight: 700; font-size: 14px; color: var(--yellow-ink); letter-spacing: -.02em; white-space: nowrap; }
.brow .am { flex: none; align-self: center; margin-left: 3px; font-family: var(--tile); font-weight: 700; font-size: 12px; color: var(--yellow-ink); border: 1.5px solid var(--yellow-ink); border-radius: 50%; width: 16px; height: 16px; display: grid; place-items: center; line-height: 1; }
.brows.many { gap: 4px; }
.brows.many .brow { min-height: 25px; }
.brows.many .t, .brows.many .n { height: 23px; }
.brows.many .t { font-size: 15.5px; width: 18px; }
.brows.many .n { font-size: 15px; } .brows.many .n.tot { font-size: 16.5px; }
.bmore { font-family: var(--tile); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow-ink); padding: 2px 0 0 28px; opacity: .8; }
.ed span { white-space: nowrap; }
.scale text { font-family: var(--text); font-style: italic; fill: var(--ink-2); }
.scale text.tick { font-size: 14px; fill: var(--ink); }
.scale text.eratx { font-size: 13.5px; fill: var(--ink-2); }
body.nogl .glass, body.nogl .lead { display: none; }
.ntag { flex: none; align-self: center; margin-left: 8px; font-family: var(--tile); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: var(--yellow-ink); padding: 2px 6px 1px; border-radius: 1px; box-shadow: 0 2px 3px rgba(0,0,0,.25); white-space: nowrap; transform: rotate(-2deg); }
.ntag + .ntag { margin-left: 5px; transform: rotate(1.5deg); }
.ntag.red { background: var(--red); }

/* the chart's own title block, reprinted with each era */
.cart { position: absolute; z-index: 3; top: 78px; left: 50%; padding: 9px 16px 7px; text-align: center; color: var(--ink); pointer-events: none; transition: opacity .6s; display: grid; justify-items: center; gap: 1px; }
.cart b { font-weight: 400; }
.cart span { font-size: 13.5px; }
.cart svg { display: block; margin-top: 4px; overflow: visible; }
.cart svg text { font-size: 11.5px; fill: currentColor; }
.cart.e0 { background: rgba(239, 231, 212, .9); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 3px rgba(239,231,212,.9), inset 0 0 0 4px var(--ink); font-family: var(--display); }
.cart.e0 b { font-family: var(--caps); font-size: 19px; letter-spacing: .08em; }
.cart.e0 span { font-style: italic; font-family: var(--text); }
.cart.e1 { background: rgba(244, 236, 216, .88); border: 1px solid #7a3b2a; border-radius: 10px; color: #5b2b1f; font-family: var(--text); }
.cart.e1 b { font-style: italic; font-size: 21px; font-family: var(--display); }
.cart.e1 span { letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; }
.cart.e2 { background: rgba(246, 244, 236, .9); border: 1.5px solid #262626; color: #1d1d1d; font-family: var(--tile); }
.cart.e2 b { font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; }
.cart.e2 span { font-size: 12.5px; letter-spacing: .05em; }
.cart.e3 { background: rgba(250, 248, 242, .78); border-radius: 3px; color: #22303a; font-family: var(--tile); box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.cart.e3 b { font-weight: 600; font-size: 15px; letter-spacing: .04em; }
.cart.e3 span { font-size: 12.5px; color: #33424d; }
@media (max-width: 1100px) { .cart { display: none; } }
#stage.showcase .labels { opacity: .2; }
.labels { transition: opacity .6s; }
#veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.4s ease, background-color 1.4s ease; mix-blend-mode: multiply; }
#veil.screen { mix-blend-mode: screen; }

/* ---------- the flag of the host ---------- */
.flagbox { position: absolute; z-index: 3; pointer-events: none; }
.flagbox canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; filter: drop-shadow(12px 16px 9px rgba(60, 45, 15, .26)); }
.flagtag { position: absolute; right: 8px; left: auto; bottom: 6px; max-width: 30ch; font-family: var(--caps); font-size: 14px; color: var(--ink); line-height: 1.25; background: var(--paper); padding: 5px 11px 6px; border: 1px solid rgba(60, 45, 15, .28); box-shadow: 0 2px 5px rgba(40, 30, 10, .22); }
.flagtag i { display: block; font-family: var(--text); font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

/* ---------- below the chart: the year as the things it left behind ---------- */
:root { --news: #f4efe2; --green: #2f4f3a; }
body.era0 { --news: #efe2bf; } body.era1 { --news: #f2e8d0; } body.era2 { --news: #f5f1e5; } body.era3 { --news: #fbfaf5; }
.below { padding-inline: max(16px, 4vw); padding-block: 48px 90px; }
.below .in { max-width: 1240px; margin: 0 auto; }
.below h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.08; text-wrap: balance; }
.below .hint { margin: 0 0 18px; font-style: italic; color: var(--ink-3); font-size: 16px; }
.below .lab { display: block; font-family: var(--caps); font-size: 16px; color: var(--red); margin-bottom: 10px; }
.orn { text-align: center; margin: 64px 0 34px; font-family: var(--display); font-size: 26px; color: var(--ink-3); letter-spacing: .2em; }
.orn::before, .orn::after { content: ""; display: inline-block; vertical-align: middle; width: min(28%, 220px); border-top: 1px solid rgba(42, 33, 24, .35); margin: 0 18px; }

.mast { border-top: 4px double var(--ink); padding-top: 8px; position: relative; }
.mrule { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-family: var(--caps); font-size: 15px; letter-spacing: .05em; color: var(--ink-2);
  border-bottom: 1px solid var(--ink); padding-bottom: 7px; }
.mrule span:first-child { color: var(--ink); }
body.era2 .mrule, body.era3 .mrule { font-family: var(--tile); font-weight: 600; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.kick { font-family: var(--caps); font-size: 17px; color: var(--red); margin-top: 22px; }
.mast h2 { margin: 2px 0 10px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: .98; letter-spacing: -.01em; text-wrap: balance; }
.mast .sub { margin: 0; max-width: 62ch; color: var(--ink-2); font-size: 20px; }
.uplink { position: absolute; right: 0; top: 52px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--text); font-style: italic; font-size: 17px; color: var(--ink-2); text-underline-offset: 4px; }
.uplink:hover, .uplink:focus-visible { text-decoration: underline; outline: none; color: var(--ink); }

.row1 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .85fr); gap: 56px; align-items: start; margin-top: 44px; }
/* the scorecard */
.card { display: flex; background: #fbf7ea; border-radius: 10px; transform: rotate(-.6deg); position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 22px 34px -16px rgba(60, 45, 15, .45), 0 2px 6px rgba(60, 45, 15, .12); }
.card[hidden] { display: none; }
.stub { flex: none; width: 76px; border-right: 2px dashed rgba(47, 79, 58, .45); display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; position: relative; color: var(--green); }
.stub::before, .stub::after { content: ""; position: absolute; right: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); }
.stub::before { top: -9px; } .stub::after { bottom: -9px; }
.stub span { font-family: var(--caps); font-size: 14px; }
.stub b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.stub i { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--caps); font-style: normal; font-size: 14px; letter-spacing: .08em; margin-top: 10px; }
.cbody { flex: 1; min-width: 0; padding: 18px 24px 16px 22px; }
.chead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; border-bottom: 2px solid var(--green); padding-bottom: 6px; }
.ctitle { font-family: var(--caps); font-size: 19px; color: var(--green); }
.cmeta { font-style: italic; font-size: 15px; color: var(--ink-3); }
.ctab { width: 100%; border-collapse: collapse; margin-top: 12px; font-variant-numeric: tabular-nums; }
.ctab th, .ctab td { border: 1px solid rgba(47, 79, 58, .32); padding: 5px 6px; }
.ctab thead th { font-family: var(--caps); font-weight: 400; font-size: 14px; color: var(--green); text-align: center; background: rgba(47, 79, 58, .06); }
.ctab thead th:first-child { text-align: left; }
.ctab thead button { font-family: var(--caps); font-size: 14px; color: var(--green); background: none; border: 0; padding: 2px 8px; cursor: pointer; border-radius: 2px; }
.ctab thead button.act, .ctab thead button:hover { background: var(--green); color: #fbf7ea; }
.ctab thead .nr { opacity: .35; }
.ctab tbody th { text-align: left; font-weight: 400; font-size: 17px; }
.ctab tbody th em { font-style: normal; font-family: var(--caps); font-size: 12.5px; color: var(--red); margin-left: 8px; }
.ctab td { text-align: center; font-size: 17px; width: 9%; transition: background .2s; }
.ctab td.u { color: var(--red); }
.ctab td.act { background: rgba(242, 196, 27, .3); }
.ctab td.tot { font-weight: 500; }
.race svg { display: block; width: 100%; height: auto; margin-top: 12px; }
.race .rg { stroke: rgba(42,33,24,.18); stroke-dasharray: 2 3; }
.race .rt { font: italic 12px var(--text); fill: var(--ink-3); }
.race .rl { fill: none; stroke: rgba(42, 33, 24, .55); stroke-width: 1.6; stroke-linejoin: round; }
.race .rl.w { stroke: var(--red); stroke-width: 2.6; }
.race .rd { fill: #fbf7ea; stroke: rgba(42,33,24,.7); stroke-width: 1.2; } .race .rd.w { fill: var(--red); stroke: var(--red); }
.race .rn { font-family: var(--caps); font-size: 13px; fill: var(--ink-2); } .race .rn.w { fill: var(--red); }
.race .rcur { stroke: var(--green); stroke-width: 1; stroke-dasharray: 3 2; }
.race .hit { fill: transparent; cursor: crosshair; }
#rcap { margin: 4px 0 0; font-size: 16.5px; line-height: 1.4; }
#rcap span { color: var(--ink-3); font-style: italic; font-size: 14px; }
.sig { display: flex; gap: 32px; margin-top: 16px; }
.sig span { flex: 1; border-top: 1px solid rgba(42,33,24,.4); padding-top: 3px; font-style: italic; font-size: 13.5px; color: var(--ink-3); }
/* the barometer */
.baro { margin: 0; display: grid; justify-items: center; text-align: center; gap: 8px; }
.baro svg { width: min(100%, 320px); height: auto; cursor: pointer; filter: drop-shadow(0 16px 20px rgba(60, 45, 15, .32)); }
.baro .bw { font-family: var(--caps); font-size: 15px; fill: #2a2118; }
.baro .bn { font-family: var(--display); font-size: 17px; fill: #2a2118; }
.baro .bm { font: italic 11px var(--text); fill: #6f6250; }
.baro .hand { transform-box: view-box; transform-origin: 160px 160px; transition: transform 1.9s cubic-bezier(.25, 1.4, .45, 1), opacity .6s; }
.baro .hand.set { transition-duration: 1.1s; }
.baro .hand.none { opacity: .22; }
.baro .tapw { transform-box: view-box; transform-origin: 160px 160px; }
.baro .tapw.tap { animation: tap .9s cubic-bezier(.3, .6, .4, 1); }
@keyframes tap { 0% { transform: rotate(0); } 15% { transform: rotate(4deg); } 35% { transform: rotate(-2.6deg); } 55% { transform: rotate(1.2deg); } 100% { transform: rotate(0); } }
.baro figcaption { max-width: 36ch; display: grid; gap: 6px; font-size: 16.5px; line-height: 1.4; }
.baro figcaption small { font-style: italic; font-size: 14px; color: var(--ink-3); }
/* the instruments */
.instr { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.25fr); gap: 46px; align-items: start; }
.instr figure { margin: 0; min-width: 0; }
.instr figcaption { font-size: 16px; line-height: 1.4; color: var(--ink-2); margin-top: 8px; }
.instr figcaption b { font-weight: 500; color: var(--ink); }
#ballSvg { display: block; width: 180px; height: auto; filter: drop-shadow(0 10px 12px rgba(60, 45, 15, .3)); }
#fieldSvg { display: block; width: 100%; height: auto; }
#fieldSvg .fc { fill: var(--ink); transform-box: fill-box; transform-origin: center; animation: pop .45s both; }
#fieldSvg .fc.out { fill: none; stroke: rgba(42,33,24,.55); stroke-width: 1; }
#fieldSvg .fc.w { fill: var(--red); }
#fieldSvg .cutl { fill: none; stroke: var(--red); stroke-width: 1.3; stroke-dasharray: 3 3; }
#fieldSvg .cutt { font: italic 11px var(--text); fill: var(--red); }
@keyframes pop { from { opacity: 0; transform: scale(.2); } }
#purseSvg { display: block; width: 100%; height: auto; }
#purseSvg .pl { stroke: var(--ink); stroke-width: 1; }
#purseSvg .pt { font: italic 12px var(--text); fill: var(--ink-3); }
#purseSvg .pd { fill: rgba(42,33,24,.32); cursor: pointer; transition: fill .2s; }
#purseSvg .pd.usd { fill: rgba(63, 107, 70, .55); }
#purseSvg .pd:hover { fill: var(--red); }
#purseSvg .pd.on { fill: var(--red); }
#purseSvg .pc { stroke: var(--red); stroke-width: 1.2; } #purseSvg .pcd { fill: var(--red); }
#purseSvg .pct { font-family: var(--caps); font-size: 13px; fill: var(--red); }
#purseSvg .pw { fill: #d9b04f; stroke: #8a6a2c; }
#purseSvg #pcur, #purseSvg #pwin { transition: transform .8s cubic-bezier(.3, 1, .4, 1); }
#purseHover { display: block; min-height: 1.4em; font-style: italic; font-size: 14.5px; color: var(--red); margin-top: 4px; }
/* clippings */
.clips { columns: 3 290px; column-gap: 28px; }
.clipw { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 24px; filter: drop-shadow(0 6px 7px rgba(60, 45, 15, .2)); transform: rotate(var(--tilt, 0deg)); transition: transform .3s; }
.clipw:hover { transform: rotate(0) translateY(-3px); }
.clip { background: var(--news); padding: 20px 20px 14px; background-image: var(--paper-tex, none); background-size: 720px; }
.clip .dl { font-family: var(--tile); font-weight: 700; font-size: 10.5px; letter-spacing: .16em; color: var(--ink-3); }
.clip h4 { margin: 4px 0 8px; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.1; border-bottom: 1px solid rgba(42,33,24,.4); padding-bottom: 6px; }
body.era2 .clip h4, body.era3 .clip h4 { font-family: var(--tile); font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.clip p { margin: 0; font-size: 16.5px; line-height: 1.45; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.clip p::first-letter { float: left; font-family: var(--display); font-size: 3.2em; line-height: .78; padding: 4px 6px 0 0; color: var(--ink); }
.replay { margin-top: 10px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--text); font-style: italic; font-size: 14.5px; color: var(--red); text-underline-offset: 3px; }
.replay:hover, .replay:focus-visible { text-decoration: underline; outline: none; }
/* the register: a ledger page */
#reg { margin: 14px 0 0; columns: 2 380px; column-gap: 48px; }
#reg div { break-inside: avoid; display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 12px; padding: 7px 0 6px 50px; position: relative; border-bottom: 1px solid rgba(52, 80, 140, .22); font-size: 17px; }
#reg div::before { content: ""; position: absolute; left: 34px; top: 0; bottom: -1px; width: 4px; border-left: 1px solid rgba(179, 38, 30, .5); border-right: 1px solid rgba(179, 38, 30, .5); }
#reg dt { font-family: var(--caps); font-size: 15px; color: var(--ink-3); padding-top: 1px; }
#reg dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; }
#reg dd.unk { color: #8d8478; font-style: italic; }
#reg div.more { display: none; } #reg.open div.more { display: grid; }
.regmore { margin: 18px 0 0 50px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--text); font-style: italic; font-size: 17px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(42,33,24,.35); }
.regmore:hover { color: var(--red); }
/* the fourteen links */
.lk { display: grid; grid-template-columns: 62px minmax(150px, 210px) 34px minmax(0, 1fr); align-items: center; gap: 12px; padding: 3px 0; border-top: 1px solid rgba(42, 33, 24, .14); }
.lkc svg { display: block; width: 62px; height: 52px; }
.lkn { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-family: var(--caps); font-size: 17px; color: var(--ink); }
.lkn small { display: block; font-family: var(--text); font-style: italic; font-size: 13.5px; color: var(--ink-3); }
.lkn:hover, .lkn:focus-visible { color: var(--red); outline: none; }
.lk.cur .lkn { color: var(--red); }
.lkct { font-family: var(--display); font-size: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.lkt { position: relative; height: 30px; background: repeating-linear-gradient(90deg, rgba(42,33,24,.07) 0 1px, transparent 1px calc(100% / 8.3)); }
.tk { position: absolute; top: 7px; width: 4px; height: 16px; margin-left: -2px; padding: 0; border: 0; background: var(--ink); cursor: pointer; transition: height .15s, top .15s, background .15s; }
.tk::after { content: ""; position: absolute; inset: -6px -4px; }
.tk:hover, .tk:focus-visible { background: var(--red); top: 4px; height: 22px; outline: none; }
.tk.fut { opacity: .22; }
.tk.on { background: var(--red); width: 6px; margin-left: -3px; top: 2px; height: 26px; opacity: 1; }
.lkaxis { position: relative; height: 22px; margin-left: calc(62px + 210px + 34px + 36px); }
.lkaxis span { position: absolute; transform: translateX(-50%); font-style: italic; font-size: 13px; color: var(--ink-3); }
/* the honours board */
.hboard { position: relative; padding: 34px clamp(18px, 4vw, 52px) 30px; border-radius: 3px; color: #d8b45c;
  background: repeating-linear-gradient(91deg, rgba(0,0,0,.07) 0 2px, transparent 2px 7px, rgba(255,255,255,.025) 7px 8px, transparent 8px 15px),
    linear-gradient(90deg, #3f1d10, #56291a 22%, #4a2415 48%, #5b2c1a 74%, #431f12);
  box-shadow: inset 0 0 0 10px #2e140b, inset 0 0 0 12px #b8913c, inset 0 0 0 13px #2e140b, 0 24px 40px -18px rgba(40, 20, 8, .6); }
.hboard h3 { text-align: center; font-family: var(--caps); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .1em; margin: 6px 0 20px;
  background: linear-gradient(180deg, #f6dc8c, #c9993c 55%, #f0d07a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
#roll { columns: 4 210px; column-gap: 34px; column-rule: 1px solid rgba(216, 180, 92, .2); }
.hn { display: flex; gap: 10px; width: 100%; break-inside: avoid; background: none; border: 0; padding: 1.5px 0; margin: 0; text-align: left; cursor: pointer; font-family: var(--caps); font-size: 15px; line-height: 1.3; color: #d8b45c; text-shadow: 0 1px 0 rgba(0,0,0,.55); transition: color .15s, text-shadow .15s; }
.hn .hy { flex: none; width: 3.3em; font-variant-numeric: tabular-nums; opacity: .8; }
.hn .hw { min-width: 0; }
.hn:hover, .hn:focus-visible, .hn.hl { color: #fff1c6; text-shadow: 0 0 9px rgba(255, 214, 120, .6), 0 1px 0 rgba(0,0,0,.6); outline: none; }
.hn.cur { color: #fff6dc; }
.hn.cur .hw { text-decoration: underline; text-decoration-color: #e0453a; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hn.np { cursor: default; opacity: .5; font-style: italic; }
.plate { display: table; margin: 22px auto 0; padding: 7px 18px 6px; font-family: var(--caps); font-size: 15px; color: #2e1a0c; text-shadow: 0 1px 0 rgba(255,240,200,.5);
  background: linear-gradient(180deg, #f2d688, #c99b42 60%, #e6c272); border-radius: 2px; box-shadow: 0 2px 4px rgba(0,0,0,.4), inset 0 0 0 1px rgba(90,60,20,.5); max-width: 100%; text-align: center; }
/* the stamp album */
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 30px 26px; padding: 30px 26px;
  background-image: linear-gradient(rgba(42,33,24,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(42,33,24,.055) 1px, transparent 1px); background-size: 12px 12px;
  border: 1px solid rgba(42,33,24,.22); }
.st { margin: 0; display: grid; justify-items: center; align-content: start; gap: 10px; }
.st button { background: none; border: 0; padding: 0; cursor: pointer; }
.stamp { display: block; width: 120px; height: 140px; padding: 7px; background: #f7f2e4; filter: drop-shadow(0 3px 3px rgba(60,45,15,.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle at center, transparent 3.3px, #000 3.8px) -5px -5px / 10px 10px;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle at center, transparent 3.3px, #000 3.8px) -5px -5px / 10px 10px;
  transition: transform .25s; }
.st button:hover .stamp, .st button:focus-visible .stamp { transform: translateY(-5px) rotate(-2.5deg); }
.st button:focus-visible { outline: none; }
.sf { display: grid; grid-template-rows: auto 1fr; justify-items: center; align-items: center; height: 100%; color: #f7f2e4; background-color: var(--ink);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 3px); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(247,242,228,.7); }
.stamp .sf { background-color: var(--ink); }
.st .stamp { --bg: var(--ink); }
.sf i { font-family: var(--caps); font-style: normal; font-size: 11px; letter-spacing: .14em; margin-top: 12px; }
.sf b { font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1; padding: 0 6px; text-align: center; }
.sf b.sm { font-size: 19px; }
.st figcaption { font-size: 14.5px; line-height: 1.35; text-align: center; color: var(--ink-2); max-width: 22ch; }
.st figcaption em { display: block; margin-top: 4px; font-size: 13px; color: var(--red); }
.note { margin-top: 40px; font-size: 15px; color: var(--ink-3); max-width: 84ch; font-style: italic; }

@media (max-width: 1000px) {
  .row1 { grid-template-columns: minmax(0, 1fr); }
  .instr { grid-template-columns: 180px minmax(0, 1fr); }
  .instr .purse { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .uplink { position: static; margin-top: 12px; }
  .instr { grid-template-columns: minmax(0, 1fr); }
  .card { flex-direction: column; transform: none; }
  .stub { width: auto; flex-direction: row; display: flex; gap: 10px; justify-content: center; padding: 8px; border-right: 0; border-bottom: 2px dashed rgba(47,79,58,.45); }
  .stub::before, .stub::after { display: none; }
  .stub i { writing-mode: horizontal-tb; transform: none; margin: 0; }
  .cbody { padding: 14px 12px; }
  .ctab th, .ctab td { padding: 4px 3px; font-size: 15px; }
  .ctab tbody th { font-size: 15px; }
  .ctab tbody th em { display: block; margin: 0; }
  #reg div { grid-template-columns: 112px minmax(0, 1fr); padding-left: 30px; font-size: 16px; }
  #reg div::before { left: 16px; }
  .regmore { margin-left: 30px; }
  .lk { grid-template-columns: 52px minmax(0, 1fr) 30px; }
  .lkt { grid-column: 1 / -1; }
  .lkaxis { margin-left: 0; }
  #roll { columns: 2 140px; column-gap: 16px; max-height: 70vh; overflow-y: auto; }
  .hn { font-size: 13px; }
  .stamps { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); padding: 20px 12px; gap: 24px 12px; }
}
@media (prefers-reduced-motion: reduce) { .baro .hand, .clipw, .stamp, #fieldSvg .fc { transition: none; animation: none; } }
@media (max-width: 1100px) {
  .flagbox { position: relative; order: 3; inset: auto; height: min(56vw, 230px); margin: 0 16px; }
  .flagtag { left: auto; right: 8px; bottom: 4px; max-width: 24ch; }
}

/* ---------- the chart's towns, tips and pointing ---------- */
.vlab { pointer-events: auto; cursor: pointer; }
.vlab:hover { color: var(--red); }
.view.pointing #world { cursor: pointer; }
.town { position: absolute; display: flex; align-items: center; gap: 5px; white-space: nowrap; pointer-events: none; color: var(--ink-2);
  font-family: var(--display); font-style: italic; font-size: 12.5px; text-shadow: 0 0 3px var(--paper), 0 0 6px var(--paper); transition: opacity .4s; }
.town.hid { opacity: 0 !important; }
.town i { flex: none; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ink-2); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper), inset 0 0 0 3px var(--ink-2); }
.town.cap { font-size: 14px; font-style: normal; font-family: var(--caps); color: var(--ink); }
.town.cap i { width: 8px; height: 8px; }
.town.sr { transform: translate(-4px, -50%); } .town.sl { transform: translate(calc(-100% + 4px), -50%); flex-direction: row-reverse; }
.town.st { transform: translate(-50%, calc(-100% + 4px)); flex-direction: column-reverse; } .town.sb { transform: translate(-50%, -4px); flex-direction: column; gap: 1px; }
body.era1 .town { font-family: var(--text); font-style: normal; } body.era1 .town i { background: #a3322a; border-color: #6b1f18; box-shadow: none; }
body.era2 .town { font-family: var(--tile); font-weight: 600; font-style: normal; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #262626; }
body.era2 .town i { border-radius: 1px; background: #262626; border-color: #262626; box-shadow: none; width: 5px; height: 5px; }
body.era3 .town { font-family: var(--tile); font-weight: 600; font-style: normal; font-size: 11.5px; color: #1f2a30; text-shadow: 0 0 3px rgba(255,255,255,.9), 0 0 7px rgba(255,255,255,.7); }
body.era3 .town i { background: #fff; border: 2px solid #1f2a30; box-shadow: none; }
.maptip, .railtip { position: absolute; z-index: 9; pointer-events: none; display: grid; gap: 1px; padding: 7px 11px 8px; background: rgba(250, 246, 236, .96); border: 1px solid rgba(42,33,24,.35);
  box-shadow: 0 6px 16px rgba(60, 45, 15, .2); font-size: 14.5px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; }
.maptip b, .railtip b { font-family: var(--caps); font-weight: 400; font-size: 16px; color: var(--ink); }
.maptip i { color: var(--red); font-size: 13.5px; }
.railtip { bottom: 6px; transform: translateX(-50%); grid-auto-flow: column; gap: 8px; align-items: baseline; padding: 4px 10px; }
.maptip[hidden], .railtip[hidden] { display: none; }
.ish { margin: 18px 0 10px; font-family: var(--caps); font-weight: 400; font-size: 18px; color: var(--ink-2); }
.stamps.issue { background-image: none; border-style: dashed; }
.stamps.issue { grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; }
@media (max-width: 700px) { .stamps.issue { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- the board on its scaffold ---------- */
.legs i { position: relative; background: linear-gradient(90deg, #5f5c55, #a9a59b 40%, #78756d 70%, #4f4c46); }
.legs i::before, .legs i::after { content: ""; position: absolute; left: -5px; right: -5px; height: 20px; border-radius: 2px;
  background: linear-gradient(180deg, #8e8a80, #55524b); box-shadow: 0 1px 2px rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,0,0,.25); }
.legs i::before { top: 30px; } .legs i::after { top: 330px; }
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 2px;
  background: radial-gradient(circle at 8px 8px, #6d5a1c 2.2px, rgba(0,0,0,0) 3px), radial-gradient(circle at calc(100% - 8px) 8px, #6d5a1c 2.2px, rgba(0,0,0,0) 3px),
    radial-gradient(circle at 8px calc(100% - 8px), #6d5a1c 2.2px, rgba(0,0,0,0) 3px), radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), #6d5a1c 2.2px, rgba(0,0,0,0) 3px),
    linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(110, 80, 10, .14)), repeating-linear-gradient(97deg, rgba(120, 90, 20, .05) 0 2px, rgba(0,0,0,0) 2px 23px); }
.t, .n { background-image: linear-gradient(180deg, #fff, #ecebe6), radial-gradient(circle at 30% 20%, rgba(0,0,0,.03), rgba(0,0,0,0) 60%); }

/* ---------- the year, pressed in ink ---------- */
/* the default view's ink (1860, the copper-engraving era: room.js inkTile(0), baked as a lossless WebP), so the year paints
   in its ink at first paint; room.js sets --ink-tex on <html> for the year shown and takes over with the same look */
:root { --ink-tex: url("/the-open/assets/ink-era0.webp"); }
.yr { background: var(--ink-tex, none), var(--ink); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(.6px .8px 0 rgba(42,33,24,.28)) drop-shadow(0 0 12px var(--paper)) drop-shadow(0 0 22px var(--paper)); }

/* the addendum: positions on the card, sources, and the final day under the barometer */
#ctab .ps { width: 34px; text-align: left; font-family: var(--tile); font-weight: 700; font-size: 13px; color: var(--ink-3); }
#ctab th small { font-size: 12px; color: var(--ink-3); font-style: italic; }
#ctab tr.more td { font-style: italic; color: var(--ink-3); font-size: 14px; padding-top: 6px; }
.baro .fd { display: block; margin-top: 6px; }
a.src { font-style: italic; font-size: .86em; color: var(--ink-3); text-decoration: underline; text-decoration-color: rgba(111, 98, 80, .45); text-underline-offset: 2px; white-space: nowrap; }
a.src:hover { color: var(--red); }
#reg dd .unk { color: var(--ink-3); font-style: italic; }
#reg dd i { color: var(--ink-3); }

/* a long surname shrinks its own tiles to fit the row instead of being cut */
.brows .brow .name.fit .t { width: var(--tw); font-size: 13px; }
.brows .brow .name.fit .t.sp { width: calc(var(--tw) / 2); }
.brows.many .t.sp, .brows .t.sp { width: 8px; }

/* ---------- readability on the darker printings (survey and relief): a firmer paper halo behind the names ---------- */
body.era2 .vlab, body.era3 .vlab { text-shadow: 0 0 2px var(--paper), 0 0 4px var(--paper), 0 0 8px var(--paper), 0 0 14px var(--paper), 0 0 20px var(--paper); }
body.era3 .rlab.sea { color: rgba(232, 240, 243, .78); }
body.era3 .rlab { color: rgba(20, 26, 18, .66); }
.rlab.hid { opacity: 0 !important; }
/* bigger fingers: a wider hit area round each name on a touch screen, without moving the name */
@media (pointer: coarse) { .vlab::before { content: ""; position: absolute; inset: -12px -8px; } }
.maptip { max-width: min(300px, calc(100% - 16px)); }

/* ---------- when the browser drops the graphics ---------- */
.lostnote { display: none; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 12; max-width: 30ch; padding: 14px 18px; background: var(--paper);
  border: 1px solid rgba(60, 45, 15, .35); box-shadow: 0 6px 18px rgba(40, 30, 10, .25); font-family: var(--text); font-size: 17px; line-height: 1.4; color: var(--ink); text-align: center; }
.lostnote button { display: block; margin: 10px auto 0; font-family: var(--caps); font-size: 16px; color: var(--paper); background: var(--ink); border: 0; padding: 6px 14px; cursor: pointer; }
body.gllost .lostnote { display: block; }

/* ---------- the flat printing, for browsers without 3D ---------- */
body.nogl #labels, body.nogl #lead, body.nogl .cart, body.nogl #maptip, body.nogl .glass, body.nogl .flagbox { display: none !important; }
.flatmap { position: absolute; box-shadow: 0 10px 28px rgba(60, 45, 15, .28); border: 1px solid rgba(42, 33, 24, .3); }
.flatlabs { position: absolute; inset: 0; pointer-events: none; }
.flab { position: absolute; pointer-events: auto; display: flex; align-items: center; gap: 5px; padding: 2px 4px; background: none; border: 0; cursor: pointer; white-space: nowrap;
  font-family: var(--caps); font-size: 14px; color: var(--ink); text-shadow: 0 0 2px var(--paper), 0 0 5px var(--paper), 0 0 10px var(--paper); transform: translate(-6px, -50%); }
.flab i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); transform: translateY(calc(-1 * var(--dy, 0px))); }   /* a pushed name keeps its dot on the coast */
.flab b { font-family: var(--text); font-weight: 400; font-size: 14px; }
.flab.sl { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), -50%); }
.flab.on { color: var(--red); font-size: 17px; } .flab.on i { background: var(--red); width: 11px; height: 11px; }
.flab:hover span, .flab:focus-visible span { text-decoration: underline; } .flab:focus-visible { outline: 2px solid var(--red); }
.flatnote { position: absolute; left: 16px; bottom: 10px; max-width: 46ch; margin: 0; padding: 6px 10px; background: var(--paper); border: 1px solid rgba(60, 45, 15, .28); font-family: var(--text); font-style: italic; font-size: 14px; color: var(--ink-2); }
@media (max-width: 1100px) { .flatnote { position: static; margin: 8px 12px 0; } .flab, .flab b { font-size: 12px; } .flab.on { font-size: 14px; } }

