:where(.og-eraly) :where(*:not(svg, svg *)) { all: revert; }
/* Eraly: a time-traveller's field journal. Teal night sky, parchment cards, brass and brick accents. */
.og-eraly {
  --night: #0e2a33;
  --night2: #0a1f26;
  --ridge: #1d4651;
  --ridge2: #15363f;
  --paper: #f6ecd6;
  --paper2: #ecdcb8;
  --paper3: #fbf5e6;
  --ink: #2a2118;
  --ink2: #5b4d3a;
  --brass: #d19a2a;
  --brass-d: #9a6a0f;
  --brick: #b83a26;
  --sea: #1f7f74;
  --moss: #4b8a3a;
  --amber: #e0a21b;
  --orange: #e07a1f;
  --red: #c8402b;
  --line: rgba(42, 33, 24, 0.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
}
.og-eraly * { box-sizing: border-box; }
.og-eraly { -webkit-text-size-adjust: 100%; }
.og-eraly {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--paper);
  background: var(--night) radial-gradient(1200px 500px at 50% -120px, #1b4c59 0%, rgba(14, 42, 51, 0) 70%) no-repeat;
  padding-bottom: 18px;
}
.og-eraly main { flex: 1; width: 100%; }
.og-eraly a { color: inherit; }
.og-eraly img,
.og-eraly svg { max-width: 100%; }
.og-eraly button,
.og-eraly input,
.og-eraly select { font: inherit; color: inherit; }
.og-eraly :focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.og-eraly .skip { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 50; }
.og-eraly .skip:focus { left: 8px; top: 8px; }
.og-eraly .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header / footer */
.og-eraly .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; max-width: 980px; margin: 0 auto; width: 100%; }
.og-eraly .logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--amber); font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: 0.18em; }
.og-eraly .nav { display: flex; gap: 4px; flex-wrap: wrap; }
.og-eraly .nav a { text-decoration: none; padding: 6px 11px; border-radius: 999px; font-size: 15px; color: #cfe3e6; }
.og-eraly .nav a:hover { background: rgba(255, 255, 255, 0.09); }
.og-eraly .nav a[aria-current="page"] { background: rgba(224, 162, 27, 0.18); color: #ffe3a1; }
.og-eraly .foot { text-align: center; padding: 26px 18px 34px; font-size: 14px; color: #9fbcc2; border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 36px; background: var(--night2); }
.og-eraly .foot p { margin: 4px 0; }
.og-eraly .foot a { color: #cfe3e6; }
.og-eraly .foot-lang { margin: 10px 0 0; font-size: 13px; line-height: 1.9; }
.og-eraly .foot-lang a,
.og-eraly .foot-lang .cur { display: inline-block; padding: 0 4px; white-space: nowrap; }
.og-eraly .foot-lang .cur { color: #fff; font-weight: 700; }
html:not([lang="en"]) .og-eraly .era button { padding: 0 9px; font-size: 14px; white-space: nowrap; }

/* skyline strip above the game */
.og-eraly .skyline { display: block; width: 100%; max-width: 980px; height: auto; margin: 0 auto -2px; opacity: 0.95; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.og-eraly .stage { max-width: 760px; margin: 0 auto; padding: 0 14px; }
.og-eraly .page-h1 { font-family: var(--serif); text-align: center; font-size: clamp(22px, 4.6vw, 32px); line-height: 1.2; margin: 6px 12px 4px; color: #fff1cc; font-weight: 700; }
.og-eraly .page-sub { text-align: center; margin: 0 14px 10px; color: #b9d2d6; font-size: 15px; }

/* the paper card */
.og-eraly .card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  box-shadow: 0 2px 0 var(--paper2), 0 14px 30px rgba(0, 0, 0, 0.35);
  background-image: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)), repeating-linear-gradient(0deg, rgba(120, 90, 40, 0.035) 0 2px, transparent 2px 5px);
  min-height: 420px;
}
.og-eraly .card h2,
.og-eraly .card h3 { font-family: var(--serif); margin: 0; }
.og-eraly .eyebrow { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-d); font-weight: 700; margin: 0 0 6px; }
.og-eraly .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  background: var(--brick); color: #fff; border: 0; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 17px;
  box-shadow: 0 3px 0 #7d2616; text-decoration: none; transition: transform 0.08s, box-shadow 0.08s;
}
.og-eraly .btn:hover { background: #c4432d; }
.og-eraly .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #7d2616; }
.og-eraly .btn[disabled] { background: #b9ab92; box-shadow: 0 3px 0 #8d8168; cursor: not-allowed; }
.og-eraly .btn.alt { background: var(--sea); box-shadow: 0 3px 0 #135048; }
.og-eraly .btn.alt:hover { background: #26897d; }
.og-eraly .btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink2); box-shadow: none; }
.og-eraly .btn.ghost:hover { background: rgba(42, 33, 24, 0.07); }
.og-eraly .btn.small { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.og-eraly .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.og-eraly .center { text-align: center; justify-content: center; }

/* journey map */
.og-eraly .journey { width: 100%; height: auto; display: block; margin: 0 0 8px; overflow: visible; }
.og-eraly .journey .trail { fill: none; stroke: var(--ink2); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; opacity: 0.55; }
.og-eraly .journey .trail-done { fill: none; stroke: var(--brass); stroke-width: 4; stroke-linecap: round; }
.og-eraly .journey .stop circle { fill: var(--paper3); stroke: var(--ink2); stroke-width: 2.5; }
.og-eraly .journey .stop text { font: 700 15px var(--serif); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.og-eraly .journey .stop.now circle { stroke: var(--brick); stroke-width: 4; }
.og-eraly .journey .stop.g circle { fill: var(--moss); stroke: #335f27; } .og-eraly .journey .stop.g text { fill: #fff; }
.og-eraly .journey .stop.y circle { fill: var(--amber); stroke: #a8760d; }
.og-eraly .journey .stop.o circle { fill: var(--orange); stroke: #a3550f; } .og-eraly .journey .stop.o text { fill: #fff; }
.og-eraly .journey .stop.r circle { fill: var(--red); stroke: #8c2a1a; } .og-eraly .journey .stop.r text { fill: #fff; }
.og-eraly .journey .stop.x circle { fill: #6e6556; stroke: #3d372d; } .og-eraly .journey .stop.x text { fill: #fff; }
.og-eraly .journey .traveller { transition: transform 0.7s cubic-bezier(0.5, 0, 0.2, 1); }
.og-eraly .journey .pulse { animation: pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { opacity: 0.7; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.9); } }

/* question */
.og-eraly .qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.og-eraly .qhead .eyebrow { margin: 0; }
.og-eraly .timer-n { font: 700 20px var(--serif); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: end; }
.og-eraly .timer { height: 12px; background: rgba(42, 33, 24, 0.14); border-radius: 999px; overflow: hidden; margin: 6px 0 14px; }
.og-eraly .timer > i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--sea), #3aa593); border-radius: 999px; transform-origin: left; }
.og-eraly .timer.warn > i { background: linear-gradient(90deg, var(--orange), var(--amber)); }
.og-eraly .timer.hot > i { background: linear-gradient(90deg, var(--red), var(--orange)); }
.og-eraly .clue { font-family: var(--serif); font-size: clamp(22px, 5.4vw, 29px); line-height: 1.28; margin: 4px 0 12px; font-weight: 600; min-height: 3.9em; }
.og-eraly .chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.og-eraly .chip { font-size: 13px; padding: 3px 11px; border: 1.5px solid var(--ink2); border-radius: 999px; color: var(--ink2); background: rgba(255, 255, 255, 0.4); }

/* year picker */
.og-eraly .year-show { text-align: center; margin: 4px 0 2px; }
.og-eraly .year-big { font: 700 clamp(44px, 12vw, 64px)/1.05 var(--serif); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.og-eraly .year-big small { font-size: 0.42em; letter-spacing: 0.08em; margin-inline-start: 6px; color: var(--brass-d); }
.og-eraly .year-big.idle { color: #a79a82; font-size: clamp(26px, 7vw, 36px); padding: 12px 0; }
.og-eraly .slider-wrap { position: relative; padding: 0 2px 30px; margin: 6px 0 6px; }
.og-eraly .slider-wrap input[type="range"] { width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; touch-action: pan-y; cursor: pointer; position: relative; z-index: 2; }
.og-eraly .slider-wrap input[type="range"]::-webkit-slider-runnable-track { height: 14px; border-radius: 999px; background: linear-gradient(90deg, #a98d5a 0%, #b9a06d 18%, #8aa07a 42%, #5f9a8c 62%, #3f7f8d 82%, #2b5c78 100%); border: 2px solid var(--ink2); }
.og-eraly .slider-wrap input[type="range"]::-moz-range-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #a98d5a 0%, #b9a06d 18%, #8aa07a 42%, #5f9a8c 62%, #3f7f8d 82%, #2b5c78 100%); border: 2px solid var(--ink2); }
.og-eraly .slider-wrap input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%; background: var(--brick); border: 4px solid var(--paper3); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); }
.og-eraly .slider-wrap input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--brick); border: 4px solid var(--paper3); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); }
.og-eraly .slider-wrap.idle input[type="range"]::-webkit-slider-thumb { background: #b9ab92; }
.og-eraly .slider-wrap.idle input[type="range"]::-moz-range-thumb { background: #b9ab92; }
.og-eraly .ticks { position: absolute; left: 17px; right: 17px; bottom: 0; height: 26px; pointer-events: none; }
.og-eraly .ticks span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--ink2); white-space: nowrap; padding-top: 7px; }
.og-eraly .ticks span::before { content: ""; position: absolute; left: 50%; top: 0; width: 1.5px; height: 6px; background: var(--ink2); }
.og-eraly .ticks span:first-child { transform: translateX(-35%); }
.og-eraly .ticks span:last-child { transform: translateX(-75%); }
.og-eraly .entry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 auto 14px; max-width: 420px; }
.og-eraly .entry .typed { grid-column: 1 / -1; justify-self: center; order: -1; }
.og-eraly .nudge { min-width: 46px; min-height: 46px; padding: 0 8px; border: 2px solid var(--ink2); background: var(--paper3); border-radius: 12px; font-weight: 700; cursor: pointer; color: var(--ink); font-size: 15px; touch-action: manipulation; }
.og-eraly .nudge:hover { background: #fff; }
.og-eraly .nudge:active { background: var(--paper2); }
.og-eraly .typed { display: flex; border: 2px solid var(--ink2); border-radius: 12px; overflow: hidden; background: #fff; }
.og-eraly .typed input { width: 92px; border: 0; padding: 0 10px; font: 700 20px var(--serif); text-align: center; background: transparent; min-height: 46px; color: var(--ink); }
.og-eraly .typed input:focus-visible { outline-offset: -3px; }
.og-eraly .era { display: flex; border-inline-start: 2px solid var(--ink2); }
.og-eraly .era button { border: 0; background: transparent; padding: 0 12px; font-weight: 700; cursor: pointer; min-height: 46px; color: var(--ink2); touch-action: manipulation; }
.og-eraly .era button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.og-eraly .lock { width: 100%; font-size: 19px; min-height: 54px; }
.og-eraly .hint-line { text-align: center; font-size: 13.5px; color: var(--ink2); margin: 8px 0 0; }

/* reveal */
.og-eraly .reveal { text-align: center; }
.og-eraly .reveal .truth { font: 700 clamp(46px, 13vw, 70px)/1 var(--serif); margin: 4px 0; }
.og-eraly .reveal .truth small { font-size: 0.4em; color: var(--brass-d); letter-spacing: 0.08em; margin-inline-start: 6px; }
.og-eraly .reveal .clue-small { font-family: var(--serif); color: var(--ink2); margin: 0 auto 8px; font-size: 17px; max-width: 34em; }
.og-eraly .verdict { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 12px; }
.og-eraly .pts { font: 700 38px var(--serif); padding: 2px 16px; border-radius: 12px; color: #fff; min-width: 150px; font-variant-numeric: tabular-nums; }
.og-eraly .pts small { font-size: 16px; font-family: var(--sans); font-weight: 600; opacity: 0.9; }
.og-eraly .pts.g { background: var(--moss); } .og-eraly .pts.y { background: var(--amber); color: #2a2118; } .og-eraly .pts.o { background: var(--orange); } .og-eraly .pts.r { background: var(--red); } .og-eraly .pts.x { background: #6e6556; }
.og-eraly .off { font-size: 17px; text-align: start; }
.og-eraly .off b { display: block; font-size: 15px; color: var(--ink2); font-weight: 600; }
.og-eraly .axis { position: relative; height: 62px; margin: 14px 10px 8px; }
.og-eraly .axis .bar { position: absolute; left: 0; right: 0; top: 28px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #a98d5a, #8aa07a, #5f9a8c, #2b5c78); opacity: 0.45; }
.og-eraly .axis .span { position: absolute; top: 26px; height: 12px; border-radius: 999px; background: var(--ink); opacity: 0.55; }
.og-eraly .axis .pin { position: absolute; transform: translateX(-50%); text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.og-eraly .axis .pin.truth { top: 40px; color: var(--moss); }
.og-eraly .axis .pin.you { top: 0; color: var(--brick); }
.og-eraly .axis .pin::after { content: ""; position: absolute; left: 50%; width: 3px; transform: translateX(-50%); background: currentColor; }
.og-eraly .axis .pin.you::after { top: 100%; height: 26px; margin-top: 0; }
.og-eraly .axis .pin.truth::after { bottom: 100%; height: 14px; }
.og-eraly .axis .dot { position: absolute; top: 26px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 3px solid var(--paper); }
.og-eraly .axis .dot.you { background: var(--brick); } .og-eraly .axis .dot.truth { background: var(--moss); }
.og-eraly .fact { text-align: start; background: rgba(255, 255, 255, 0.55); border-inline-start: 5px solid var(--brass); padding: 10px 14px; border-radius: 6px; margin: 14px 0; font-size: 16px; }
.og-eraly .fact b { display: block; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-d); }
.og-eraly .tolnote { font-size: 13.5px; color: var(--ink2); margin: 0 0 6px; }

/* summary */
.og-eraly .sum-top { text-align: center; }
.og-eraly .sum-total { font: 700 clamp(54px, 15vw, 82px)/1 var(--serif); color: var(--ink); }
.og-eraly .sum-total small { font-size: 0.35em; color: var(--ink2); }
.og-eraly .sum-tier { font: 700 clamp(22px, 6vw, 30px) var(--serif); color: var(--brick); margin: 4px 0 2px; }
.og-eraly .sum-blurb { margin: 0 0 12px; color: var(--ink2); font-style: italic; }
.og-eraly .squares { font-size: clamp(26px, 8vw, 38px); letter-spacing: 0.06em; margin: 6px 0 10px; line-height: 1.1; }
.og-eraly .sum-list { list-style: none; margin: 14px 0; padding: 0; border-top: 1px solid var(--line); }
.og-eraly .sum-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.og-eraly .sum-list .sq { font-size: 24px; text-align: center; }
.og-eraly .sum-list .what { line-height: 1.3; }
.og-eraly .sum-list .what small { display: block; color: var(--ink2); font-size: 13px; }
.og-eraly .sum-list .p { font: 700 18px var(--serif); text-align: end; font-variant-numeric: tabular-nums; }
.og-eraly .next-box { text-align: center; background: rgba(255, 255, 255, 0.5); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.og-eraly .next-box .cd { font: 700 30px var(--serif); font-variant-numeric: tabular-nums; }
.og-eraly .mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; text-align: center; }
.og-eraly .mini-stats div { background: rgba(255, 255, 255, 0.5); border-radius: 10px; padding: 8px 4px; }
.og-eraly .mini-stats b { display: block; font: 700 24px var(--serif); }
.og-eraly .mini-stats span { font-size: 12.5px; color: var(--ink2); }
.og-eraly .toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 60; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }

/* start screen */
.og-eraly .start { text-align: center; padding-top: 6px; }
.og-eraly .start h2 { font-size: clamp(26px, 6.5vw, 36px); margin: 4px 0 6px; }
.og-eraly .start p { margin: 6px auto; max-width: 30em; color: var(--ink2); }
.og-eraly .rules3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.og-eraly .rules3 div { background: rgba(255, 255, 255, 0.5); border-radius: 10px; padding: 10px 6px; }
.og-eraly .rules3 b { display: block; font: 700 26px var(--serif); }
.og-eraly .rules3 span { font-size: 13px; color: var(--ink2); }
.og-eraly .tools { display: flex; justify-content: center; gap: 10px; margin: 10px 0 0; flex-wrap: wrap; }
.og-eraly .linkbtn { background: none; border: 0; padding: 6px 8px; cursor: pointer; text-decoration: underline; color: var(--ink2); font-size: 14.5px; }
.og-eraly .filter { margin: 12px auto 0; display: flex; justify-content: center; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.og-eraly .filter select { padding: 8px 10px; border-radius: 10px; border: 2px solid var(--ink2); background: var(--paper3); color: var(--ink); min-height: 42px; }
.og-eraly .session-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 12px; text-align: center; }
.og-eraly .session-bar div { background: rgba(255, 255, 255, 0.5); border-radius: 10px; padding: 5px 2px; }
.og-eraly .session-bar b { display: block; font: 700 20px var(--serif); font-variant-numeric: tabular-nums; }
.og-eraly .session-bar span { font-size: 11.5px; color: var(--ink2); }
.og-eraly .recent { font-size: 22px; letter-spacing: 3px; text-align: center; min-height: 28px; margin: 4px 0 0; }

/* stats dialog */
.og-eraly dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: min(520px, 94vw); width: 100%; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); }
.og-eraly dialog::backdrop { background: rgba(5, 18, 22, 0.7); }
.og-eraly .dlg { padding: 18px 20px 20px; position: relative; max-height: 86vh; overflow: auto; }
.og-eraly .dlg h2 { font-family: var(--serif); margin: 0 0 10px; }
.og-eraly .dlg .x { position: absolute; inset-inline-end: 10px; top: 8px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink2); min-width: 44px; min-height: 44px; }
.og-eraly .hist { display: grid; gap: 4px; margin: 10px 0 14px; }
.og-eraly .hist div { display: grid; grid-template-columns: 70px 1fr 28px; gap: 8px; align-items: center; font-size: 13.5px; }
.og-eraly .hist i { display: block; height: 14px; background: var(--sea); border-radius: 4px; min-width: 2px; }

/* text pages */
.og-eraly .doc main,
.og-eraly main.doc-main { padding: 6px 14px 0; }
.og-eraly .doc-text { max-width: 780px; margin: 10px auto 0; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 22px 24px 26px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); }
.og-eraly .doc-text h1 { font-family: var(--serif); font-size: clamp(28px, 6vw, 38px); line-height: 1.15; margin: 0 0 10px; }
.og-eraly .doc-text h2 { font-family: var(--serif); font-size: 24px; margin: 28px 0 8px; line-height: 1.2; }
.og-eraly .doc-text h3 { font-family: var(--serif); font-size: 19px; margin: 18px 0 4px; }
.og-eraly .doc-text p,
.og-eraly .doc-text li { color: #3a2f22; }
.og-eraly .doc-text a { color: #8c2a1a; }
.og-eraly .doc-text a.btn { color: #fff; }
.og-eraly .doc-text a.btn.ghost { color: var(--ink); }
.og-eraly .doc-text .lede { font-size: 19px; color: var(--ink2); margin-top: 0; }
.og-eraly .doc-text ul,
.og-eraly .doc-text ol { padding-inline-start: 22px; }
.og-eraly .doc-text table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
.og-eraly .doc-text th,
.og-eraly .doc-text td { border: 1px solid var(--line); padding: 7px 9px; text-align: start; vertical-align: top; }
.og-eraly .doc-text th { background: var(--paper2); font-family: var(--serif); }
.og-eraly .doc-text details { border-top: 1px solid var(--line); padding: 10px 0; }
.og-eraly .doc-text details:last-of-type { border-bottom: 1px solid var(--line); }
.og-eraly .doc-text summary { cursor: pointer; font-weight: 700; font-family: var(--serif); font-size: 18px; }
.og-eraly .doc-text details p { margin: 8px 0 2px; }
.og-eraly .below { max-width: 780px; margin: 22px auto 0; padding: 0 14px; }
.og-eraly .below .doc-text { margin-top: 0; }
.og-eraly .crumbs { font-size: 14px; color: var(--ink2); margin: 0 0 10px; }
.og-eraly .crumbs a { color: var(--ink2); }

/* archive */
.og-eraly .day-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.og-eraly .day-list li { border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.45); }
.og-eraly .day-list a { display: block; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.og-eraly .day-list a:hover { background: rgba(255, 255, 255, 0.8); border-radius: 12px; }
.og-eraly .day-list b { font-family: var(--serif); font-size: 19px; }
.og-eraly .day-list .meta { display: block; font-size: 14px; color: var(--ink2); }
.og-eraly .events { list-style: none; margin: 14px 0; padding: 0; counter-reset: ev; }
.og-eraly .events li { counter-increment: ev; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; padding-inline-start: 54px; margin: 10px 0; position: relative; background: rgba(255, 255, 255, 0.45); }
.og-eraly .events li::before { content: counter(ev); position: absolute; inset-inline-start: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 16px var(--serif); display: grid; place-items: center; }
.og-eraly .events .yr { font: 700 26px var(--serif); color: var(--brick); margin: 0; }
.og-eraly .events .yr small { font-size: 13px; font-family: var(--sans); color: var(--ink2); font-weight: 600; margin-inline-start: 8px; letter-spacing: 0.04em; }
.og-eraly .events .cl { margin: 2px 0 6px; font-weight: 600; font-family: var(--serif); font-size: 18px; line-height: 1.3; }
.og-eraly .events .ft { margin: 0; font-size: 15.5px; }
.og-eraly .pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0 4px; }
.og-eraly .pager a { text-decoration: none; padding: 8px 14px; border: 2px solid var(--ink2); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 15px; }
.og-eraly .timeline-strip { display: flex; gap: 0; margin: 12px 0 4px; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(42, 33, 24, 0.12); position: relative; }
.og-eraly .timeline-strip i { position: absolute; top: 0; width: 10px; height: 12px; margin-left: -5px; border-radius: 50%; background: var(--brick); border: 2px solid var(--paper); box-sizing: content-box; top: -2px; }

/* contact form (same markup and classes the feedback relay's form.js expects) */
.og-eraly .fb-row { display: flex; gap: 12px; flex-wrap: wrap; }
.og-eraly .fb-field { flex: 1 1 240px; margin: 0 0 14px; }
.og-eraly .fb-field label { display: block; font-weight: 700; margin-bottom: 4px; }
.og-eraly .fb-field input,
.og-eraly .fb-field textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--ink2); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.og-eraly .fb-field textarea { min-height: 150px; resize: vertical; }
.og-eraly .fb-hint { font-weight: 400; color: var(--ink2); font-size: 14px; }
.og-eraly form[data-feedback-form] button[type="submit"] { background: var(--brick); color: #fff; border: 0; border-radius: 999px; padding: 12px 28px; font-weight: 700; font-size: 17px; cursor: pointer; min-height: 48px; }
.og-eraly [data-feedback-status] { margin: 10px 0 0; font-weight: 600; }

@media (max-width: 520px) {
  .og-eraly { font-size: 16.5px; }
  .og-eraly .card { padding: 14px 13px 18px; }
  .og-eraly .nav a { padding: 6px 9px; font-size: 14px; }
  .og-eraly .top { padding: 8px 12px; }
  .og-eraly .doc-text { padding: 18px 16px 22px; }
  .og-eraly .rules3 b { font-size: 22px; }
  .og-eraly .typed input { width: 80px; }
  html:not([lang="en"]) .og-eraly .doc-text table { font-size: 12.5px; }
  html:not([lang="en"]) .og-eraly .doc-text th,
html:not([lang="en"]) .og-eraly .doc-text td { padding: 6px 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .og-eraly * { animation: none !important; transition: none !important; }
}

/* Languages written in other scripts (ja, zh, zh-Hant, ko, th, hi, bn): system font stacks chosen by the page language (no webfonts are
   downloaded; Latin letters and digits come first from the normal stacks), line breaking for scripts without word spaces, no letter
   spacing (it breaks joined scripts), and more line height for scripts with tall marks. Later :lang() rules win, so zh-Hant follows zh. */
.og-eraly :lang(ja) {
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Noto Serif JP", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, serif;
}
.og-eraly :lang(zh) {
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", serif;
}
.og-eraly :lang(zh-Hant) {
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", "Source Han Sans TC", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Songti TC", "Noto Serif CJK TC", "Source Han Serif TC", "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", serif;
}
.og-eraly :lang(ko) {
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "AppleMyungjo", "Noto Serif CJK KR", "Noto Serif KR", "Apple SD Gothic Neo", "Malgun Gothic", serif;
}
.og-eraly :lang(th) {
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Leelawadee UI", "Thonburi", "Noto Sans Thai", Tahoma, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif Thai", "Thonburi", "Leelawadee UI", Tahoma, serif;
}
.og-eraly :lang(hi) {
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Nirmala UI", "Kohinoor Devanagari", "Noto Sans Devanagari", Mangal, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif Devanagari", "Kohinoor Devanagari", "Nirmala UI", Mangal, serif;
}
.og-eraly :lang(bn) {
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Nirmala UI", "Kohinoor Bangla", "Noto Sans Bengali", Vrinda, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif Bengali", "Kohinoor Bangla", "Nirmala UI", Vrinda, serif;
}
.og-eraly :lang(ja),
.og-eraly :lang(zh) { line-break: strict; overflow-wrap: break-word; }
.og-eraly :lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
.og-eraly :lang(th),
.og-eraly :lang(hi),
.og-eraly :lang(bn) { overflow-wrap: break-word; }
.og-eraly :is(:lang(ja), :lang(zh), :lang(ko), :lang(th), :lang(hi), :lang(bn)) :is(.eyebrow, .fact b, .year-big, .year-big small, .reveal .truth small, .chip, .pin, .hist, .nav a, .rules3 span) { letter-spacing: 0; }
.og-eraly .year-big small.ef,
.og-eraly .reveal .truth small.ef { margin-left: 0; margin-right: 6px; }
.og-eraly :is(:lang(ja), :lang(zh), :lang(ko)) .clue { line-height: 1.45; }
.og-eraly :is(:lang(th), :lang(hi), :lang(bn)) .clue { line-height: 1.6; }
.og-eraly :is(:lang(th), :lang(hi), :lang(bn)) :is(.clue-small, .events .cl, .day-list b) { line-height: 1.55; }
.og-eraly :is(:lang(th), :lang(hi), :lang(bn)) body { line-height: 1.75; }
.og-eraly :is(:lang(th), :lang(hi), :lang(bn)) :is(.page-h1, .doc-text h1, .doc-text h2, .doc-text h3, .start h2, .sum-tier, .doc-text summary) { line-height: 1.45; }
.og-eraly :is(:lang(ja), :lang(zh), :lang(ko)) :is(.page-h1, .doc-text h1, .doc-text h2, .start h2, .sum-tier) { line-height: 1.35; }
.og-eraly :is(:lang(ja), :lang(zh), :lang(ko)) body { line-height: 1.7; }

/* The points table of the home and how-to-play pages was wider than a 375 px phone in ru, uk, nl, ro, hu, el, id, ms and fil (found with the
   element-box scan of check-overflow.mjs in batch 3; the old scrollWidth test cannot see it because a mobile viewport grows with the page).
   Long header words may break so the columns can shrink; the right-to-left languages keep whole words (joined letters). */
@media (max-width: 520px) {
  html:not([lang="en"]):not(:lang(ar)):not(:lang(he)):not(:lang(fa)) .og-eraly .doc-text table th { overflow-wrap: anywhere; }
}

/* Batch 3: right-to-left languages (ar, he, fa). <html dir="rtl">: header, nav, cards, chips, tables, lists, the pager, the stats bars and
   the journey path (mirrored in app.js) flow right to left by themselves (flex/grid and the logical properties above).
   What keeps its LEFT-TO-RIGHT orientation because it is a time axis or a data string: the year slider with its tick labels, the nudge row
   (-10 -1 +1 +10) with the year box and the BC/AD switch, the reveal axis (your guess vs the truth), the score numbers ("340 / 700"),
   the countdown and the emoji result row (what is shown is exactly what is copied). System fonts only, no letter spacing on joined scripts. */
.og-eraly :lang(ar),
.og-eraly :lang(fa) { --sans: system-ui, -apple-system, "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", "Noto Sans Arabic UI", Arial, sans-serif; --serif: system-ui, -apple-system, "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", "Noto Sans Arabic UI", Arial, sans-serif; }
.og-eraly :lang(he) { --sans: system-ui, -apple-system, "Segoe UI", "Arial Hebrew", Arial, "Noto Sans Hebrew", "Noto Sans Hebrew UI", Tahoma, sans-serif; --serif: "David", "Times New Roman", "Arial Hebrew", "Noto Serif Hebrew", "Noto Sans Hebrew", serif; }
/* joined scripts: no tracking, no fake italics, no capitals, no hyphenation */
.og-eraly :is(:lang(ar), :lang(he), :lang(fa)) * { letter-spacing: 0 !important; font-style: normal; hyphens: manual; }
.og-eraly :is(:lang(ar), :lang(he), :lang(fa)) :is(.eyebrow, .fact b) { text-transform: none; }
.og-eraly :is(:lang(ar), :lang(fa)) body { line-height: 1.75; }
.og-eraly :lang(he) body { line-height: 1.65; }
.og-eraly :is(:lang(ar), :lang(fa)) :is(.page-h1, .doc-text h1, .doc-text h2, .doc-text h3, .start h2, .sum-tier, .doc-text summary, .clue, .clue-small, .events .cl, .day-list b) { line-height: 1.55; }
.og-eraly :lang(he) :is(.page-h1, .doc-text h1, .doc-text h2, .doc-text h3, .start h2, .sum-tier, .doc-text summary, .clue, .clue-small, .events .cl, .day-list b) { line-height: 1.35; }
.og-eraly :is(:lang(ar), :lang(fa)) :is(.page-h1, .doc-text h1, .doc-text h2, .doc-text h3, .start h2, .sum-tier) { font-weight: 700; }
/* the logo is the Latin wordmark, set in the same serif as on every other language */
.og-eraly :is(:lang(ar), :lang(he), :lang(fa)) :is(.logo, .logo span) { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
/* Arabic and Persian words must not be cut between letters; one-word first table cells stay whole */
html:is(:lang(ar), .og-eraly :lang(he), :lang(fa)) .doc-text :is(th, td) { overflow-wrap: break-word; word-break: normal; }
.og-eraly [dir="rtl"] .skip { left: auto; right: -999px; }
.og-eraly [dir="rtl"] .skip:focus { right: 8px; left: auto; }
/* the countdown bar drains towards its start side */
.og-eraly [dir="rtl"] .timer > i { transform-origin: right; }
/* time axis: past on the left, today on the right, in every language */
.og-eraly [dir="rtl"] .slider-wrap,
.og-eraly [dir="rtl"] .axis,
.og-eraly [dir="rtl"] .entry { direction: ltr; }
.og-eraly [dir="rtl"] :is(.ticks span, .axis .pin) { direction: rtl; unicode-bidi: isolate; text-align: center; }
.og-eraly [dir="rtl"] .slider-wrap { padding-bottom: 40px; }
.og-eraly [dir="rtl"] .ticks { height: 36px; }
.og-eraly [dir="rtl"] .ticks .te { display: block; font-size: 10px; line-height: 1.25; margin-top: 1px; }
.og-eraly [dir="rtl"] .typed input { direction: ltr; unicode-bidi: plaintext; text-align: center; }
.og-eraly [dir="rtl"] .era button { direction: rtl; }
/* numbers and data strings read left to right whatever the page direction */
.og-eraly [dir="rtl"] :is(.sum-total, .next-box .cd, .timer-n, .mini-stats b, .session-bar b, .rules3 b, .squares, .recent, .hist span:last-child, .sum-list .p) { direction: ltr; unicode-bidi: isolate; }
.og-eraly [dir="rtl"] :is(.sum-total, .squares) { text-align: center; }
.og-eraly [dir="rtl"] .year-big,
.og-eraly [dir="rtl"] .reveal .truth,
.og-eraly [dir="rtl"] .pts { unicode-bidi: isolate; }
.og-eraly [dir="rtl"] .sum-list .p { text-align: left; }
.og-eraly [dir="rtl"] .hist span:last-child { text-align: right; }
/* the language links: 31 names, each isolated with its own dir attribute */
.og-eraly [dir="rtl"] .foot-lang a,
.og-eraly [dir="rtl"] .foot-lang .cur { unicode-bidi: isolate; }
