/* Direction B, every screen. Loads after style.css. */
.page-head { align-items: start; }
.index { position: sticky; top: 0; z-index: 20; background: rgba(11,12,13,.96); border-bottom: 1px solid #26292c; }
.index div { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 4px 4px; padding: 8px 0; }
.index a { color: var(--muted); text-decoration: none; padding: 3px 9px; border: 1px solid transparent; font-size: 12px; white-space: nowrap; }
.index a:hover { color: var(--fg); border-color: var(--line); }
.index a b { color: var(--accent-soft); font-weight: 400; margin-right: 5px; }
.grouphead { max-width: 1160px; margin: 56px auto 0; font-size: 20px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid #26292c; }
.screen { max-width: 1160px; margin: 0 auto; padding-top: 34px; scroll-margin-top: 44px; }
.screen > header { display: grid; grid-template-columns: 300px 1fr; gap: 6px 32px; margin-bottom: 12px; align-items: start; }
.screen > header h2 { font-size: 16px; font-weight: 600; }
.screen > header h2 b { color: var(--accent-soft); font-weight: 400; margin-right: 8px; }
.screen > header p { color: var(--muted); font-size: 14px; max-width: 78ch; }
.screen > header .how { color: var(--muted); font-size: 12px; margin-top: 4px; }
.row { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }

/* title bar with sections */
.B .tbar { gap: 0; }
.B .tbar h3 { margin: 0 18px 0 10px; }
.ttabs { display: flex; align-self: stretch; }
.ttabs button { padding: 0 13px; color: var(--muted); position: relative; white-space: nowrap; }
.ttabs button:hover { color: var(--fg); }
.ttabs button.on { color: #fff; }
.ttabs button.on::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 2px; background: var(--accent); }
.B .tbar .field { width: 210px; margin-right: 6px; }
.B .tbar .field.typed { color: var(--fg); border-color: var(--accent); }
.B .tbar .tool { padding: 0 7px; }
.caret { display: inline-block; width: 1px; height: 14px; background: var(--fg); margin-left: -6px; }

.B .tb2 { padding: 8px 14px; }
.B .tb2 .field { width: auto; }
.B .tb2 .count { color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); }
.check i.box { width: 14px; height: 14px; border: 1px solid var(--line); background: var(--field); display: grid; place-items: center; color: #fff; }
.check.on i.box { background: var(--accent); border-color: #000; }
.check i.box .ic { width: 10px; height: 10px; }
.dcard.done::after { content: ""; position: absolute; right: 8px; top: 8px; width: 18px; height: 18px; background: var(--green); -webkit-mask: url(assets/nf/check.png) center / 12px no-repeat; mask: url(assets/nf/check.png) center / 12px no-repeat; }
.dcard.soon { opacity: .6; }

/* overlays inside a window */
.dim { position: absolute; inset: 52px 0 20px; background: rgba(11,12,13,.45); pointer-events: none; }
.pop { position: absolute; background: rgba(25,27,29,.98); border: 1px solid #000; box-shadow: 0 10px 30px rgba(0,0,0,.6); z-index: 5; }
.pop h4 { margin: 0; padding: 9px 12px 7px; font-size: 13px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid #000; background: var(--panel); }
.pop h4 span { color: var(--muted); font-weight: 400; }
.pop h4 button { margin-left: auto; color: var(--accent-soft); font-weight: 400; }
.pop h5 { margin: 0; padding: 10px 12px 3px; font-size: 11px; font-weight: 400; color: var(--muted); }
.pop .opt { display: flex; padding: 5px 12px; }
.pop .opt:hover { background: var(--hover); }
.pop .empty { padding: 22px 16px; color: var(--muted); max-width: 46ch; }
.trow { display: grid; align-items: center; gap: 0 10px; padding: 5px 12px; border-bottom: 1px solid #26292c; }
.trow:hover { background: rgba(240,241,243,.04); }
.trow .icon { width: 24px; height: 24px; }
.thead { display: grid; gap: 0 10px; padding: 7px 12px 4px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); }

/* search results and loot finder */
.results { padding: 6px 16px 18px; }
.results h4 { margin: 14px 0 4px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.results h4 span { color: var(--muted); font-weight: 400; }
.rrow { display: grid; grid-template-columns: 70px 1fr 250px 150px 62px 24px; gap: 0 12px; align-items: center; padding: 5px 6px; border-bottom: 1px solid #26292c; width: 100%; text-align: left; }
.rrow:hover { background: rgba(240,241,243,.04); }
.rrow .bust { width: 62px; height: 34px; }
.rrow .th { width: 62px; height: 32px; background: center / cover #000; border: 1px solid #000; }
.rrow .icon { margin-left: 16px; }
.hl { background: rgba(0,145,237,.28); }
.finder { display: grid; grid-template-columns: 250px 1fr; min-height: 0; }
.fside { border-right: 1px solid #000; background: rgba(0,0,0,.14); padding: 6px 14px 14px; }
.fside h5 { margin: 12px 0 6px; font-size: 11px; font-weight: 400; color: var(--muted); }
.pick { display: flex; flex-wrap: wrap; gap: 4px; }
.pick button { height: 24px; padding: 0 8px; border: 1px solid var(--line); background: var(--card); white-space: nowrap; }
.pick button:hover { border-color: var(--accent); }
.pick button.on { border-color: var(--accent); background: var(--sel); color: #fff; }
.range { display: flex; align-items: center; gap: 8px; }
.range .field { width: 56px; color: var(--fg); justify-content: center; padding: 0; }
.fmain { display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.fmain .tb2 { border-bottom: 1px solid #000; }
.frow { display: grid; grid-template-columns: 1fr 190px 210px 62px 24px; gap: 0 12px; align-items: center; padding: 5px 16px; border-bottom: 1px solid #26292c; }
.frow:hover { background: rgba(240,241,243,.04); }
.fhead { font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); padding-top: 8px; }
.stats { font-size: 11px; color: #c9ccd1; }
.note { color: var(--muted); font-size: 11px; padding: 10px 16px; }

/* dungeon page extras */
.B .lpane .seg { width: 420px; }
.nomap { border: 1px solid #000; background: rgba(0,0,0,.14); }
.nomap .brow { grid-template-columns: 20px 76px 1fr auto; padding: 5px 10px; }
.nomap .brow .bust { width: 76px; height: 40px; }
.wing { padding: 9px 10px 4px; font-size: 11px; color: var(--muted); display: flex; gap: 8px; }
.banner { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid #5b4a1e; background: rgba(251,146,60,.07); color: #f1dcc0; }
.banner .ic { color: var(--warn); }
.banner.info { border-color: var(--line); background: var(--card); color: var(--muted); }
.banner.info .ic { color: var(--muted); }
.keycard { border: 1px solid #000; background: var(--card); }
.keycard.on { border-color: var(--accent); background: var(--sel); }
.keycard > button { display: grid; grid-template-columns: 32px 1fr auto; gap: 0 10px; align-items: center; padding: 8px 10px; width: 100%; text-align: left; }
.keycard .icon { width: 32px; height: 32px; }
.steps { counter-reset: s; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 22px 1fr auto; gap: 2px 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid #26292c; }
.step .n { width: 20px; height: 20px; border: 1px solid #000; background: rgba(25,27,29,.8); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.step.done .n { color: var(--green); } .step.done .t { color: var(--muted); }
.step.now .n { border-color: var(--accent); background: var(--sel); color: #fff; }
.step .w { grid-column: 2 / 4; font-size: 11px; color: var(--muted); }
.kill { padding: 9px 0; border-bottom: 1px solid #26292c; display: grid; gap: 4px; }
.kill .party { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; }
.kill .got { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.kill .got .icon { width: 18px; height: 18px; }

/* reputation and pvp */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fcard { display: grid; grid-template-columns: 36px 1fr; gap: 3px 10px; padding: 9px 10px; border: 1px solid #000; background: var(--card); text-align: left; align-items: center; }
.fcard:hover { border-color: var(--accent); }
.fcard .icon { width: 36px; height: 36px; grid-row: 1 / 3; }
.fcard .l2 { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.meter { flex: 1; height: 4px; background: var(--line); }
.meter i { display: block; height: 100%; }
.track { display: grid; gap: 2px; }
.track .segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; }
.track .segs span { height: 6px; background: var(--line); position: relative; }
.track .segs span i { position: absolute; inset: 0 auto 0 0; }
.track .labels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; font-size: 11px; color: var(--muted); }
.track .labels .cur { color: var(--fg); }
.st-hated { color: #cc3333; } .st-hostile { color: #e0503a; } .st-unfriendly { color: #ee8833; } .st-neutral { color: #e6cc4d; }
.st-friendly { color: #5fd35f; } .st-honored { color: #33ccaa; } .st-revered { color: #4db5f5; } .st-exalted { color: #a68cff; }
.tier { margin-top: 14px; }
.tier > h4 { margin: 0 0 4px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.tier > h4 span { color: var(--muted); font-weight: 400; }
.tier.locked .loot tr { opacity: .6; }
.money { white-space: nowrap; text-align: right; }
.money .g { color: #ffd100; } .money .s { color: #c7ccdb; } .money .c { color: #d08a4f; }
.two { display: grid; grid-template-columns: 1fr 330px; min-height: 0; }
.two > .scroll { padding: 14px 18px 18px; }
.two > aside { border-left: 1px solid #000; background: rgba(0,0,0,.14); padding: 14px 16px; display: grid; gap: 14px; align-content: start; }
.plain { display: grid; gap: 5px; }
.plain button { color: var(--accent-soft); text-align: left; }

/* surfaces outside the window */
.panel { background: rgba(25,27,29,.96); border: 1px solid #000; box-shadow: 0 12px 34px rgba(0,0,0,.55); }
.panel > .ph { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 6px 0 10px; border-bottom: 1px solid #000; background: var(--panel); }
.panel > .ph b { font-weight: 600; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel > .ph .btn { height: 20px; padding: 0 7px; font-size: 11px; }
.panel .pb { padding: 10px; display: grid; gap: 10px; }
.panel .bhead .bust { width: 80px; height: 42px; }
.panel .bhead h3 { font-size: 15px; }
.panel .brow { grid-template-columns: 20px 54px 1fr auto; padding: 4px 8px; }
.panel .brow .bust { width: 54px; height: 30px; }
.worldmap { width: 700px; height: 500px; border: 1px solid #000; background: center / cover #2a2418; position: relative; }
.worldmap::before { content: "World map (the game's own)"; position: absolute; left: 10px; top: 8px; font-size: 11px; color: rgba(20,16,8,.75); }
.toast { width: 360px; }
.toast .pb { grid-template-columns: 64px 1fr; align-items: center; }
.toast .bust { width: 64px; height: 36px; }
.trk { width: 290px; }
.trk .qrow { padding: 6px 10px; }

.dcard.noart { background: var(--panel); }
.dcard.noart::before { display: none; }
.rrow .nm, .rrow .sub, .trow .nm, .trow .sub, .frow .nm, .frow .sub, .fcard .sub { display: block; }
.icon { display: block; }
.B .tbar .field { white-space: nowrap; overflow: hidden; }
.panel .pb > *, .panel .pb > * > * { min-width: 0; }
.panel .loot .it > div { max-width: 132px; }
.panel .loot td { padding-right: 5px; }
.panel .bhead { gap: 10px; }
.panel .bhead .k { white-space: nowrap; }
.panel .sec .act { display: none; }
