/* The game laid over the walk. Colours come from the walk's own variables. */
#btnTour, #beginTour, #btnVids, #btnVideo, #btnVideo2, #tabV, #host, #helpHost { display:none !important; }   /* the 1856 tour's own buttons; in the game the guides speak from portraits on the walls (26 Nov 2026) */   /* the 1856 tour's own extras; the headset comes in a later step */
#gBook { z-index:19; right:calc(12px + env(safe-area-inset-right)); top:calc(12px + env(safe-area-inset-top)); padding:10px 14px; background:var(--oxblood); color:var(--parchment); border-color:var(--oxblood); }
#gBook[hidden], #gAct[hidden], #gGoal[hidden] { display:none; }
#gAct { z-index:19; left:50%; bottom:calc(86px + env(safe-area-inset-bottom)); transform:translateX(-50%); padding:13px 22px; font-size:16px; background:var(--oxblood); color:var(--parchment); border-color:var(--oxblood); max-width:calc(100vw - 32px); }
#gGoal { position:fixed; left:50%; bottom:calc(22px + env(safe-area-inset-bottom)); transform:translateX(-50%); max-width:min(520px,calc(100vw - 150px)); text-align:center; font-family:"Source Serif 4",serif; font-size:14.5px; line-height:1.35; color:var(--parchment); text-shadow:0 1px 3px rgba(0,0,0,.85), 0 0 12px rgba(0,0,0,.6); pointer-events:none; }
#gTray { position:fixed; top:0; bottom:0; right:0; width:min(860px,100vw); background:var(--parchment); border-left:1px solid var(--line); box-shadow:-6px 0 24px rgba(0,0,0,.28); transform:translateX(105%); transition:transform .22s ease; display:flex; flex-direction:column; z-index:25; padding-top:env(safe-area-inset-top); }
#gTray.open { transform:none; }
#gTray header { display:flex; align-items:center; gap:10px; padding:12px 16px 10px; border-bottom:1px solid var(--line); }
#gTray header h2 { flex:1; margin:0; font-family:"Playfair Display",serif; font-size:20px; line-height:1.2; color:var(--oxblood); }
#gTray header button { border:1px solid var(--line); background:var(--parchment-2); border-radius:4px; padding:8px 12px; font-weight:600; font-size:13.5px; white-space:nowrap; }
#gBody { overflow:auto; flex:1; padding:14px 18px calc(22px + env(safe-area-inset-bottom)); font-family:"Source Serif 4",serif; font-size:16px; line-height:1.5; }
#gBody h3 { font-family:"Public Sans",sans-serif; font-size:12px; letter-spacing:.08em; text-transform:uppercase; margin:20px 0 6px; opacity:.75; }
#gBody .who { margin:0 0 4px; } #gBody .q { font-family:"Playfair Display",serif; font-size:21px; line-height:1.3; color:var(--oxblood); margin:4px 0 2px; }
#gBody .fine, .card .gfine { font-family:"Public Sans",sans-serif; font-size:12px; line-height:1.45; opacity:.8; }
#gBody .speaking { border-left:3px solid var(--brass); padding:2px 0 2px 12px; margin:10px 0 4px; }
.gpaper { display:block; width:100%; text-align:left; background:var(--parchment-2); border:1px solid var(--line); border-left:4px solid var(--oxblood); border-radius:4px; padding:10px 12px; margin:0 0 8px; font-family:"Source Serif 4",serif; font-size:16px; }
.gpaper b { display:block; font-weight:600; } .gpaper span { font-size:13.5px; opacity:.8; }
.gpaper.new b::after { content:" \00b7  not yet read"; font-family:"Public Sans",sans-serif; font-size:11.5px; font-weight:600; color:var(--oxblood); }
.gclue { padding:8px 0; border-bottom:1px solid var(--line); } .gclue b { font-weight:600; } .gclue:last-child { border-bottom:0; }
.gpage { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:16px; padding:14px 0; border-top:1px solid var(--line); align-items:start; }
.gpage a.scan { display:block; } .gpage img { display:block; width:100%; height:auto; border:1px solid var(--line); background:#fff; }
.gpage pre { margin:0; white-space:pre-wrap; word-wrap:break-word; font-family:"Source Serif 4",serif; font-size:15.5px; line-height:1.5; }
.gpage .st { font-family:"Public Sans",sans-serif; font-size:11.5px; font-weight:600; margin:0 0 6px; } .gpage .st.ok { color:#2f5d3a; } .gpage .st.no { color:var(--oxblood); }
.gpage.noscan { grid-template-columns:1fr; }
@media (max-width:640px) { .gpage { grid-template-columns:1fr; } }
#gLynde .card { max-width:560px; } #gLynde img { display:block; width:100%; height:auto; border:1px solid var(--line); margin:10px 0 2px; }
#gLynde blockquote { margin:12px 0; padding:2px 0 2px 14px; border-left:3px solid var(--oxblood); font-family:"Source Serif 4",serif; font-size:17px; line-height:1.5; }
#gLynde blockquote cite { display:block; font-style:normal; font-family:"Public Sans",sans-serif; font-size:11.5px; opacity:.8; margin-top:4px; }
#gName { width:100%; font:inherit; font-family:"Source Serif 4",serif; font-size:16px; padding:9px 10px; margin:2px 0 4px; border:1px solid var(--line); border-radius:4px; background:#fff; color:var(--ink); }
.card label.gl { display:block; font-family:"Public Sans",sans-serif; font-size:12.5px; font-weight:600; margin-top:10px; }

/* the tray of papers at the foot of the screen */
#gBook { display:none !important; }
#gDock { position:fixed; z-index:18; left:50%; bottom:calc(10px + env(safe-area-inset-bottom)); transform:translateX(-50%); max-width:calc(100vw - 250px); display:flex; gap:4px; padding:7px 9px 5px; overflow-x:auto; background:rgba(245,239,226,.9); border:1px solid var(--line); border-radius:14px; box-shadow:0 4px 18px rgba(0,0,0,.3); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); scrollbar-width:none; }
#gDock[hidden] { display:none; } #gDock::-webkit-scrollbar { display:none; }
.gd { flex:0 0 auto; width:74px; border:0; background:none; padding:2px 2px 0; display:flex; flex-direction:column; align-items:center; gap:3px; transition:transform .12s ease; }
.gd:hover, .gd:focus-visible { transform:translateY(-5px) scale(1.08); outline:none; }
.gd i { position:relative; display:block; width:34px; height:44px; background:#fffdf7; border:1.5px solid var(--oxblood); border-radius:2px; box-shadow:1px 2px 4px rgba(0,0,0,.25); background-image:repeating-linear-gradient(to bottom, transparent 0 6px, rgba(47,38,32,.35) 6px 7px); background-size:22px 30px; background-position:center 8px; background-repeat:no-repeat; }
.gd.book i { width:38px; background:var(--oxblood); border-color:#4d1b16; border-radius:2px 5px 5px 2px; background-image:linear-gradient(to right, rgba(0,0,0,.28) 0 5px, transparent 5px), linear-gradient(var(--brass), var(--brass)); background-size:auto, 18px 3px; background-position:0 0, 13px 12px; background-repeat:no-repeat; }
.gd.new i::after { content:""; position:absolute; right:-5px; top:-5px; width:11px; height:11px; border-radius:50%; background:var(--brass); border:2px solid var(--parchment); }
.gd span { font-family:"Public Sans",sans-serif; font-size:10.5px; font-weight:600; line-height:1.15; text-align:center; color:var(--ink); max-width:74px; }
#gAct { bottom:calc(112px + env(safe-area-inset-bottom)); }
body:has(#gDock:not([hidden])) #gGoal { display:none; }
@media (max-width:640px) { #gDock { max-width:calc(100vw - 150px); } .gd { width:62px; } }

/* Lynde's welcome film */
#gLynde { background:rgba(20,15,12,.86); }
#gLynde .card.film { max-width:min(1100px, 100%); padding:14px 14px 12px; }
#gLynde video { display:block; width:100%; height:auto; max-height:74vh; background:#000; border:1px solid var(--line); }
#gLynde video::cue { font:600 20px/1.35 "Public Sans",system-ui,sans-serif; background:rgba(20,15,12,.78); color:#fff; }
#gLynde .go { margin-top:12px; } #gLynde .go[hidden] { display:none; }
#gLynde .gfine { margin-top:10px; }
.gskip { display:block; margin:8px auto 0; border:0; background:none; text-decoration:underline; font-size:13.5px; color:var(--ink); opacity:.8; } .gskip[hidden] { display:none; }
#gDock.arrive .gd { animation:gdrop .9s cubic-bezier(.2,.9,.3,1.2) both; } #gDock.arrive .gd:nth-child(2) { animation-delay:.25s; }
@keyframes gdrop { from { transform:translateY(-70vh) scale(1.6); opacity:0; } to { transform:none; opacity:1; } }

#gAgainAsk { margin-top:12px; padding:12px 14px 14px; border:1px solid var(--line); border-left:4px solid var(--oxblood); border-radius:4px; background:var(--parchment-2); } #gAgainAsk[hidden] { display:none; } #gAgainAsk p { margin:0 0 4px; }

/* a locked box */
#gLock .card.lock { max-width:460px; } #gLock .card p { font-size:17px; }
.glockrow { display:flex; gap:10px; margin:6px 0 4px; } .glockin { flex:1; min-width:0; font:inherit; font-family:"Source Serif 4",serif; font-size:20px; padding:10px 12px; border:1px solid var(--line); border-radius:4px; background:#fff; color:var(--ink); }
.glockmsg { min-height:1.4em; font-family:"Public Sans",sans-serif; font-size:14px; font-weight:600; color:var(--oxblood); }
.card.shake { animation:gshake .32s; } @keyframes gshake { 20% { transform:translateX(-7px); } 40% { transform:translateX(6px); } 60% { transform:translateX(-4px); } 80% { transform:translateX(3px); } }

/* the record, at the flagstaff */
#gBoard .card.board { max-width:720px; } #gBoard .card.promo { max-width:480px; text-align:center; border-top-width:6px; }
.gproof { border-top:1px solid var(--line); padding:14px 0 12px; } .gproof h3 { margin:0 0 8px; font-family:"Playfair Display",serif; font-size:19px; color:var(--oxblood); }
.gproof.done p { margin:0 0 4px; } .gproved { font-family:"Public Sans",sans-serif; font-size:12.5px; font-weight:600; color:#2f5d3a; }
.glabel { font-family:"Public Sans",sans-serif; font-size:11.5px; letter-spacing:.07em; text-transform:uppercase; opacity:.75; margin:10px 0 6px; }
.gpicks { display:flex; flex-wrap:wrap; gap:6px; } .gpick { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid var(--line); border-radius:4px; background:var(--parchment-2); font-family:"Public Sans",sans-serif; font-size:13.5px; }
.gfind { display:flex; gap:9px; align-items:flex-start; padding:7px 0; font-family:"Source Serif 4",serif; font-size:15.5px; line-height:1.45; } .gfind input { margin-top:5px; }
.gproof.shake { animation:gshake .32s; }

/* what Lynde is saying, while he speaks from the wall */
#gSub { position:fixed; z-index:17; left:50%; bottom:calc(104px + env(safe-area-inset-bottom)); transform:translateX(-50%); width:min(760px, calc(100vw - 32px)); text-align:center; pointer-events:none; }
#gSub[hidden] { display:none; }
.gsubline { display:inline-block; font:600 19px/1.35 "Public Sans",system-ui,sans-serif; color:#fff; background:rgba(20,15,12,.78); padding:5px 12px; border-radius:4px; } .gsubline:empty { display:none; }
.gsubnote { margin-top:6px; font:11px/1.35 "Public Sans",system-ui,sans-serif; color:#fff; opacity:.8; text-shadow:0 1px 3px rgba(0,0,0,.9); }

#beginVR[hidden], #btnVR[hidden] { display:none !important; }   /* shown only where a headset is found (26 Nov 2026) */

/* a thing held in the hands (26 Nov 2026) */
#gHold { position:fixed; inset:0; z-index:55; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; }
#gHold .ghhint { position:absolute; left:50%; top:14px; transform:translateX(-50%); background:rgba(20,16,12,.72); color:#fff; padding:6px 14px; border-radius:4px; font:600 14px "Public Sans",Arial,sans-serif; white-space:nowrap; }
#gHold .ghfoot { position:absolute; left:0; right:0; bottom:0; max-height:40vh; overflow:auto; background:rgba(245,239,226,.97); color:#2f2620; padding:14px 18px calc(14px + env(safe-area-inset-bottom)); display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:end; cursor:default; font:16px/1.5 "Source Serif 4",Georgia,serif; }
#gHold .ghtext b { display:block; font:700 20px "Playfair Display",Georgia,serif; color:#7b2d26; } #gHold .ghtext p { margin:6px 0 0; max-width:95ch; } #gHold .ghsrc { font-size:13px; opacity:.8; }
#gHold .ghbtn { font:600 15px "Public Sans",Arial,sans-serif; padding:11px 18px; border-radius:4px; border:1px solid #7b2d26; background:#7b2d26; color:#f5efe2; cursor:pointer; white-space:nowrap; }

/* "Ask the archive": beside the Places button, top left */
#gAsk { left:calc(104px + env(safe-area-inset-left)); top:calc(12px + env(safe-area-inset-top)); padding:10px 14px; }
#gAskSheet .card p { margin:10px 0; }
#gAskAddr { width:100%; text-align:center; }
#gAskSheet .gaskhow { margin:8px 0 4px; border-top:1px solid rgba(47,38,32,.18); }
#gAskSheet .gaskrow { display:flex; gap:10px; padding:7px 0; border-bottom:1px solid rgba(47,38,32,.18); font-size:13px; line-height:1.4; text-align:left; }
#gAskSheet .gaskrow b { flex:0 0 34%; }
#gAskSheet .gaskrow span { flex:1; min-width:0; }
#gAskSheet .card { max-height:92vh; overflow:auto; }
#gAskSheet .gasknote { border-left:3px solid #7b2d26; padding:6px 0 6px 10px; margin:10px 0; font-size:14px; text-align:left; }
/* Ask the archive: the two tabs, the results and the in-game reader */
#gAskSheet .card { width:min(620px, 94vw); text-align:left; }
#gAskSheet .gasktabs { display:flex; gap:6px; margin:10px 0 6px; border-bottom:2px solid #7b2d26; }
#gAskSheet .gasktabbtn { flex:1; padding:9px 8px; border:1px solid rgba(47,38,32,.25); border-bottom:0; border-radius:4px 4px 0 0; background:transparent; font:600 14px "Public Sans",sans-serif; color:#2f2620; cursor:pointer; }
#gAskSheet .gasktabbtn.on { background:#7b2d26; color:#f4ecdf; border-color:#7b2d26; }
#gAskSheet .gasklist { max-height:42vh; overflow:auto; margin-top:8px; }
#gAskSheet .gaskhit { padding:10px 0; border-top:1px solid rgba(47,38,32,.18); }
#gAskSheet .gaskhit p { margin:4px 0 6px; font-size:14px; line-height:1.45; }
#gAskSheet .gaskacts { display:flex; gap:16px; align-items:center; font-size:13px; }
#gAskSheet .gaskacts .gskip { margin:0; }
#gAskSheet .gaskread { max-height:50vh; overflow:auto; margin-top:8px; padding-right:6px; }
#gAskSheet .gaskread h2 { font-size:18px; margin:8px 0; } #gAskSheet .gaskread h3 { font-size:15px; margin:12px 0 4px; }
#gAskSheet .gaskread p { font-size:14px; line-height:1.5; margin:6px 0; }
#gAskSheet .gaskon { display:flex; gap:16px; align-items:center; margin:10px 0; font-size:13px; }
#gAskSheet [hidden] { display:none !important; }
#gAskNote { position:fixed; left:50%; top:76px; transform:translateX(-50%); z-index:28; width:min(460px, 92vw); background:#f4ecdf; color:#2f2620; border-top:3px solid #7b2d26; border-radius:4px; box-shadow:0 6px 24px rgba(0,0,0,.35); padding:14px 16px; font:15px/1.45 "Source Serif 4",serif; text-align:center; }
#gAskNote[hidden], #gAsk[hidden] { display:none !important; }
#gAskNote .go { display:block; width:100%; margin:10px 0 4px; }

/* the player's own notes */
#gNotes { display:block; width:100%; min-height:46vh; margin:10px 0 6px; padding:14px 16px; box-sizing:border-box; font-family:"Source Serif 4",serif; font-size:17px; line-height:1.55; color:var(--ink); background:#fffdf7; border:1px solid var(--line); border-radius:4px; resize:vertical; background-image:repeating-linear-gradient(to bottom, transparent 0 25.4px, rgba(47,38,32,.12) 25.4px 26.4px); background-attachment:local; }
#gNotes:focus { outline:2px solid var(--brass); outline-offset:1px; }
.gpaper.gnotes { border-left-color:var(--brass); }
.gd.notes i { border-color:var(--brass); }
