/* Notatki (klawisz N): zeszyt ze znalezionymi kartkami i powiadomienie o znalezisku */
#notes { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(8,10,6,.62); backdrop-filter: blur(2px); font-family: Bahnschrift, 'DIN Alternate', 'Segoe UI', sans-serif; }
#notes.on { display: flex; }
.nt-box { position: relative; width: min(900px, 96vw); height: min(560px, 90vh); display: flex; flex-direction: column; padding: 18px 22px 20px; background: rgba(22,25,17,.97); border: 1px solid #5a5746; box-shadow: 0 10px 40px rgba(0,0,0,.6); animation: bnIn .3s cubic-bezier(.2,1.2,.4,1) both; color: #d8d2b4; }
.nt-box .win-x { top: 10px; right: 10px; }
.nt-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; padding-right: 34px; }
.nt-tabs { display: flex; gap: 4px; }
.nt-tabs button { padding: 6px 14px; font: 800 13px Bahnschrift, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #8a866f; background: rgba(10,12,8,.55); border: 1px solid #3c3f30; cursor: pointer; transition: color .12s, border-color .12s; }
.nt-tabs button:hover { color: #d8d2b4; }
.nt-tabs button.on { color: #e6e0c4; border-color: #f0c040; background: rgba(60,50,14,.5); }
.nt-count { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #a8a48a; }
.nt-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 290px 1fr; gap: 14px; }
.nt-list { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; scrollbar-width: thin; }
.nt-list button { display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; text-align: left; background: rgba(10,12,8,.55); border: 1px solid #3c3f30; color: #d8d2b4; cursor: pointer; font-family: inherit; transition: border-color .12s, background .12s; }
.nt-list button:hover { border-color: #8a866f; }
.nt-list button.cur { border-color: #f0c040; background: rgba(60,50,14,.5); }
.nt-list em, .nt-paper em, #note-toast em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #c9902c; }
.nt-list b { font-size: 13px; font-weight: 700; letter-spacing: .03em; color: #e6e0c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-empty { padding: 14px 10px; font-size: 12px; line-height: 1.5; color: #8a866f; }
.nt-page { display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 6px; background: rgba(10,12,8,.5); border: 1px solid #3c3f30; }
.nt-paper { width: min(440px, 100%); margin: 14px 0; padding: 22px 26px 26px; background: #cfc6a6; color: #2a261c; box-shadow: 0 6px 18px rgba(0,0,0,.55), inset 0 0 40px rgba(110,90,50,.25); transform: rotate(-.6deg); }
.nt-paper em { color: #7a4a1c; }
.nt-paper h3 { margin: 6px 0 12px; font: 700 19px Georgia, 'Times New Roman', serif; color: #1f1b12; }
.nt-paper p { margin: 0; font: 15px/1.6 Georgia, 'Times New Roman', serif; }
.nt-paper.k-order, .nt-paper.k-radio { background: #c4c8b8; font-family: Consolas, 'Courier New', monospace; transform: rotate(.4deg); }
.nt-paper.k-order h3, .nt-paper.k-radio h3, .nt-paper.k-order p, .nt-paper.k-radio p { font-family: Consolas, 'Courier New', monospace; }
.nt-paper.k-order h3, .nt-paper.k-radio h3 { font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.nt-paper.k-order p, .nt-paper.k-radio p { font-size: 13.5px; }
.nt-paper.k-sign { background: #b9a57a; border: 3px solid #5c4c39; transform: none; }
.nt-paper.k-sign h3 { text-transform: uppercase; letter-spacing: .06em; font-family: Bahnschrift, sans-serif; }

#note-toast { position: fixed; left: 24px; top: calc(232px + var(--lt-extra, 0px)); z-index: 40; width: 300px; padding: 12px 14px 10px; display: none; flex-direction: column; gap: 4px; background: #cfc6a6; color: #2a261c; border-left: 4px solid #7a4a1c; box-shadow: 0 6px 18px rgba(0,0,0,.55); pointer-events: none; transform: rotate(-.5deg); font-family: Bahnschrift, 'Segoe UI', sans-serif; }
#note-toast.on { display: flex; animation: ntIn .35s cubic-bezier(.2,1.2,.4,1) both; }
#note-toast em { color: #7a4a1c; }
#note-toast b { font: 700 15px Georgia, serif; color: #1f1b12; }
#note-toast p { margin: 2px 0 4px; font: 12.5px/1.45 Georgia, serif; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#note-toast span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5c4c39; }
#note-toast .kbd { font-style: normal; margin-right: 4px; }
@keyframes ntIn { from { opacity: 0; transform: translateX(-24px) rotate(-3deg); } to { opacity: 1; transform: rotate(-.5deg); } }
@media (max-width: 760px) { .nt-body { grid-template-columns: 1fr; grid-template-rows: 150px 1fr; } }

/* księga służby: wyzwania drużyny */
.nt-rec { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; padding-right: 4px; scrollbar-width: thin; }
.rc-row { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px 10px; background: rgba(10,12,8,.55); border: 1px solid #3c3f30; }
.rc-row.all { border-color: #5f7a48; background: rgba(30,40,22,.5); }
.rc-top { display: flex; align-items: center; justify-content: space-between; }
.rc-top em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #c9902c; }
.rc-pips { display: flex; gap: 4px; }
.rc-pips i { width: 9px; height: 9px; border: 1px solid #6e6a56; background: rgba(10,12,8,.8); transform: rotate(45deg); }
.rc-pips i.on { background: #f0c040; border-color: #f0c040; }
.rc-row b { font-size: 14px; font-weight: 700; letter-spacing: .04em; color: #e6e0c4; }
.rc-row p { margin: 0; min-height: 30px; font-size: 11.5px; line-height: 1.35; color: #a8a48a; }
.rc-bar { position: relative; height: 6px; margin-top: 3px; background: rgba(12,14,9,.85); border: 1px solid #5a5746; overflow: hidden; }
.rc-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #c9902c; transition: width .3s ease-out; }
.rc-row.all .rc-bar i { background: #7fae5a; }
.rc-foot { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #8a866f; font-variant-numeric: tabular-nums; }
#note-toast.ch { background: #23281b; color: #d8d2b4; border-left-color: #f0c040; transform: none; }
#note-toast.ch em { color: #f0c040; } #note-toast.ch b { font: 800 15px Bahnschrift, sans-serif; letter-spacing: .06em; color: #e6e0c4; } #note-toast.ch p { font: 12px/1.4 Bahnschrift, 'Segoe UI', sans-serif; color: #a8a48a; } #note-toast.ch span { color: #c9902c; }
@media (max-width: 760px) { .nt-rec { grid-template-columns: 1fr; } }
/* nagroda za wyzwanie czeka na odbiór (ui/notes.js): przycisk w wierszu i znacznik liczby na zakładce */
.rc-row.due { border-color: #c9a24a; }
.rc-claim { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; margin: 0 0 6px; padding: 7px 10px; font-family: inherit; text-align: left; cursor: pointer; background: rgba(60,74,30,.75); border: 1px solid #8fb35a; animation: rcDue 1.2s ease-in-out infinite; }
.rc-claim b { font-size: 13px; color: #f2ecd0; } .rc-claim span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #d8d2b4; } .rc-claim i { font-style: normal; }
.rc-claim:hover { background: rgba(84,104,40,.9); border-color: #c6ea8a; }
@keyframes rcDue { 0%, 100% { box-shadow: 0 0 0 rgba(160,210,90,0); } 50% { box-shadow: 0 0 12px rgba(160,210,90,.55); } }
.nt-tabs button.due::after { content: attr(data-due); display: inline-block; margin-left: 7px; min-width: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; text-align: center; color: #10140a; background: #a8d86a; border-radius: 8px; }

/* UI130: w skali 130% i na niskim ekranie zeszyt mieści się w oknie (górna i dolna krawędź widoczne); zapas na ramkę i padding */
#notes.on > .nt-box { max-height: calc((100vh - 16px) / var(--ui) - 40px); }

/* paski przewijania w stylu gry (jak okno gotowania): cienkie, ciemne, kciuk w kolorze ramek */
.nt-rec, .nt-list, .nt-page, #notes .cd-grid, #notes .cd-body { scrollbar-width: thin; scrollbar-color: #5a5746 #0c0e09; }
#notes ::-webkit-scrollbar { width: 10px; height: 10px; }
#notes ::-webkit-scrollbar-track { background: #0c0e09; }
#notes ::-webkit-scrollbar-thumb { background: #5a5746; border: 2px solid #0c0e09; }
#notes ::-webkit-scrollbar-thumb:hover { background: #7a7660; }
#notes ::-webkit-scrollbar-button { display: none; }
