/* Exército Brasileiro — Military Life RPG
   Visual: verde-oliva escuro, vidro fosco discreto, âmbar como destaque. */
:root {
  --bg: #0b0e08;
  --glass: rgba(15, 20, 11, .80);
  --surface: #141a0f;
  --surface-2: #1a2213;
  --surface-3: #222c19;
  --line: rgba(222, 230, 190, .09);
  --line-2: rgba(222, 230, 190, .17);
  --fg: #eceee2;
  --fg-2: #cfd3c2;
  --mut: #949d86;
  --amber: #e9c35b;
  --amber-2: #c7a03a;
  --amber-bg: rgba(233, 195, 91, .10);
  --green: #7fd28c;
  --red: #ee6b62;
  --blue: #7ab9f2;
  --r: 10px;
  --r-sm: 7px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --f: "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, "Roboto Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); font-family: var(--f); font-size: 14px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
#game { position: fixed; inset: 0; }
#game canvas { image-rendering: pixelated; display: block; }
#ui { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#ui > * { pointer-events: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: var(--fg); }
select option { background: #11160d; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(222, 230, 190, .16); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(222, 230, 190, .28); }
::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: rgba(222, 230, 190, .2) transparent; }
.hidden { display: none !important; }
.mut { color: var(--mut); }
.amber { color: var(--amber); }
.ok { color: var(--green); }
.bad { color: var(--red); }
.big { font-size: 16px; font-weight: 700; line-height: 1.3; }
kbd { font-family: var(--mono); }

/* ---------- botões e campos ---------- */
.btn { background: var(--surface-3); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 14px; color: var(--fg); font-weight: 600; transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { background: #2a3620; border-color: rgba(233, 195, 91, .45); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #e2bd52, #b8932c); border-color: #e9c35b; color: #1c1605; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { border-color: rgba(238, 107, 98, .4); color: #ffb9b3; }
.btn.danger:hover { background: rgba(238, 107, 98, .12); border-color: rgba(238, 107, 98, .7); }
.btn.small { padding: 5px 10px; font-size: 12.5px; font-weight: 600; }
.btn:disabled { opacity: .4; cursor: default; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; }
.field input, .field select { background: #0b0f08; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-bg); }
.err { color: var(--red); font-size: 13px; min-height: 18px; margin: 6px 0; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-size: 12.5px; color: var(--fg-2); transition: border-color .12s; user-select: none; }
.chip:hover { border-color: rgba(233, 195, 91, .5); }
.chip.on { border-color: var(--amber); color: var(--amber); background: var(--amber-bg); }
.badge { font-size: 10.5px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-2); white-space: nowrap; text-transform: uppercase; letter-spacing: .6px; color: var(--mut); font-weight: 600; }
.badge.andamento { color: var(--amber); border-color: rgba(233, 195, 91, .5); background: var(--amber-bg); }
.badge.aprovado { color: var(--green); border-color: rgba(127, 210, 140, .5); background: rgba(127, 210, 140, .08); }
.badge.disp { color: var(--blue); border-color: rgba(122, 185, 242, .5); background: rgba(122, 185, 242, .08); }
.badge.bloq, .badge.trancado, .badge.reprovado { color: var(--mut); }

/* ---------- telas de entrada ---------- */
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 20%, #26331b 0%, #0b0e08 72%); z-index: 50; overflow: auto; padding: 24px; }
.screen .card { width: min(440px, 100%); background: var(--glass); backdrop-filter: blur(6px); border: 1px solid var(--line-2); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }
.screen .card.wide { width: min(860px, 100%); }
.logo { text-align: center; margin-bottom: 22px; }
.logo .star { font-size: 30px; color: var(--amber); line-height: 1; }
.logo h1 { margin: 8px 0 4px; font-size: 22px; letter-spacing: 3px; text-transform: uppercase; font-weight: 800; }
.logo h2 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 5px; color: var(--amber); text-transform: uppercase; }
.disclaimer { font-size: 11.5px; color: var(--mut); text-align: center; margin-top: 18px; line-height: 1.55; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; background: #0b0f08; border-radius: var(--r-sm); padding: 4px; }
.tabs button { flex: 1; background: transparent; border: 0; border-radius: 5px; padding: 8px; color: var(--mut); font-weight: 600; }
.tabs button.on { color: #1c1605; background: var(--amber); }
.creator { display: grid; grid-template-columns: 210px 1fr; gap: 26px; }
.preview { background: #0b0f08; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; gap: 10px; }
.preview canvas { width: 128px; height: 192px; image-rendering: pixelated; }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.sw { width: 28px; height: 28px; border-radius: 7px; border: 2px solid transparent; cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset; }
.sw.on { border-color: var(--amber); box-shadow: 0 0 0 2px #000 inset; }
.servers { display: flex; flex-direction: column; gap: 8px; }
.server { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; transition: border-color .12s, background .12s; }
.server:hover { border-color: var(--amber); background: var(--surface-3); }

/* ---------- HUD ---------- */
.hud-tl { position: fixed; top: 10px; left: 10px; width: 240px; background: var(--glass); backdrop-filter: blur(4px); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 11px; }
.idrow { display: flex; gap: 9px; align-items: center; margin-bottom: 7px; }
.idrow canvas { width: 30px; height: 30px; border-radius: 5px; flex: none; }
.idrow .idtxt { flex: 1; min-width: 0; }
.idrow .nm { font-weight: 700; font-size: 14px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idrow .rk { font-size: 11.5px; color: var(--amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.money { font-family: var(--mono); color: var(--amber); font-size: 12px; align-self: flex-start; white-space: nowrap; }
.bars4 { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; }
.b4 { display: grid; grid-template-columns: 14px 1fr 22px; align-items: center; gap: 5px; }
.b4 .ic { font-size: 11px; text-align: center; opacity: .9; }
.b4 .bv { font-family: var(--mono); font-size: 10px; color: var(--mut); text-align: right; }
.b4.low .ic { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.bar { height: 6px; background: rgba(255, 255, 255, .07); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; transition: width .3s; }
.hud-tl .om { margin-top: 7px; font-size: 10.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-tr { position: fixed; top: 10px; right: 10px; width: 188px; display: flex; flex-direction: column; gap: 6px; }
.clock { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 11px; background: var(--glass); backdrop-filter: blur(4px); border: 1px solid var(--line); border-radius: var(--r); }
.clock .t { font-family: var(--mono); font-size: 19px; color: var(--amber); line-height: 1; }
.clock .d { font-size: 11.5px; color: var(--mut); }
.minimap { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 4px; cursor: pointer; }
.minimap canvas { width: 100%; display: block; image-rendering: pixelated; border-radius: 6px; }
.tracker { position: fixed; top: 198px; right: 10px; width: 240px; display: flex; flex-direction: column; gap: 6px; }
.tracker .obj { display: flex; gap: 8px; align-items: center; background: var(--glass); backdrop-filter: blur(4px); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--r-sm); padding: 7px 10px; font-size: 12px; cursor: pointer; transition: border-color .12s; }
.tracker .obj:hover { border-color: rgba(233, 195, 91, .5); border-left-color: var(--amber); }
.tracker .obj .tag { font-size: 9px; letter-spacing: 1.3px; color: var(--amber); font-weight: 700; flex: none; }
.tracker .obj .ot { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tcard { background: var(--glass); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--r-sm); padding: 7px 10px; font-size: 12px; }
.tcard .h { font-size: 9.5px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--amber); margin-bottom: 2px; font-weight: 700; }
.tcard.mission { border-left-color: var(--blue); } .tcard.mission .h { color: var(--blue); }
.tcard.nav { border-left-color: var(--green); } .tcard.nav .h { color: var(--green); }
.compass { display: flex; align-items: center; gap: 10px; }
.compass .needle { width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; background: #0b0f08; flex: none; }
.compass .needle::after { content: "N"; position: absolute; top: 1px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--red); font-weight: 700; }
.compass .needle i { position: absolute; left: 50%; top: 50%; width: 2px; height: 17px; background: var(--green); transform-origin: 50% 100%; margin-left: -1px; margin-top: -17px; border-radius: 2px; }
.prompt { position: fixed; bottom: 66px; left: 50%; transform: translateX(-50%); background: var(--glass); backdrop-filter: blur(4px); border: 1px solid rgba(233, 195, 91, .45); border-radius: 99px; padding: 7px 16px 7px 8px; font-size: 13px; white-space: nowrap; }
.prompt kbd { background: var(--amber); color: #1c1605; border-radius: 99px; padding: 2px 9px; font-weight: 700; margin-right: 8px; }

/* chat */
.chat { position: fixed; left: 10px; bottom: 10px; width: min(430px, calc(100vw - 20px)); background: var(--glass); backdrop-filter: blur(4px); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; }
.chat .ctabs { display: flex; gap: 2px; padding: 5px 5px 0; }
.chat .ctabs button { background: transparent; border: 0; padding: 5px 9px; font-size: 11.5px; color: var(--mut); border-radius: 6px 6px 0 0; font-weight: 600; }
.chat .ctabs button.on { color: var(--amber); background: var(--surface-3); }
.chat .log { height: 160px; overflow-y: auto; padding: 7px 10px; font-size: 12.5px; line-height: 1.5; overscroll-behavior: contain; }
.chat .log .sistema { color: var(--mut); font-style: italic; }
.chat .log .global b { color: #9fd0ff; } .chat .log .local b { color: #fff; } .chat .log .grupo b { color: #8df09a; } .chat .log .radio b { color: #ffb873; } .chat .log .privado b { color: #f29bff; }
.chat .inp { display: flex; border-top: 1px solid var(--line); }
.chat .inp select { background: transparent; border: 0; color: var(--amber); padding: 0 8px; font-size: 12px; font-weight: 600; }
.chat .inp input { flex: 1; background: transparent; border: 0; padding: 9px; outline: none; min-width: 0; }
.chat.mini { background: transparent; border-color: transparent; backdrop-filter: none; pointer-events: none; }
.chat.mini .ctabs, .chat.mini .inp { display: none; }
.chat.mini .log { height: auto; max-height: 120px; overflow: hidden; text-shadow: 0 1px 2px #000, 0 0 5px #000; padding: 4px 6px; }
.chat .chathint { display: none; }
.chat.mini .chathint { display: inline-block; pointer-events: auto; align-self: flex-start; background: var(--glass); border: 1px solid var(--line); border-radius: 99px; padding: 4px 11px; font-size: 11.5px; color: var(--mut); margin: 3px 4px 0; }
.chat.mini .chathint:hover { color: var(--fg); border-color: var(--line-2); }

/* barra inferior */
.dock { position: fixed; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.dock button { background: var(--glass); backdrop-filter: blur(4px); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; font-size: 13px; display: flex; gap: 7px; align-items: center; }
.dock button:hover { border-color: rgba(233, 195, 91, .55); }
.dock button kbd { font-size: 10px; color: var(--amber); background: rgba(0, 0, 0, .3); padding: 1px 5px; border-radius: 4px; }
.dock .menubtn { font-weight: 700; }
.hotbar { display: none !important; }
.toasts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; z-index: 40; pointer-events: none !important; width: min(540px, 90vw); }
.toast { background: rgba(13, 17, 10, .95); border: 1px solid var(--line-2); border-left: 3px solid var(--blue); border-radius: var(--r-sm); padding: 8px 14px; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); animation: tin .22s ease-out; white-space: pre-line; }
.toast.ok { border-left-color: var(--green); } .toast.warn { border-left-color: var(--amber); } .toast.bad { border-left-color: var(--red); }
.toast.gold { border-left-color: var(--amber); background: linear-gradient(90deg, rgba(84, 66, 14, .96), rgba(13, 17, 10, .96)); }
@keyframes tin { from { opacity: 0; transform: translateY(-6px); } }
.netwarn { position: fixed; top: 0; left: 0; right: 0; background: #7a2a1f; text-align: center; padding: 7px; font-size: 13px; z-index: 60; }
body.menu-open .tracker, body.menu-open .chat, body.menu-open .dock, body.menu-open .prompt, body.menu-open .hud-tr, body.menu-open .hud-tl, body.menu-open .joy, body.menu-open .tbtns { display: none !important; }

/* ---------- Menu do Militar ---------- */
.menu { position: fixed; inset: 0; z-index: 30; background: rgba(4, 6, 3, .66); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mbox { width: min(1200px, 100%); height: min(880px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; display: flex; overflow: hidden; box-shadow: var(--shadow); }
.mnav { width: 210px; flex: none; background: #10150c; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 10px; gap: 2px; overflow-y: auto; min-height: 0; }
.mlogo { font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; padding: 2px 10px 10px; font-weight: 800; }
.mgroup { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--mut); padding: 12px 10px 4px; font-weight: 700; opacity: .8; }
.mnav button { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; text-align: left; background: transparent; border: 0; border-radius: var(--r-sm); padding: 8px 10px; font-size: 13.5px; color: var(--fg-2); }
.mnav button:hover { background: rgba(255, 255, 255, .04); color: var(--fg); }
.mnav button.on { background: var(--amber-bg); color: var(--amber); font-weight: 600; }
.mnav button.on::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--amber); }
.mnav button .ti { text-align: center; opacity: .9; }
.mnav button kbd { font-size: 10px; color: var(--mut); background: rgba(255, 255, 255, .05); padding: 1px 5px; border-radius: 4px; }
.mmain { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mmain .ph { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.mmain .ph h3 { margin: 0; font-size: 17px; letter-spacing: .4px; font-weight: 700; }
.mmain .ph h3 small { color: var(--mut); font-weight: 400; margin-left: 10px; font-size: 13px; letter-spacing: 0; }
.mmain .pb { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 22px 26px; overscroll-behavior: contain; scroll-behavior: auto; }
.x { background: transparent; border: 1px solid transparent; border-radius: var(--r-sm); font-size: 20px; line-height: 1; color: var(--mut); width: 34px; height: 34px; }
.x:hover { color: var(--fg); background: rgba(255, 255, 255, .05); border-color: var(--line); }

/* conteúdo */
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; }
.box h4 { margin: 0 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--amber); font-weight: 700; }
.box.next { border-color: rgba(233, 195, 91, .4); background: linear-gradient(135deg, rgba(233, 195, 91, .09), var(--surface-2) 70%); }
.box.next .big { margin-bottom: 4px; }
details.box > summary { cursor: pointer; list-style: none; }
details.box > summary::-webkit-details-marker { display: none; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.kv span:nth-child(odd) { color: var(--mut); white-space: nowrap; }
.ladder { list-style: none; margin: 0; padding: 0; }
.ladder li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: flex-start; }
.ladder li:last-child { border-bottom: 0; }
.ladder li .st { width: 18px; text-align: center; flex: none; color: var(--mut); }
.ladder li.done { color: var(--mut); } .ladder li.done .st { color: var(--green); }
.ladder li.cur { color: var(--amber); font-weight: 700; } .ladder li.cur .st { color: var(--amber); }
.ladder li .via { display: block; font-size: 11.5px; color: var(--mut); font-weight: 400; }
.attr { display: grid; grid-template-columns: 170px 1fr 34px; gap: 10px; align-items: center; font-size: 12.5px; margin-bottom: 6px; }
.attr .bar { margin: 0; height: 7px; }
.req { list-style: none; padding: 0; margin: 6px 0; font-size: 13px; }
.req li { padding: 3px 0 3px 22px; position: relative; }
.req li::before { position: absolute; left: 0; font-weight: 700; }
.req li.y::before { content: "✔"; color: var(--green); } .req li.n::before { content: "✖"; color: var(--red); }
.steps { margin: 6px 0; padding-left: 22px; font-size: 13px; }
.steps li { padding: 3px 0; } .steps li.done { color: var(--mut); text-decoration: line-through; } .steps li.cur { color: var(--amber); font-weight: 700; }
.adapt { font-size: 12px; color: #cbb97d; background: rgba(199, 160, 58, .07); border: 1px dashed rgba(199, 160, 58, .35); border-radius: var(--r-sm); padding: 8px 11px; margin-top: 8px; line-height: 1.5; }
.course { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; background: var(--surface-2); transition: border-color .12s; }
.course:hover { border-color: var(--line-2); }
.course .chd { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; cursor: pointer; gap: 12px; }
.course .chd b { font-size: 13.5px; }
.course .cbd { padding: 2px 14px 14px; font-size: 13px; border-top: 1px solid var(--line); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th, table.t td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t th { color: var(--mut); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
table.t tr:hover td { background: rgba(255, 255, 255, .02); }
tr.rowcur td { background: var(--amber-bg) !important; }
.item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.item:last-child { border-bottom: 0; }
.item .d { font-size: 12px; color: var(--mut); }
.log2 { font-size: 12.5px; }
.log2 div { padding: 5px 0; border-bottom: 1px solid var(--line); }
.log2 div i { color: var(--mut); font-style: normal; font-family: var(--mono); margin-right: 8px; font-size: 11.5px; }
.mapwrap canvas { width: 100%; image-rendering: pixelated; border-radius: var(--r); border: 1px solid var(--line-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--mut); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ovhead { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.ovhead .big { font-size: 21px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; }
.stat { text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; min-width: 84px; }
.stat b { display: block; font-family: var(--mono); color: var(--amber); font-size: 15px; }
.stat span { font-size: 11px; color: var(--mut); }
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qcard { text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 13px; display: flex; flex-direction: column; gap: 3px; transition: border-color .12s, background .12s; }
.qcard:hover { border-color: rgba(233, 195, 91, .5); background: var(--surface-3); }
.qcard span { font-size: 12px; color: var(--mut); }
/* árvore de organizações */
.orgnode { margin-left: 0; }
.orghead { padding: 8px 4px; font-size: 13px; border-bottom: 1px solid var(--line); }
.orghead b { color: var(--amber); }
.orgkids { margin-left: 12px; padding-left: 10px; border-left: 1px solid var(--line-2); }
.orgrow { border-bottom: 1px solid var(--line); }
.orgrow summary { cursor: pointer; padding: 7px 4px; font-size: 13px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; list-style: none; border-radius: 6px; }
.orgrow summary:hover { background: rgba(255, 255, 255, .03); }
.orgrow summary::-webkit-details-marker { display: none; }
.orgrow summary b { min-width: 74px; }
.orgrow summary .on { flex: 1; min-width: 140px; color: var(--fg-2); }
.orgrow.mine summary b { color: var(--green); }
.orgbody { font-size: 12.5px; padding: 4px 6px 12px 8px; display: flex; flex-direction: column; gap: 4px; color: var(--fg-2); }

/* ---------- administração ---------- */
.admbar { position: sticky; top: -18px; z-index: 2; margin: -18px -22px 16px; padding: 12px 22px; background: rgba(20, 26, 15, .97); border-bottom: 1px solid var(--line); }
.admbar.all { background: linear-gradient(90deg, rgba(90, 30, 24, .95), rgba(20, 26, 15, .97)); }
.segs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.seg { background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; color: var(--fg-2); }
.seg:hover { border-color: rgba(233, 195, 91, .5); }
.seg.on { background: var(--amber); color: #1c1605; border-color: var(--amber); }
.admnow { margin-top: 8px; font-size: 12.5px; color: var(--mut); }
.admnow b { color: var(--fg); }
.admgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; align-items: start; }
.admcard { margin: 0; }
.admdesc { font-size: 12px; color: var(--mut); margin: -4px 0 10px; }
.admrow { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.admrow:first-of-type { border-top: 0; }
.admk { font-size: 12px; color: var(--mut); }
.admv { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; }

/* ---------- diálogo ---------- */
.dialog { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); width: min(700px, calc(100vw - 20px)); background: rgba(15, 20, 11, .96); backdrop-filter: blur(6px); border: 1px solid rgba(233, 195, 91, .35); border-radius: 14px; padding: 16px 18px; z-index: 25; box-shadow: var(--shadow); max-height: 64vh; overflow-y: auto; overscroll-behavior: contain; }
.dialog .who { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; }
.dialog .who b { color: var(--amber); font-size: 16px; }
.dialog .who span { color: var(--mut); font-size: 12.5px; }
.dialog .txt { white-space: pre-line; line-height: 1.6; margin-bottom: 12px; color: var(--fg-2); }
.dialog .choices { display: flex; flex-direction: column; gap: 5px; }
.dialog .choices button { display: flex; align-items: flex-start; gap: 10px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; font-size: 13.5px; transition: border-color .1s, background .1s; }
.dialog .choices button:hover { border-color: rgba(233, 195, 91, .55); background: var(--surface-3); }
.dialog .choices button kbd { flex: none; min-width: 20px; text-align: center; color: var(--amber); background: rgba(233, 195, 91, .1); border-radius: 4px; padding: 0 5px; font-size: 12px; }

/* ---------- minigames e modais ---------- */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .58); display: flex; align-items: center; justify-content: center; z-index: 35; padding: 14px; }
.modal .mc { width: min(640px, 100%); max-height: calc(100vh - 30px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); overscroll-behavior: contain; }
.modal h3 { margin: 0 0 6px; letter-spacing: .5px; font-size: 18px; }
.q { margin: 14px 0; }
.q .qt { font-weight: 600; margin-bottom: 8px; }
.q label { display: flex; gap: 10px; align-items: center; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: var(--r-sm); margin-bottom: 5px; cursor: pointer; font-size: 13.5px; transition: border-color .1s, background .1s; }
.q label:hover { border-color: rgba(233, 195, 91, .5); }
.q label:has(input:checked) { border-color: var(--amber); background: var(--amber-bg); }
.q input { accent-color: var(--amber); margin: 0; }
.timer { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 99px; overflow: hidden; margin: 12px 0; }
.timer i { display: block; height: 100%; background: var(--amber); border-radius: 99px; }
.counter { font-family: var(--mono); font-size: 64px; text-align: center; color: var(--amber); line-height: 1.1; }
.keys { display: flex; justify-content: center; gap: 10px; margin: 12px 0; }
.keys button { width: 92px; height: 72px; font-size: 26px; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: var(--r); }
.keys button.hit { background: var(--amber); color: #1c1605; }
.oucmd { font-family: var(--mono); font-size: 30px; text-align: center; color: var(--amber); letter-spacing: 2px; min-height: 44px; margin: 12px 0; }
.oubtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.oubtns button { padding: 11px 6px; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 13px; }
.oubtns button:hover { border-color: rgba(233, 195, 91, .5); }
.oubtns button kbd { color: var(--amber); display: block; }
.fb { text-align: center; font-size: 22px; min-height: 30px; }
.arrowbig { font-size: 90px; text-align: center; line-height: 1; color: var(--amber); min-height: 96px; }
.ceremony { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 45; background: radial-gradient(ellipse, rgba(60, 48, 10, .78), rgba(0, 0, 0, .84)); animation: tin .35s; cursor: pointer; }
.ceremony .cc { text-align: center; padding: 30px; }
.ceremony canvas { width: 110px; height: 110px; margin-bottom: 14px; }
.ceremony h2 { font-size: 30px; margin: 6px 0; color: var(--amber); letter-spacing: 3px; text-transform: uppercase; }
.invite { position: fixed; right: 10px; bottom: 64px; width: 310px; background: var(--surface); border: 1px solid rgba(233, 195, 91, .5); border-radius: var(--r); padding: 14px; z-index: 30; box-shadow: var(--shadow); }
.instrbar { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); width: min(420px, 90vw); background: var(--glass); backdrop-filter: blur(4px); border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 14px; z-index: 20; }
.sleep { position: fixed; inset: 0; background: rgba(4, 6, 14, .84); display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; z-index: 28; font-size: 18px; }

/* ---------- touch ---------- */
.joy { position: fixed; left: 24px; bottom: 150px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); touch-action: none; }
.joy i { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: rgba(233, 195, 91, .55); }
.tbtns { position: fixed; right: 18px; bottom: 150px; display: grid; grid-template-columns: 64px 64px; gap: 10px; }
.tbtns button { width: 64px; height: 64px; border-radius: 50%; background: rgba(20, 26, 15, .82); border: 1px solid rgba(255, 255, 255, .18); font-weight: 700; font-size: 13px; touch-action: none; }
.tbtns button.on { background: rgba(233, 195, 91, .75); color: #111; }

@media (max-width: 900px) {
  .admgrid { grid-template-columns: 1fr; }
  .admrow { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 760px) {
  .hud-tl { width: 184px; padding: 7px 9px; }
  .hud-tr { width: 146px; }
  .tracker { top: auto; bottom: 290px; width: 196px; }
  .chat .log { height: 96px; }
  .creator { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .attr { grid-template-columns: 120px 1fr 30px; }
  .menu { padding: 0; }
  .mbox { flex-direction: column; height: 100%; border-radius: 0; }
  .mnav { width: 100%; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 6px; border-right: 0; border-bottom: 1px solid var(--line); flex: none; }
  .mlogo, .mgroup { display: none; }
  .mnav button { grid-template-columns: auto auto; white-space: nowrap; }
  .mnav button.on::before { display: none; }
  .mnav button kbd { display: none; }
  .mmain .ph, .mmain .pb { padding-left: 14px; padding-right: 14px; }
  .admbar { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .stats { grid-template-columns: repeat(2, auto); }
  .dock { bottom: 112px; }
}

/* ---------- v0.3: guia, salto, mestre de salto, tiro, inventário, tutorial, instrução ---------- */
.tracker .guide { background: var(--glass); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--r-sm); padding: 6px 10px; font-size: 12px; }
.tracker .guide b { color: var(--green); font-weight: 600; }
.jumphud { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 22; display: flex; gap: 12px; align-items: center; background: rgba(10, 13, 8, .9); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 16px; min-width: 360px; box-shadow: var(--shadow); }
.jumphud .jl { width: 26px; height: 26px; border-radius: 50%; flex: none; background: #7a1d16; box-shadow: 0 0 0 3px rgba(0, 0, 0, .4) inset; }
.jumphud .jl.verde { background: #2ecc71; box-shadow: 0 0 16px #2ecc71; }
.jumphud .jl.vermelha { background: #e74c3c; box-shadow: 0 0 12px #c0392b; }
.jumphud .jmsg { font-size: 14px; margin-bottom: 3px; }
.jumphud .jrow { display: flex; gap: 16px; font-size: 12.5px; color: var(--mut); font-family: var(--mono); }
.jumphud .jrow b { color: var(--fg); }
.jarrow { display: inline-block; font-style: normal; color: var(--amber); }
.jmlight { text-align: center; font-family: var(--mono); font-weight: 700; padding: 10px; margin: 12px 0 6px; border-radius: 8px; background: rgba(231, 76, 60, .18); border: 1px solid rgba(231, 76, 60, .55); color: #ffb3ab; letter-spacing: 2px; }
.jmlight.green { background: rgba(46, 204, 113, .18); border-color: rgba(46, 204, 113, .6); color: #a8f0c4; }
.invslots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.slot { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.slot span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--mut); font-weight: 700; }
.slot b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.invcard { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 11px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.invcard.on { border-color: rgba(127, 210, 140, .55); background: linear-gradient(135deg, rgba(127, 210, 140, .07), var(--surface-2) 60%); }
.invcard canvas { width: 28px; height: 28px; }
.invtxt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.invtxt b { font-size: 13px; }
.invtxt span { font-size: 11.5px; color: var(--mut); }
.invtxt span.amber { color: var(--amber); }
.tut { text-align: center; padding: 6px 4px; }
.tut .tutic { font-size: 40px; color: var(--amber); line-height: 1.1; }
.tut h3 { margin: 8px 0; font-size: 20px; }
.tut p { color: var(--fg-2); line-height: 1.6; font-size: 14px; margin: 0 auto; max-width: 480px; }
.tutdots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.tutdots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.tutdots i.on { background: var(--amber); }
.instrbar .lesson { margin: 7px 0 5px; font-size: 13px; line-height: 1.5; color: var(--fg); font-style: italic; min-height: 38px; }
@media (max-width: 760px) { .invslots { grid-template-columns: 1fr 1fr; } .jumphud { min-width: 0; width: calc(100vw - 20px); } }
