html, body { margin: 0; height: 100%; background: #120d09; color: #f1e3c8; font: 16px/1.45 Georgia, 'Times New Roman', serif; overflow: hidden; }
#view { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; }
#cross { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -54%); color: rgba(255, 230, 180, 0.75); font: 22px monospace; pointer-events: none; }
#hud { position: fixed; left: 0; right: 0; top: 0; pointer-events: none; padding: 8px 14px; text-shadow: 0 1px 2px #000; }
#hint { font-size: 13px; opacity: 0.75; }
#status { font-size: 14px; margin-top: 4px; color: #f3d48a; }
#hover { position: fixed; left: 50%; top: 56%; transform: translateX(-50%); font-size: 14px; color: #ffe7b0; }
.pane { display: none; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, 94vw); max-height: 90vh; overflow: auto;
  background: rgba(30, 21, 13, 0.96); border: 2px solid #8a6a45; border-radius: 8px; padding: 18px 24px; box-shadow: 0 10px 50px #000; box-sizing: border-box; }
.pane.show { display: block; }
h1 { margin: 0; font-size: 42px; color: #f3d48a; letter-spacing: 2px; }
h2 { margin: 0 0 6px; color: #f3d48a; }
h3 { color: #f3d48a; margin: 18px 0 2px; }
.sub { margin-top: 0; font-style: italic; opacity: 0.8; }
.small { font-size: 13px; opacity: 0.75; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
button, select, input { font: inherit; font-size: 15px; background: #3a2a1a; color: #f1e3c8; border: 1px solid #8a6a45; border-radius: 4px; padding: 4px 10px; }
button { cursor: pointer; }
button:hover { background: #5a3f25; }
button.big { font-size: 18px; padding: 8px 22px; background: #6a4426; }
.hidden { display: none; }
.tablet { background: linear-gradient(160deg, #c08b58, #a06d3e); color: #2a170a; border-radius: 10px; padding: 16px 20px; box-shadow: inset 0 0 18px rgba(60, 30, 10, 0.6); }
#r-head { font-weight: bold; font-size: 14px; letter-spacing: 1px; opacity: 0.8; margin-bottom: 6px; }
#r-text { white-space: pre-wrap; font: 17px/1.5 Georgia, serif; margin: 0; }
.noteform { margin-top: 12px; padding: 8px 10px; border: 1px dashed #8a6a45; border-radius: 6px; }
#l-lines { padding-left: 2.2em; }
#l-lines li { margin: 4px 0; }
#l-lines li.struck .txt { text-decoration: line-through; opacity: 0.55; }
#l-lines li .meta { font-size: 12px; opacity: 0.7; margin-left: 6px; }
#l-lines li button { font-size: 12px; padding: 1px 6px; margin-left: 6px; }
#l-lines li.corr { color: #cfe8df; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
td, th { border-bottom: 1px solid #5a4430; padding: 5px 6px; text-align: left; vertical-align: top; }
td.pos { color: #a8e0b0; } td.neg { color: #f0a090; }

/* touch pad (29 Nov wake 5): only where the pointer is a finger */
#touchpad { display: none; }
@media (pointer: coarse) {
  #touchpad { display: grid; position: fixed; left: 16px; bottom: 16px; z-index: 5;
    grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(2, 56px); gap: 6px; }
  #touchpad .tp { font: 20px serif; background: rgba(60,40,20,0.55); color: #f3e2c0;
    border: 1px solid #c9a96e; border-radius: 8px; touch-action: none; user-select: none; }
  #touchpad .up { grid-column: 2; grid-row: 1; }
  #touchpad .left { grid-column: 1; grid-row: 2; }
  #touchpad .down { grid-column: 2; grid-row: 2; }
  #touchpad .right { grid-column: 3; grid-row: 2; }
  #touchpad .take { position: fixed; right: 16px; bottom: 16px; width: 84px; height: 56px; }
}
/* 30 Nov 01:59: on a short window the intro ran past the bottom and hid Begin; keep it in view. */
#begin { position: sticky; bottom: 0; box-shadow: 0 -10px 14px #1a120b, 0 0 0 10px #1a120b, 700px 0 0 10px #1a120b; }
