/* The workshop (ART_STYLE.md section 9), part two: the pieces round the page. The home HUD and its tiles, the home
   cards, the nav rail, the tick clock, the lurkers and company boards, the guide, the bell, the toast and the goblin's
   speech bubble. Same plates and tokens as workshop-base.css. */

/* ---------- the home HUD: who you are, yer purse, the menus ---------- */
#whoami.hud { padding: 22px 16px 14px; }
#whoami .hud-name { font-family: var(--f-head); font-size: 22px; color: var(--wk-paper); text-shadow: 2px 2px 0 var(--wk-ink); }
#whoami .hud-co { font-weight: 800; color: var(--wk-brass); }
#whoami .hud-crest, #whoami .hud-mini { border: 3px solid var(--wk-ink); border-radius: 8px; background: var(--wk-well); box-shadow: var(--wk-drop-sm); }
#whoami .hud-mini { min-width: 40px; min-height: 40px; }
#whoami .cur { border: 3px solid var(--wk-ink); border-radius: 8px; background: var(--wk-deep); box-shadow: inset 0 0 0 2px #444a55; min-height: 44px; }
#whoami .cur .cv { font-weight: 800; }
#whoami .cur .cl { font-weight: 800; letter-spacing: 1px; color: #9aa8b8; }
#whoami .cur.gold .cv { color: var(--wk-brass); }
#whoami .cur.ruby .cv { color: var(--wk-magenta); }
#whoami .cur.gobuck .cv { color: var(--wk-potion); }
#whoami .cur:hover { background: var(--wk-well); border-color: var(--wk-ink); box-shadow: inset 0 0 0 2px var(--wk-brass); }
#whoami .hud-nav { border-top: 3px dashed var(--wk-ink); }
/* a group: a dark well with its name in brass over it */
#whoami .hud-grp { --ga: 154, 168, 184; border-radius: 10px; border: 3px solid var(--wk-ink); background: var(--wk-deep); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.05); padding: 6px 7px 8px; }
#whoami .hud-gl { font-family: var(--f-ui); font-weight: 800; font-size: 11px; letter-spacing: 2px; color: var(--wk-brass); }
#whoami .hud-grp.g-games, #whoami .hud-grp.g-war { --ga: 255, 58, 192; }
#whoami .hud-gt .tile {
  border-radius: 8px; border: 3px solid var(--wk-ink); background: var(--wk-plate); box-shadow: var(--wk-drop-sm); color: var(--wk-paper);
  font-family: var(--f-ui); font-weight: 800; min-height: 56px;
}
#whoami .hud-gt .tile:nth-child(even) { rotate: 0.6deg; }
#whoami .hud-gt .tile:nth-child(odd) { rotate: -0.6deg; }
#whoami .hud-gt .tile:hover { background: var(--wk-plate); border-color: var(--wk-ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 6px 0 var(--wk-ink), 0 0 0 2px var(--wk-potion); }
#whoami .hud-gt .tile .tl { font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; font-size: 10px; }
#whoami .tile .tb { border: 2px solid var(--wk-ink); font-family: var(--f-ui); font-weight: 800; }
#whoami .tile .tb.tally { background: var(--wk-iron2); border-color: var(--wk-ink); }
#whoami .tile .tb.done { background: var(--wk-potion); color: var(--wk-ink); border-color: var(--wk-ink); }

/* ---------- the home cards under it ---------- */
#homeboard .hbcard { padding: 24px 16px 16px; }
#homeboard .hbcard.click:hover { border-color: var(--wk-ink); transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 8px 0 var(--wk-ink), 0 0 0 2px var(--wk-potion); }
#homeboard h3 { font-size: 20px; border-bottom: 3px dashed var(--wk-ink); padding-bottom: 6px; }
#homeboard .hbgo { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--wk-potion); }
#homeboard .hbbar { border: 2px solid var(--wk-ink); background: var(--wk-deep); }
#homeboard .hbbar b { background: repeating-linear-gradient(90deg, var(--wk-potion) 0 10px, #4a9a2a 10px 14px); }
#homeboard .hbrow { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.loader .cauldron { filter: drop-shadow(3px 3px 0 var(--wk-ink)); }
.loader p, .dead p { font-family: var(--f-ui); font-weight: 500; color: #aab4c2; }

/* ---------- the nav rail (left) and its More sheet ---------- */
#navrail { background: var(--wk-plate), var(--wk-iron); border: 3px solid var(--wk-ink); border-radius: 10px; box-shadow: var(--wk-drop); }
#navrail .nr-btn { border-radius: 8px; border: 3px solid transparent; color: var(--wk-paper); }
#navrail .nr-btn:hover { background: var(--wk-well); border-color: var(--wk-ink); }
#navrail .nr-btn.on { background: var(--wk-well); border-color: var(--wk-ink); box-shadow: inset 4px 0 0 var(--wk-potion); }
#navrail .nr-btn.on .nr-l, #navrail .nr-home .nr-l { color: var(--wk-potion); }
#navrail .nr-l, #navmore .nr-l { font-family: var(--f-ui); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; font-size: 9.5px; }
#navmore { background: var(--wk-plate), var(--wk-iron); border: 3px solid var(--wk-ink); border-radius: 10px; box-shadow: var(--wk-drop); }
#navmore .nm-gl { font-family: var(--f-ui); font-weight: 800; letter-spacing: 2px; color: var(--wk-brass); }
#navmore .nm-tile { border-radius: 8px; border: 3px solid var(--wk-ink); background: var(--wk-well); box-shadow: var(--wk-drop-sm); }
#navmore .nm-tile:hover { box-shadow: 0 0 0 2px var(--wk-potion), 0 4px 0 var(--wk-ink); }

/* ---------- the tick clock, the jukebox and activities (top right chips) ---------- */
#tickclock .tick {
  border-radius: 20px; border: 3px solid var(--wk-ink); background: var(--wk-plate); box-shadow: var(--wk-drop-sm);
  font-family: var(--f-ui); font-weight: 500; color: var(--wk-paper); letter-spacing: 0;
}
#tickclock .tick .tickt { color: var(--wk-potion); font-weight: 800; }
#tickclock .tick .tickbar { background: var(--wk-deep); }
#tickclock .tick .tickbar i { background: var(--wk-potion); }
#tickclock .tick.soon .tickt, #tickclock .tick.soon .tickbar i { color: var(--wk-amber); background-color: var(--wk-amber); }
#tickclock .tick.soon .tickt { background: none; }
#tickpeek, .act .apeek { border-radius: 10px; border: 3px solid var(--wk-ink); background: var(--wk-plate), var(--wk-iron); box-shadow: var(--wk-drop); font-family: var(--f-ui); }
.jbbtn { border: 2px solid var(--wk-ink); background: var(--wk-well); color: var(--wk-paper); }
.jbbtn.main { background: var(--wk-potion); color: var(--wk-ink); }

/* ---------- the lurkers, What's on, and the company boards (top corners) ---------- */
#onlinepanel, #richpanel { border-radius: 10px; border: 3px solid var(--wk-ink); background: var(--wk-plate), var(--wk-iron); box-shadow: var(--wk-drop); }
#onlinehead, #richhead, #gameshead { font-family: var(--f-ui); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; color: var(--wk-paper); min-height: 44px; }
#onlinehead b, #gameshead b { color: var(--wk-potion); }
#richhead { color: var(--wk-brass); }
#richtabs .rtab { border: 2px solid var(--wk-ink); background: var(--wk-deep); font-weight: 800; }
#richtabs .rtab.on { background: var(--wk-potion); color: var(--wk-ink); }
#richtabs .rset { border: 2px solid var(--wk-ink); background: var(--wk-deep); color: var(--wk-paper); }
#richtabs .rset.on { background: var(--wk-brass); color: var(--wk-ink); }
.gon { border-radius: 8px; border: 2px solid var(--wk-ink); background: var(--wk-deep); }
.gon .gjoin { border: 2px solid var(--wk-ink); border-radius: 6px; background: var(--wk-potion); color: var(--wk-ink); font-weight: 800; text-transform: uppercase; }
.gon .gjoin.watch { background: var(--wk-iron2); color: var(--wk-paper); }

/* ---------- the guide and the bell ---------- */
#guide { background: rgba(6, 7, 10, 0.82); }
.gu-card { border-radius: 10px; border: 3px solid var(--wk-ink); background: var(--wk-plate), var(--wk-iron); box-shadow: var(--wk-drop); }
.gu-head h2 { font-size: clamp(22px, 4vw, 32px); }
.gu-tabs { border-bottom: 3px dashed var(--wk-ink); }
.gu-tab { min-height: 40px; border-radius: 8px; border: 3px solid var(--wk-ink); background: var(--wk-well); font-family: var(--f-ui); font-weight: 800; }
.gu-tab.on { background: var(--wk-potion); color: var(--wk-ink); border-color: var(--wk-ink); }
.gu-pages { border-right: 3px dashed var(--wk-ink); }
.gu-page { min-height: 40px; border-radius: 8px; font-weight: 500; }
.gu-page.on { background: var(--wk-well); border: 3px solid var(--wk-ink); color: var(--wk-potion); box-shadow: inset 4px 0 0 var(--wk-potion); }
.gu-body { font-weight: 400; }
.gu-body h3 { font-family: var(--f-head); font-weight: 400; color: var(--wk-brass); text-shadow: 2px 2px 0 var(--wk-ink); }
.gu-body h4 { color: var(--wk-potion); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.gu-body b { color: var(--wk-paper); font-weight: 800; }
.gu-tip, .gu-note { border-radius: 8px; border-left: 4px solid var(--wk-brass); background: rgba(242, 182, 50, 0.08); }
.gu-table th { color: var(--wk-brass); border-bottom: 3px dashed var(--wk-ink); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.gu-foot { border-top: 3px dashed var(--wk-ink); }
.gu-foot input { accent-color: var(--wk-potion); }
#guidebtn {
  border-radius: 10px; border: 3px solid var(--wk-ink); color: var(--wk-paper); box-shadow: var(--wk-drop-sm); min-height: 44px;
  background: linear-gradient(var(--wk-well), var(--wk-well)) center / calc(100% - 14px) calc(100% - 10px) no-repeat, var(--wk-hazard);
  font-family: var(--f-ui); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; text-shadow: none;
}
#guidebtn:active { box-shadow: 0 1px 0 var(--wk-ink); }
#bellbtn { border-radius: 10px; border: 3px solid var(--wk-ink); background: var(--wk-plate); box-shadow: var(--wk-drop-sm); }
#bellbtn i { background: var(--wk-red); border: 2px solid var(--wk-ink); }
#bell .bellcard { border-radius: 10px; }

/* ---------- the toast and the goblin's speech bubble ---------- */
#toast { border-radius: 10px; border: 3px solid var(--wk-ink); background: var(--wk-plate), var(--wk-iron); box-shadow: var(--wk-drop); color: var(--wk-paper); font-family: var(--f-ui); }
#toast::before { background: var(--wk-potion); width: 4px; }
#toast b, #toast strong { color: var(--wk-brass); }
/* (the goblin's says is a riveted plate with a brass edge on his side, the job in potion green, the pay under a dashed rule) */
.bubble, #goblin.left .bubble {
  border-radius: 10px; border: 3px solid var(--wk-ink); color: var(--wk-paper); padding: 24px 16px 16px;
  background: var(--wk-rivet-dot) 7px 7px / 12px 12px no-repeat, var(--wk-rivet-dot) right 7px top 7px / 12px 12px no-repeat, var(--wk-plate), var(--wk-iron);
  box-shadow: var(--wk-drop), inset -5px 0 0 var(--wk-brass), 0 18px 40px rgba(0, 0, 0, 0.6);
}
#goblin.left .bubble { box-shadow: var(--wk-drop), inset 5px 0 0 var(--wk-brass), 0 18px 40px rgba(0, 0, 0, 0.6); }
.bubble::after { background: var(--wk-iron); border-color: var(--wk-ink); }
.bubble p { font-family: var(--f-ui); font-weight: 500; color: var(--wk-paper); text-shadow: 1px 1px 0 var(--wk-ink); }
.bubble p b { color: var(--wk-potion); font-weight: 800; font-size: 1em; text-transform: none; }
#goblin.imposter .bubble p b { color: var(--wk-amber); }
.bubble .reward { color: #c8cfd8; font-family: var(--f-ui); font-weight: 500; font-size: 14px; margin: 0 0 12px; padding-top: 10px; border-top: 3px dashed var(--wk-ink); }
.bubble .reward b { color: var(--wk-brass); font-weight: 800; }
.bubble-actions .gob { min-height: 44px; --fs: 13px; }
#goblin.sad .bubble p { color: #aab4c2; }

/* ---------- the soundboard page ---------- */
#soundboard .sbhead, #modes .sbhead { border-bottom: 3px dashed var(--wk-ink); }
#soundboard .sbhead .sbsub, #modes .sbhead .sbsub { color: #9aa8b8; }
#channels { border-radius: 10px; border: 3px solid var(--wk-ink); background: var(--wk-plate), var(--wk-iron); box-shadow: var(--wk-drop); }
#channels::before { content: "Pick yer hovel"; font-family: var(--f-head); font-weight: 400; color: var(--wk-brass); letter-spacing: 0; text-shadow: 2px 2px 0 var(--wk-ink); }
#historypanel { border-radius: 10px; border: 3px solid var(--wk-ink); background: var(--wk-plate), var(--wk-iron); box-shadow: var(--wk-drop); }
#historypanel h2 { font-family: var(--f-head); font-weight: 400; color: var(--wk-brass); }
#main .cat > h2, #main .cat h3 { font-family: var(--f-head); font-weight: 400; color: var(--wk-brass); text-shadow: 2px 2px 0 var(--wk-ink); }

/* ---------- full-screen pages: the soundboard, the village and casino maps (the skill tree: workshop-grimoire.css) ---------- */
#modes, #village { background: #0e1016 var(--wk-stripes); }
#soundboard .sbhead, #modes .sbhead { border-radius: 10px; border: 3px solid var(--wk-ink); background: var(--wk-plate), var(--wk-iron); box-shadow: var(--wk-drop); }
#soundboard .sbhead h2, #modes .sbhead h2 { font-family: var(--f-head); }
.vtop { background: var(--wk-plate), var(--wk-iron); border-bottom: 3px solid var(--wk-ink); box-shadow: 0 4px 0 var(--wk-ink); }
.vtop h2 { font-family: var(--f-head); font-weight: 400; color: var(--wk-brass); text-shadow: 2px 2px 0 var(--wk-ink); }
#vilpanel { background: var(--wk-plate), var(--wk-iron); border-left: 3px solid var(--wk-ink); }

/* ---------- phones: the HUD keeps its old tight padding so five tiles fit a 360px screen ---------- */
@media (max-width: 720px) {
  #whoami.hud { padding: 20px 8px 10px; }
  #whoami .hud-grp { padding: 4px 4px 6px; }
  #whoami .hud-gt { gap: 4px; }
  #whoami .hud-gt .tile { border-width: 2px; rotate: 0deg !important; }
  #whoami .hud-gt .tile .tl { font-size: 8.5px; letter-spacing: 0; }
  #whoami .cur { min-width: 0; }
  #whoami .cur { grid-template-columns: 20px minmax(0, auto); column-gap: 5px; padding: 4px 6px; }
  #whoami .cur .ci { font-size: 17px; }
  #whoami .cur .cl { letter-spacing: 0.3px; font-size: 10px; }
}

/* ---------- the goblin himself: drawn live once three.js is in, the old drawing until then ---------- */
#goblin canvas.mascot3d { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7)); }

/* ---------- an honour's letter from the town (js/ui/honour-letter.js): a brass-sealed plate over the dark ---------- */
#honourwin { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 20px 16px; overflow-y: auto; background: radial-gradient(ellipse at 50% 30%, rgba(255, 154, 42, 0.14), rgba(14, 16, 22, 0.97) 65%); }
#honourwin.gone { opacity: 0; transition: opacity 0.4s; }
#honourwin .hw-card { position: relative; max-width: 560px; width: 100%; padding: 30px 20px 20px; text-align: center; border: 3px solid var(--wk-ink); border-radius: 10px; background: var(--wk-plate), var(--wk-iron); box-shadow: var(--wk-drop); }
#honourwin .hw-card::before, #honourwin .hw-card::after { content: ""; position: absolute; top: 8px; width: 12px; height: 12px; background: var(--wk-rivet-dot); }
#honourwin .hw-card::before { left: 8px; } #honourwin .hw-card::after { right: 8px; }
#honourwin .hw-seal { width: 64px; height: 64px; margin: -60px auto 6px; display: grid; place-items: center; font-size: 30px; border-radius: 50%; border: 3px solid var(--wk-ink); background: radial-gradient(circle at 40% 35%, #ffd86a, var(--wk-brass) 60%, #8a5a10); box-shadow: 0 0 24px rgba(255, 154, 42, 0.45), 0 4px 0 var(--wk-ink); }
#honourwin .hw-title { margin: 0 0 6px; font: 400 clamp(28px, 7vw, 40px) var(--f-head); color: var(--wk-brass); text-shadow: 3px 3px 0 var(--wk-ink); transform: rotate(-2deg); }
#honourwin .hw-lead { margin: 10px 0 4px; font-weight: 800; text-align: left; }
#honourwin .hw-text { margin: 4px 0; text-align: left; line-height: 1.5; color: var(--ink-soft); }
#honourwin .hw-list { margin: 10px 0; padding: 0; list-style: none; text-align: left; border-top: 3px dashed var(--wk-ink); }
#honourwin .hw-list li { padding: 8px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); line-height: 1.4; }
#honourwin .hw-cape { display: flex; justify-content: center; margin: 6px 0; filter: drop-shadow(0 0 16px rgba(255, 154, 42, 0.45)); }
#honourwin .hw-sign { margin: 8px 0 14px; font-style: italic; color: var(--ink-dim); }
#honourwin .hw-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#honourwin .hw-acts button { min-height: 48px; }
#honourwin .hw-cape { flex-wrap: wrap; gap: 14px; align-items: center; }
#honourwin .hw-gcard { --gw: min(140px, 38vw); }
