/* Estilo Lineage 2: metal azul-acinzentado, barra de título escura, links azuis sublinhados, caixas de recompensa. */
:root { --l2-bg: #171e2b; --l2-bg2: #1f2837; --l2-line: #6d7a8e; --l2-line2: #353f52; --l2-txt: #d7dbe3; --l2-dim: #8e97a8; --l2-gold: #e6c870; --l2-link: #6ea8ff; }
#dialog.l2 { background: linear-gradient(#1b2331, #141a26); color: var(--l2-txt); border: 1px solid var(--l2-line); border-radius: 3px; box-shadow: 0 0 0 1px #0a0d14, 0 10px 30px #000c, inset 0 0 0 1px var(--l2-line2); padding: 0 0 12px; width: min(440px, calc(100vw - 20px)); font: 13px/1.5 Verdana, Tahoma, system-ui, sans-serif; overflow: visible; }
#dialog.l2::backdrop { background: rgba(4, 6, 10, .35); }
.l2-bar, .l2-title { display: flex; justify-content: space-between; align-items: center; height: 24px; padding: 0 6px 0 10px; cursor: move; user-select: none; touch-action: none; background: linear-gradient(#3b475c, #232c3b); border-bottom: 1px solid #0a0d14; box-shadow: inset 0 1px 0 #5d6b82; color: #e4e9f2; font: 700 12px/24px Verdana, Tahoma, system-ui, sans-serif; letter-spacing: .02em; }
#dialog.l2 #dialog-x, .l2-x { all: unset; position: static; width: 18px; height: 18px; line-height: 16px; text-align: center; cursor: pointer; color: #c3cad8; border: 1px solid #54617a; border-radius: 2px; background: #1a2230; font: 11px/16px system-ui, sans-serif; }
#dialog.l2 #dialog-x:hover, .l2-x:hover { color: #fff; border-color: var(--l2-gold); }
#dialog.l2 #speaker { display: block; margin: 10px 14px 0; color: var(--l2-gold); font: 700 13px/1.4 Verdana, Tahoma, system-ui, sans-serif; }
#dialog.l2 #speaker::after { content: ':'; }
#dialog.l2 #title { margin: 2px 14px 0; font: 700 12px/1.4 Verdana, Tahoma, system-ui, sans-serif; color: var(--l2-dim); letter-spacing: 0; text-transform: none; }
#dialog.l2 #text { margin: 8px 14px; color: var(--l2-txt); white-space: pre-line; }
#dialog.l2 #choices { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin: 8px 14px 0; }
#dialog.l2 #choices button { all: unset; cursor: pointer; color: var(--l2-link); text-decoration: underline; font: 13px/1.4 Verdana, Tahoma, system-ui, sans-serif; padding: 1px 0; }
#dialog.l2 #choices button::before { content: '#'; margin-right: 5px; text-decoration: none; display: inline-block; }
#dialog.l2 #choices button:hover, #dialog.l2 #choices button:focus-visible { color: #fff; }
#l2-rewards { margin: 10px 14px 0; border: 1px solid var(--l2-line2); background: #10151f; padding: 4px 8px 6px; }
#l2-rewards b, .l2-box b { display: block; color: var(--l2-dim); font-size: 12px; border-bottom: 1px solid var(--l2-line2); margin-bottom: 4px; }
#l2-rewards ul, .l2-box ul { list-style: none; margin: 0; padding: 0; }
#l2-rewards li, .l2-box li { display: flex; align-items: center; gap: 6px; color: var(--l2-gold); font-size: 12px; padding: 1px 0; }
#l2-rewards li::before, .l2-box li::before { content: ''; width: 14px; height: 14px; flex: none; background: linear-gradient(135deg, #8d5aa5, #4a2c63); border: 1px solid #9c7ab4; }

.l2-win { position: fixed; z-index: 40; left: 50%; top: 50%; transform: translate(-50%, -50%); background: linear-gradient(#1b2331, #141a26); color: var(--l2-txt); border: 1px solid var(--l2-line); border-radius: 3px; box-shadow: 0 0 0 1px #0a0d14, 0 10px 30px #000c, inset 0 0 0 1px var(--l2-line2); font: 12px/1.45 Verdana, Tahoma, system-ui, sans-serif; max-width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
.l2-win[hidden] { display: none !important; }
.l2-win button { font-family: inherit; }
#l2-quest { width: 600px; }
.l2-qbody { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; padding: 8px; height: min(440px, calc(100dvh - 60px)); }
.l2-left, .l2-right { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--l2-line2); background: #121823; padding: 6px; }
.l2-qname { color: #fff; font-weight: 700; font-size: 13px; }
.l2-meta { color: var(--l2-dim); margin: 2px 0 6px; }
.l2-scroll { flex: 1; overflow: auto; border: 1px solid var(--l2-line2); background: #0e131c; padding: 6px 8px; scrollbar-width: thin; scrollbar-color: #4a5870 #0e131c; }
.l2-scroll p { margin: 0 0 6px; }
.l2-how { color: var(--l2-gold); }
.l2-hint, .l2-none, .l2-empty { color: var(--l2-dim); font-style: italic; }
.l2-steps { margin: 0; padding-left: 18px; }
.l2-steps li { margin-bottom: 3px; color: var(--l2-dim); }
.l2-steps li.done { text-decoration: line-through; opacity: .7; }
.l2-steps li.cur { color: #fff; font-weight: 700; }
.l2-steps li.cur::marker { color: var(--l2-gold); }
.l2-steps li.future { opacity: .55; font-style: italic; }
.l2-steps em { color: var(--l2-gold); font-style: normal; }
.l2-box { margin-top: 6px; border: 1px solid var(--l2-line2); background: #0e131c; padding: 3px 8px 5px; min-height: 42px; }
.l2-item { display: flex; align-items: center; gap: 6px; color: var(--l2-txt); }
.l2-item em { color: var(--l2-gold); font-style: normal; }
.l2-ico { width: 24px; height: 24px; flex: none; border: 1px solid #54617a; background: radial-gradient(circle at 35% 30%, #fff, #9cb2d6 55%, #384a69); border-radius: 50%; }
.l2-btns { display: flex; gap: 6px; margin-top: 8px; }
.l2-btns button, .l2-foot button, .l2-tabs button { cursor: pointer; color: #dfe4ee; background: linear-gradient(#35405a, #232c3f); border: 1px solid #5b6a85; border-radius: 2px; padding: 3px 10px; font-size: 12px; }
.l2-btns button { flex: 1; }
.l2-btns button:hover:not(:disabled), .l2-foot button:hover, .l2-tabs button:hover { border-color: var(--l2-gold); color: #fff; }
.l2-btns button:disabled { opacity: .45; cursor: default; }
.l2-tabs { display: flex; gap: 2px; margin-bottom: 4px; flex-wrap: wrap; }
.l2-tabs button { padding: 2px 8px; font-size: 11px; background: #1c2434; }
.l2-tabs button.on { background: linear-gradient(#4a587a, #2c3650); color: #fff; border-color: var(--l2-gold); }
.l2-count { color: var(--l2-dim); border-bottom: 1px solid var(--l2-line2); padding: 2px 2px 4px; }
.l2-count span { color: var(--l2-txt); }
.l2-list { flex: 1; overflow: auto; margin: 4px 0; scrollbar-width: thin; scrollbar-color: #4a5870 #121823; }
.l2-q > button { all: unset; display: block; width: 100%; box-sizing: border-box; cursor: pointer; padding: 3px 4px; color: #e6e9f0; }
.l2-q > button i { display: inline-block; width: 14px; height: 14px; line-height: 12px; text-align: center; margin-right: 6px; border: 1px solid #7a879c; background: #1a2230; font-style: normal; font-size: 12px; }
.l2-q > button small { color: var(--l2-dim); }
.l2-q.sel > button { background: rgba(110, 168, 255, .16); outline: 1px solid #4b6797; }
.l2-q > button:hover { background: rgba(255, 255, 255, .06); }
.l2-sub { margin: 0 4px 4px 28px; padding: 3px 6px; background: #0e131c; color: var(--l2-dim); border-left: 2px solid var(--l2-line2); }
.l2-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--l2-line2); padding-top: 6px; }
.l2-foot label { display: flex; align-items: center; gap: 4px; color: var(--l2-txt); }
@media (max-width: 640px) { #l2-quest { width: calc(100vw - 12px); } .l2-qbody { grid-template-columns: 1fr; height: calc(100dvh - 60px); overflow: auto; } .l2-left, .l2-right { min-height: 260px; } }

#l2-map { width: 500px; }
#l2-map.big { width: min(860px, calc(100vw - 12px)); }
#l2-map > .l2-tabs { margin: 6px 8px 0; }
.l2-board { position: relative; margin: 0 8px; border: 1px solid var(--l2-line2); background: #0b0f16; aspect-ratio: 1672 / 941; overflow: hidden; }
.l2-zoom { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .35s ease; }
.l2-board img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .92; pointer-events: none; }
.l2-marks { position: absolute; inset: 0; }
.l2-marks i, .l2-marks b { position: absolute; transform: translate(-50%, -50%); }
.l2-me { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 13px solid #ffd54a; filter: drop-shadow(0 0 2px #000); }
.l2-me.flash { animation: l2-pulse .5s 4; }
.l2-tgt { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #ff5a4a; background: rgba(255, 90, 74, .35); animation: l2-pulse 1s infinite; }
.l2-area { border: 2px dashed #ff8a7a; border-radius: 50%; background: rgba(255, 90, 74, .12); }
.l2-lab { margin-top: 16px !important; transform: translate(-50%, 0) !important; font: 700 10px/12px Verdana, system-ui, sans-serif; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; white-space: nowrap; background: rgba(8, 10, 16, .6); padding: 0 3px; }
@keyframes l2-pulse { 50% { transform: translate(-50%, -50%) scale(1.5); opacity: .6; } }
.l2-status { margin: 6px 8px 0; padding: 3px 6px; border: 1px solid var(--l2-line2); background: #0e131c; color: var(--l2-gold); font-size: 11px; }
.l2-btns.row { margin: 6px 8px 8px; }

.l2-pin { width: 16px; height: 16px; border-radius: 50%; text-align: center; font: 700 12px/16px Verdana, system-ui, sans-serif; color: #10141c; border: 1px solid #10141c; }
.l2-pin.new { background: #ffd54a; } .l2-pin.go { background: #7fb2ff; }
#l2-party { width: 170px; z-index: 31; } .l2-pbody { padding: 6px 8px 8px; display: grid; gap: 5px; }
.l2-pm span { display: block; font-size: 11px; color: #e6e9f0; } .l2-pm small { color: var(--l2-dim); } .l2-pm.dead span { color: #c66; text-decoration: line-through; }
.l2-hp { height: 6px; background: #0b0f16; border: 1px solid var(--l2-line2); } .l2-hp i { display: block; height: 100%; background: linear-gradient(#59c46e, #2d8a45); }
.l2-pm.me .l2-hp i { background: linear-gradient(#59c46e, #2d8a45); }
#game-clock { position: fixed; z-index: 30; right: 184px; top: 14px; all: unset; box-sizing: border-box; position: fixed; right: 182px; top: 14px; z-index: 30; padding: 3px 9px; cursor: pointer; font: 700 12px/16px Verdana, system-ui, sans-serif; color: #f0d28b; background: rgba(14, 22, 36, .82); border: 1px solid #6d7a8e; border-radius: 3px; }
#game-clock[data-night='1'] { color: #aab8e6; }
#game-clock:hover { border-color: #ffd36a; color: #fff; }
#activity-feed .chat-in { margin-top: 4px; } #activity-feed .chat-in input { width: 100%; box-sizing: border-box; background: #0d121c; color: #e3e6df; border: 1px solid #4a5870; border-radius: 2px; padding: 3px 6px; font: 11px/1.4 Verdana, system-ui, sans-serif; } #activity-feed .chat-in input:focus { outline: 1px solid #e6c870; }

#l2-forge { width: 640px; }
.fg-grid { display: grid; grid-template-columns: repeat(auto-fill, 46px); gap: 4px; align-content: start; }
.fg-ic { position: relative; width: 46px; height: 46px; padding: 0; cursor: pointer; background: #0e131c; border: 1px solid #4a5870; border-radius: 2px; }
.fg-ic canvas { width: 40px; height: 40px; }
.fg-ic small { position: absolute; right: 2px; bottom: 1px; color: var(--l2-gold); font-size: 9px; }
.fg-ic:hover { border-color: var(--l2-gold); }
.fg-ic.on { outline: 1px solid var(--l2-link); background: rgba(110, 168, 255, .18); }
.fg-ic.lock canvas { opacity: .45; }
.fg-mats { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.fg-m { display: flex; gap: 6px; align-items: center; border-bottom: 1px solid var(--l2-line2); padding-bottom: 3px; }
.fg-m canvas { width: 32px; height: 32px; flex: none; border: 1px solid #54617a; background: #0e131c; }
.fg-m small { display: block; color: var(--l2-dim); }
.fg-det .ok, .l2-item .ok { color: #7fdc8a; font-weight: 700; }
.fg-det .no, .l2-item .no { color: #ff8a7a; font-weight: 700; }
.fg-make { cursor: pointer; color: #1b1405; background: linear-gradient(#f0d88a, #c9a23f); border: 1px solid #fff2b8; border-radius: 2px; padding: 4px 10px; font-weight: 700; }
@media (max-width: 680px) { #l2-forge { width: calc(100vw - 12px); } }
.fg-make:disabled { opacity: .45; cursor: default; filter: grayscale(.6); }

/* Janelas de confirmação (vender / descartar item) no padrão das janelas do jogo */
#discard-confirm { width: min(400px, 92vw); padding: 0; background: linear-gradient(#1b2331, #141a26); color: var(--l2-txt); border: 1px solid var(--l2-line); border-radius: 3px; box-shadow: 0 0 0 1px #0a0d14, 0 10px 30px #000c; font-family: Verdana, Tahoma, system-ui, sans-serif; }
#discard-confirm::backdrop { background: rgba(4, 6, 10, .4); }
#discard-confirm h2 { margin: 0; padding: 5px 10px; font: 700 12px/1.4 Verdana, Tahoma, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--l2-gold); background: linear-gradient(#3b475c, #232c3b); border-bottom: 1px solid #0a0d14; }
#discard-confirm p { margin: 12px 14px; font: 13px/1.6 Verdana, Tahoma, system-ui, sans-serif; color: var(--l2-txt); }
#discard-confirm .confirm-buttons { display: flex; gap: 6px; margin: 0 14px 12px; }
#discard-confirm .confirm-buttons button { flex: 1; cursor: pointer; color: #dfe4ee; background: linear-gradient(#35405a, #232c3f); border: 1px solid #5b6a85; border-radius: 2px; padding: 4px 10px; font: 12px Verdana, Tahoma, system-ui, sans-serif; }
#discard-confirm .confirm-buttons button:hover, #discard-confirm .confirm-buttons button:focus-visible { border-color: var(--l2-gold); color: #fff; }
