/* Town HUD (zone banner) and the NPC dialogs / debug menu (parchment windows, see windows.css). */
.zone-title { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none;
  animation: zoneIn 6s ease-out forwards; text-shadow: 0 2px 12px #000; }
.zone-title b { font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; letter-spacing: 6px; color: #ffe9a8; text-transform: uppercase; -webkit-text-stroke: 2px #2a1708; paint-order: stroke fill; text-shadow: 0 3px 0 #7a4c22, 0 0 22px rgba(241, 192, 74, 0.55); }
.zone-title span { font-size: 14px; font-weight: 700; letter-spacing: 3px; color: #fff3c8; text-shadow: var(--outline); }
@keyframes zoneIn { 0% { opacity: 0; transform: translate(-50%, -10px); } 12% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0.0; } }
.nd-say { margin: 0 0 8px; padding: 6px 10px; font-style: italic; background: var(--gf-paper-dark); border-left: 4px solid #a8743a; border-radius: 4px; }
.gfw h4 { margin: 8px 0 4px; color: #7a4c22; font-size: 13px; }
.gfw .small { font-size: 11px; }
.gfw .gf-btn.small { padding: 1px 10px; font-size: 12px; }
.gfw .gf-btn.big { width: 100%; padding: 7px; font-size: 14px; margin-top: 6px; }
.gfw input[type="text"], .gfw input.join-id { color: var(--gf-ink); background: #f6efdc; border: 1px solid #a88a58; border-radius: 6px; padding: 5px 8px; }
.gfw input:focus { border-color: #7a4c22; }
.nd-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px; }
@media (max-width: 700px) { .nd-cols { grid-template-columns: 1fr; } }
.nd-items { display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow: auto; padding: 4px; background: var(--gf-paper-dark); border: 1px solid #a88a58; border-radius: 6px; }
.nd-item { display: flex; align-items: center; gap: 8px; padding: 3px 6px; text-align: left; color: var(--gf-ink); background: #efe4c8; border: 2px solid transparent; border-radius: 6px; }
.nd-item:hover { border-color: #b88c58; }
.nd-item.on { border-color: #d98f1f; background: #f9ecc4; }
.nd-item.off { opacity: 0.55; }
.nd-item img, .nd-head img { border-radius: 6px; flex: none; }
.nd-item-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.nd-item-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-tier { font-weight: 700; color: #b6560a; min-width: 30px; text-align: right; }
.nd-detail { padding: 6px 8px; background: var(--gf-paper-dark); border: 1px solid #a88a58; border-radius: 6px; min-height: 180px; }
.nd-detail h4 { margin: 0; font-size: 15px; }
.nd-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nd-slider { display: flex; align-items: center; gap: 6px; }
.nd-slider input[type="range"] { flex: 1; accent-color: #b6560a; }
.nd-quick { display: flex; gap: 6px; justify-content: center; margin: 6px 0; }
.nd-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 2px; text-align: center; }
.nd-preview div { display: flex; flex-direction: column; padding: 4px; background: #efe4c8; border-radius: 6px; }
.nd-preview b { font-size: 14px; }
.nd-preview b.green { color: #1f8a2a; }
.nd-note { min-height: 18px; margin-top: 6px; font-weight: 700; font-size: 12px; }
.nd-note.good { color: #1f7a2a; }
.nd-note.warn { color: #b6560a; }
.nd-note.bad { color: #b3262b; }
.nd-sockets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.nd-socket { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #8a6a3a; background: #3a2a18; border: 2px solid #7a5a2a; border-radius: 50%; }
.nd-socket.full { background: radial-gradient(circle, #e3d8ff, #cdbcf2); border-color: #8a6fc0; }
.nd-socket.on { outline: 3px solid #f6c453; }
.nd-gems { display: flex; flex-direction: column; gap: 3px; max-height: 250px; overflow: auto; margin-top: 6px; }
.nd-gem { display: flex; align-items: center; gap: 8px; padding: 2px 6px; text-align: left; color: var(--gf-ink); background: #efe4c8; border: 2px solid transparent; border-radius: 6px; }
.nd-gem:hover { border-color: #b88c58; }
.nd-gem.on { border-color: #d98f1f; }
.nd-save { display: flex; gap: 6px; margin-bottom: 8px; }
.nd-save input { flex: 1; min-width: 0; }
.nd-cfgs { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow: auto; }
.nd-cfg { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--gf-paper-dark); border: 1px solid #a88a58; border-radius: 6px; }
.nd-cfg.off { opacity: 0.6; }
.nd-classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.nd-classbtn { display: flex; flex-direction: column; align-items: center; padding: 4px; color: var(--gf-ink); font-weight: 700; font-size: 12px; background: #efe4c8; border: 2px solid #b88c58; border-radius: 8px; }
.nd-classbtn:hover { background: #f9ecc4; border-color: #d98f1f; }
.nd-row { display: flex; gap: 8px; margin-top: 8px; }
.nd-debug { min-height: 160px; }
.nd-info { display: flex; flex-direction: column; }
.nd-arena .mode-card { color: #6a5230; background: #efe4c8; border: 2px solid #b88c58; }
.nd-arena .mode-card b { color: var(--gf-ink); }
.nd-arena .mode-card.on { border-color: #d98f1f; background: #f9ecc4; box-shadow: none; }
.nd-arena .chip { color: var(--gf-ink); background: #efe4c8; border: 1px solid #a88a58; }
.nd-arena .chip.on { background: #f1b84c; border-color: #b6560a; }
.nd-arena .match { background: var(--gf-paper-dark); border: 1px solid #a88a58; }
.nd-arena div.empty { color: #7a6544; border-color: #a88a58; }
.nd-arena .actions { margin: 10px 0 6px; }
.nd-arena .btn.big { background: linear-gradient(#f6c453, #d9992b); color: #2a1c05; font-weight: 700; border-color: #7a4c22; padding: 9px; font-size: 16px; }
.nd-arena .blue { color: #2c5cc4; }
.nd-arena .red { color: #b3262b; }
.nd-arena .match-list { max-height: 26vh; }
.nd-mini { display: block; }

/* Teleporter window: a plain list of destinations. */
.tp-list { display: flex; flex-direction: column; gap: 8px; }
.tp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 2px solid #a88a58; border-radius: 8px; background: linear-gradient(#f6edd2, #e0d0a8); color: #3a2a12; }
.tp-row.here { opacity: 0.6; }
.tp-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-info b { font-size: 15px; }
.tp-lvl { font-size: 11.5px; font-weight: 700; color: #7a5a22; }
.tp-blurb { font-size: 12px; color: #6a5230; }
.nd-gem.buy .nd-item-txt { flex: 1; }
.nd-jewel h5 { margin: 8px 0 2px; font-size: 12px; color: #5a3a18; }
/* Maître des compétences: the skills to learn, those a higher level unlocks, those already known. */
.tr-list { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow: auto; padding: 4px; }
.tr-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; background: var(--gf-paper-dark); border: 1px solid #a88a58; border-radius: 6px; }
.tr-row .tr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tr-row .tr-txt .mute { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-row.later, .tr-row.known { opacity: 0.7; }
.tr-lv { font-size: 12px; font-weight: 800; color: #7a4b16; }
.tr-ok { font-size: 16px; font-weight: 800; color: #2f7d32; }
