/* Окна «Профессия» и «Кузница крыльев» — стиль windows.css (тёмный металл + золото) */
.pw-root { position: fixed; inset: 0; z-index: 13; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch;
  height: var(--app-h, 100%); background: rgba(4, 3, 2, 0.62); box-sizing: border-box; padding: calc(4px + var(--sat, 0px)) 4px calc(4px + var(--sab, 0px)); }
.pw-root.hidden { display: none; }
.pw-root .pw-box { position: relative; margin: auto 0; display: flex; flex-direction: column; width: min(600px, calc(100vw - 12px));
  max-height: calc(var(--app-h, 100vh) - 8px - var(--sat, 0px) - var(--sab, 0px)); }
.pw-x { position: relative; z-index: 5; min-width: 44px; min-height: 44px; }
.pw-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 2px 6px; font-size: 12.5px; color: #d9cba8; -webkit-overflow-scrolling: touch; }
.pw-card { margin: 6px 4px; padding: 9px 10px; border-radius: 8px; background: linear-gradient(180deg, rgba(40,32,22,.92), rgba(22,18,13,.92)); border: 1px solid #5a4526; }
.pw-card.top { border-color: #e8c25a; box-shadow: 0 0 14px rgba(232,194,90,.2); }
.pw-title { font: 700 15px Georgia, serif; color: #ffe7a0; text-shadow: 0 1px 0 #000; }
.pw-sub { margin: 8px 6px 2px; color: #e8c26a; font-weight: 700; font-size: 12px; letter-spacing: .4px; }
.pw-text { margin-top: 3px; line-height: 1.4; }
.pw-hint { color: #b9a98a; font-size: 12px; }
.pw-lock { color: #e07a5a; font-weight: 700; }
.pw-path { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 4px; flex-wrap: wrap; }
.pw-node { text-align: center; padding: 5px 8px; border-radius: 6px; border: 1px solid #4a3a20; background: rgba(20,16,10,.8); min-width: 84px; }
.pw-node i { display: block; font-style: normal; font-size: 11px; color: #9a8a6a; }
.pw-node b { display: block; color: #d9cba8; font-size: 13px; }
.pw-node em { font-style: normal; font-size: 11px; color: #9a8a6a; }
.pw-node.done { border-color: #7fe08a; } .pw-node.done b { color: #aff0b4; }
.pw-node.next { border-color: #ffd34a; box-shadow: 0 0 10px rgba(255,211,74,.35); } .pw-node.next b { color: #ffe7a0; }
.pw-arr { color: #e8c26a; font-size: 14px; }
.pw-bon { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; } .pw-bon b { color: #8ff09a; }
.pw-skill { display: flex; gap: 9px; align-items: flex-start; margin-top: 6px; padding: 6px; border-radius: 6px; background: rgba(0,0,0,.3); }
.pw-sk-ic img { width: 48px; height: 48px; display: block; }
.pw-skill b { color: #fff1c4; font-size: 14px; } .pw-skill u { text-decoration: none; color: #ff7a6a; font-size: 11px; font-weight: 800; }
.pw-sk-meta { color: #b9a98a; font-size: 11px; } .pw-sk-d { margin-top: 2px; line-height: 1.35; }
.pw-steps { margin: 4px; }
.pw-step { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; margin-top: 4px; border-radius: 6px; border-left: 3px solid #4a3a20; background: rgba(20,16,10,.7); opacity: .7; }
.pw-step.now { opacity: 1; border-left-color: #ffd34a; background: rgba(60,46,20,.8); }
.pw-step.done { opacity: 1; border-left-color: #7fe08a; }
.pw-step b { color: #ffe7a0; } .pw-step em { font-style: normal; color: #8ff09a; font-weight: 700; }
.pw-num { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #2a2014; border: 1px solid #e8c26a; color: #ffe7a0; font-weight: 800; font-size: 12px; }
.pw-step.done .pw-num { background: #1e4a24; border-color: #7fe08a; color: #bff7c4; }
.pw-goal { color: #c9b994; font-size: 12px; line-height: 1.35; }
.pw-rw { margin: 6px 8px; font-size: 12px; color: #c9b994; line-height: 1.6; }
.pw-ic { width: 22px; height: 22px; vertical-align: middle; margin-right: 3px; }
.pw-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 8px 4px 4px; }
.pw-act button, .pw-tab, .pw-stp button { min-height: 44px; padding: 0 18px; border-radius: 6px; border: 1px solid #8a6a2a; color: #ffe7a0; background: var(--w-btn, #2a2014); font: 700 14px system-ui, sans-serif; }
.pw-act .q-turn { color: #2a1c06; background: var(--w-btn-go, #d79a2c); border-color: #ffe08a; min-width: 160px; }
.pw-act button:disabled { opacity: .45; filter: grayscale(.7); }
.pw-act .danger { color: #ffb0a0; border-color: #8a3a2a; }
.pw-glow:not(:disabled) { animation: pwGlow 1.4s ease-in-out infinite; }
@keyframes pwGlow { 50% { box-shadow: 0 0 16px rgba(255,220,120,.85); } }
.pw-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 2px 4px 4px; }
.pw-tab { padding: 2px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1.1; min-height: 52px; }
.pw-tab img { width: 22px; height: 22px; } .pw-tab b { font-size: 13px; } .pw-tab i { font-style: normal; font-size: 11px; color: #b9a98a; }
.pw-tab.on { border-color: #ffd34a; box-shadow: inset 0 0 0 1px #ffd34a, 0 0 10px rgba(255,211,74,.3); }
.pw-wing { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pw-wing-ic img { width: 76px; height: 76px; display: block; filter: drop-shadow(0 0 8px rgba(255,230,160,.5)); }
.pw-wing-i { flex: 1; min-width: 160px; }
.pw-req { font-size: 12px; margin-top: 3px; color: #b9a98a; }
.ok { color: #8ff09a; } .bad { color: #ff7a6a; }
.pw-wstats { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12px; color: #fff1c4; }
.pw-mats { margin: 0 4px; display: grid; gap: 3px; }
.pw-mat { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 5px; background: rgba(20,16,10,.75); border: 1px solid #3a2e1a; }
.pw-mat span:nth-child(2) { flex: 1; } .pw-mat em { font-style: normal; font-size: 11px; color: #9a8a6a; }
.pw-mat.ok { border-color: #2f6a35; } .pw-mat.ok b { color: #8ff09a; } .pw-mat.bad { border-color: #7a2e22; } .pw-mat.bad b { color: #ff7a6a; }
.pw-coin { width: 22px; text-align: center; }
.pw-boost { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 4px 0; font-size: 12px; }
.pw-boost > div { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 6px; background: rgba(20,16,10,.7); }
.pw-boost .pw-stp { display: flex; align-items: center; gap: 6px; padding: 0; margin: 0; border: 0; background: none; }
.pw-boost .pw-stp button { min-width: 44px; padding: 0; font-size: 18px; }
.pw-boost .pw-stp i { font-style: normal; min-width: 18px; text-align: center; color: #ffe7a0; font-weight: 800; }
.pw-chance { margin: 8px 6px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pw-chance b { color: #ffe7a0; font-size: 14px; } .pw-chance em { font-style: normal; color: #9a8a6a; font-size: 11px; }
.pw-bar { flex: 1 1 100%; height: 10px; border-radius: 5px; background: #120e08; border: 1px solid #5a4526; overflow: hidden; }
.pw-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8a5a14, #ffd34a, #fff1c0); }
.pw-fail { margin: 4px 6px; font-size: 11.5px; color: #c98a7a; }
.pw-src { color: #9a8a6a; font-size: 11.5px; }
.pw-anim { position: absolute; inset: 44px 0 0; display: grid; place-items: center; pointer-events: none; z-index: 6; }
.pw-anim.hidden { display: none; }
.pw-anim-in { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 26px; border-radius: 12px; background: rgba(10,8,4,.92); border: 1px solid #e8c26a; }
.pw-anim-in b { font: 800 22px Georgia, serif; } .pw-anim-in i { font-style: normal; color: #d9cba8; }
.pw-anim.ok .pw-anim-in { animation: pwOk 2.2s ease-out both; box-shadow: 0 0 40px rgba(255,220,120,.7); } .pw-anim.ok b { color: #ffe7a0; }
.pw-anim.ok img { width: 96px; height: 96px; animation: pwRise 2.2s ease-out both; }
.pw-anim.fail .pw-anim-in { animation: pwFail 2.2s ease-out both; border-color: #8a3a2a; } .pw-anim.fail b { color: #ff7a6a; }
.pw-crack { font-size: 46px; color: #ff5a3a; text-shadow: 0 0 14px #ff2a1a; }
@keyframes pwOk { 0% { transform: scale(.4); opacity: 0; } 15% { transform: scale(1.12); opacity: 1; } 25% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pwRise { 0% { transform: translateY(20px) rotate(-8deg); filter: brightness(3); } 40% { transform: translateY(-6px) rotate(3deg); filter: brightness(1.4) drop-shadow(0 0 14px #ffe9a0); } 100% { transform: none; } }
@keyframes pwFail { 0% { transform: scale(1.3); opacity: 0; } 10% { opacity: 1; transform: scale(1) translateX(-8px); } 16% { transform: translateX(8px); } 22% { transform: translateX(-5px); } 28% { transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }
/* плашка «Локации»: святилища и перья */
#locs .l-sanct { margin-top: 2px; color: #fff1c0; } #locs .l-feath { margin-top: 2px; color: #c9b0ff; }
/* подсказка вещи: крылья */
.t-wing { color: #fff1c0; font-weight: 700; }
.pf-box em { color: #ffd34a; font-style: normal; }
.sk-prof { text-decoration: none; color: #ffd34a; font-weight: 800; font-size: 11px; }
@media (orientation: landscape) and (max-height: 420px) {
  .pw-root .pw-box { width: min(720px, calc(100vw - 12px)); }
  .pw-path { flex-wrap: nowrap; } .pw-node { min-width: 0; padding: 3px 6px; }
}
/* Подготовка к профессии: требования, прогресс-бары, церемония */
.pw-ptot { font-size: 12px; color: #cfc3a3; margin: 6px 0 2px; }
.pw-pbar { position: relative; height: 14px; border-radius: 7px; background: rgba(0,0,0,0.55); border: 1px solid #4a3a1e; overflow: hidden; margin-top: 3px; min-width: 120px; flex: 1 1 auto; }
.pw-pbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #8a5a1a, #ffd34a); }
.pw-pbar span { position: relative; display: block; text-align: center; font-size: 11px; line-height: 14px; color: #fff; text-shadow: 0 1px 2px #000; }
.pw-srw { font-size: 11px; color: #ffe27a; white-space: nowrap; }
.pw-srw img { width: 18px; height: 18px; vertical-align: -4px; }
.pw-prep { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.pw-prow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px; border-radius: 6px; background: rgba(0,0,0,0.3); border: 1px solid #3a2e18; font-size: 12px; }
.pw-prow.ok { border-color: #3d7a3a; } .pw-prow.ok > span, .pw-req1.ok { color: #7ee07a; }
.pw-prow.bad { border-color: #7a3030; } .pw-prow.bad > span, .pw-req1.bad { color: #ff7a6a; }
.pw-prow button { min-height: 40px; min-width: 76px; }
.pw-stones { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.pw-req1 img { width: 18px; height: 18px; vertical-align: -4px; }
.pw-tasks { display: flex; flex-direction: column; gap: 3px; width: 100%; color: #cfc3a3; }
.pw-trow { display: flex; align-items: center; gap: 8px; } .pw-trow > span { min-width: 92px; font-weight: 600; }
.pw-banner { position: fixed; left: 50%; top: 22%; transform: translateX(-50%); z-index: 60; pointer-events: none; padding: 8px 22px; border-radius: 8px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.75) 15%, rgba(0,0,0,0.75) 85%, transparent); animation: pwBan 1.8s ease-out forwards; }
.pw-banner b { color: var(--bc); font-size: 20px; letter-spacing: 1px; text-shadow: 0 0 12px var(--bc), 0 2px 2px #000; white-space: nowrap; }
@keyframes pwBan { 0% { opacity: 0; transform: translateX(-50%) scale(1.4); } 15% { opacity: 1; transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.pw-cer { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pw-cer-flash { position: absolute; inset: 0; background: radial-gradient(circle, #fff 0%, rgba(255,230,140,0.85) 30%, rgba(255,200,60,0) 70%); animation: pwFlash 1.2s ease-out forwards; }
.pw-cer-rays { position: absolute; width: 180vmax; height: 180vmax; background: repeating-conic-gradient(rgba(255,215,90,0.22) 0 6deg, transparent 6deg 18deg); animation: pwRays 4.2s linear forwards; }
.pw-cer-card { position: relative; text-align: center; padding: 14px 28px; border: 2px solid #e8c26a; border-radius: 10px; background: rgba(10,6,2,0.85);
  box-shadow: 0 0 40px rgba(255,200,80,0.6); animation: pwCard 4.2s ease-out forwards; }
.pw-cer-card i { display: block; font-style: normal; color: #cfc3a3; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.pw-cer-card b { display: block; color: #ffe27a; font-size: 28px; margin: 4px 0; text-shadow: 0 0 16px #ffb020; }
.pw-cer-card em { display: block; font-style: normal; color: #bfb39a; font-size: 12px; }
@keyframes pwFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pwRays { 0% { transform: rotate(0) scale(0.3); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: rotate(60deg) scale(1); opacity: 0; } }
@keyframes pwCard { 0% { transform: scale(0.4); opacity: 0; } 12% { transform: scale(1.08); opacity: 1; } 20% { transform: scale(1); } 88% { opacity: 1; } 100% { opacity: 0; } }
