:root {
  --bg: #151a28; --panel: #1f2638; --panel2: #283149; --line: #39445f; --text: #e8ecf4; --muted: #9aa6bf;
  --accent: #f6c445; --good: #3fb27f; --warn: #f2a541; --bad: #e5484d; --blue: #4aa3df;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; cursor: pointer; touch-action: manipulation; }
button:hover:not(:disabled) { border-color: #5a6787; }
button.on { background: var(--accent); color: #1b1b1b; border-color: var(--accent); }
button.on small { color: #4a3b10; }
button:disabled { opacity: .45; cursor: default; }
#app { position: fixed; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto auto; }
#bar { display: flex; align-items: center; gap: 10px; padding: 6px 10px; padding-top: max(6px, env(safe-area-inset-top)); background: var(--panel); border-bottom: 1px solid var(--line); min-width: 0; }
.stars { font-size: 16px; color: var(--accent); letter-spacing: 1px; background: none; border: 0; padding: 2px 4px; white-space: nowrap; }
.when, .money { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
#clock { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
#date, #pop { color: var(--muted); font-size: 12px; white-space: nowrap; }
#funds { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
#funds.neg { color: var(--bad); }
#speed { display: flex; gap: 2px; margin-left: auto; }
#speed button { padding: 4px 7px; font-size: 11px; min-width: 30px; }
.iconbtn { font-weight: 700; min-width: 34px; }
#ticker { background: #10141f; color: #cfd6e6; font-size: 12.5px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--line); min-height: 22px; }
#ticker .dem { color: var(--warn); } #ticker .bad { color: #ff9b9b; } #ticker .good { color: #8fe3b6; }
#stage { position: relative; overflow: hidden; min-height: 0; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
#mini { position: absolute; top: 8px; right: 8px; background: rgba(21,26,40,.92); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 5px; }
#minimap { width: 150px; height: 230px; border-radius: 6px; cursor: pointer; touch-action: none; }
#overlays { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
#overlays button { font-size: 11px; padding: 3px 4px; }
#miniToggle { position: absolute; top: -2px; left: -26px; width: 22px; height: 22px; padding: 0; font-size: 11px; border-radius: 6px; }
#mini.collapsed { padding: 0; border: 0; background: none; }
#mini.collapsed #minimap, #mini.collapsed #overlays, #mini.collapsed #legend, #mini.collapsed #miniMode { display: none; }
#mini.collapsed #miniToggle { position: static; }
#zoom { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; }
#zoom button { width: 32px; height: 32px; padding: 0; font-size: 18px; background: rgba(40,49,73,.9); }
#hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: rgba(16,20,31,.92); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 12.5px; pointer-events: none; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: none; }
#hint.bad { color: #ffb4b4; }
#previewBar { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: rgba(16,20,31,.92); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); }
#toolopts { display: none; gap: 6px; padding: 5px 10px; background: var(--panel); border-top: 1px solid var(--line); align-items: center; font-size: 12.5px; flex-wrap: wrap; }
#toolopts.show { display: flex; }
#toolbar { display: flex; gap: 4px; padding: 6px 14px; padding-bottom: max(6px, env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%); }
#toolbar::-webkit-scrollbar { height: 6px; } #toolbar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
@media (max-width: 720px) { .tool { width: 46px; height: 40px; } .tool svg { width: 24px; height: 20px; } }
@media (max-height: 520px) { .tool { width: 44px; height: 36px; padding: 2px; } .tool svg { height: 18px; } }
.tool { scroll-snap-align: start; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 48px; height: 42px; padding: 4px; position: relative; }
.tool svg { width: 28px; height: 24px; }
.new { position: absolute; top: 3px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--panel); }
.tool .grp { position: absolute; bottom: 1px; right: 3px; font-size: 8px; color: var(--muted); }
#flyout { position: fixed; z-index: 20; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: grid; grid-template-columns: repeat(var(--cols, 4), 48px); grid-auto-rows: 42px; gap: 4px; width: max-content; max-width: calc(100vw - 16px); overflow-x: auto; box-shadow: 0 8px 30px rgba(0,0,0,.5); max-width: calc(100vw - 16px); max-height: calc(100vh - 90px); overflow-y: auto; overscroll-behavior: contain; }
#flyout button { position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: 42px; padding: 4px; }
#flyout button svg { width: 28px; height: 24px; flex: none; }
#tbtip { position: fixed; z-index: 30; display: none; pointer-events: none; background: #0d1220; color: var(--text, #e6ebf5); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; max-width: 280px; font-size: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
#tbtip .c { color: #7fd68a; margin-left: 4px; } #tbtip .s { color: var(--accent); margin-left: 4px; }
#tbtip small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; white-space: normal; }
.hidden { display: none !important; }
#modal { position: fixed; inset: 0; z-index: 30; background: rgba(8,10,18,.55); display: flex; align-items: center; justify-content: center; padding: 12px; }
#panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: min(480px, 100%); max-height: calc(100% - 16px); overflow: auto; padding: 14px 16px; box-shadow: 0 16px 50px rgba(0,0,0,.55); user-select: text; }
#panel h2 { margin: 0 0 4px; font-size: 18px; }
#panel h3 { margin: 12px 0 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
#panel h3 small { font-weight: 400; }
#panel p { margin: 4px 0; }
#panel .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
#panel .sub.big { font-size: 28px; letter-spacing: 3px; } #panel .gold { color: var(--accent); }
#panel .bad { color: #ff9b9b; }
#panel .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
#panel .col { display: flex; flex-direction: column; gap: 6px; }
#panel .col button { text-align: left; }
#panel button small { color: var(--muted); display: inline-block; }
#panel .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
#panel .actions button.primary, button.primary { background: var(--accent); color: #1b1b1b; border-color: var(--accent); font-weight: 600; }
#panel table { width: 100%; border-collapse: collapse; font-size: 13px; }
#panel th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 4px 2px; }
#panel td { padding: 2px 4px; border-bottom: 1px solid #2a3248; }
#panel .n { text-align: right; font-variant-numeric: tabular-nums; } #panel .mut { color: var(--muted); }
#panel tr.tot td { font-weight: 700; border-top: 1px solid var(--line); }
#panel .pill { padding: 1px 8px; border-radius: 999px; font-size: 12px; }
#panel .pill.t0 { background: #5a2427; color: #ffb4b4; } #panel .pill.t1 { background: #5a4a1d; color: #ffdc8a; } #panel .pill.t2 { background: #1f4a37; color: #9ae6c0; }
#panel .floors { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 3px; max-height: 240px; overflow: auto; }
#panel .floors button { padding: 3px 2px; font-size: 12px; }
#panel .floors button.off { opacity: .35; text-decoration: line-through; }
#panel .floors button.car { border-color: var(--accent); }
#panel ul.dm { list-style: none; padding: 0; margin: 4px 0; } #panel ul.dm li { padding: 3px 0; color: #c8d2e2; } #panel ul.dm li.met { color: #8fe3b6; }
#panel ul.msgs { padding-left: 16px; max-height: 320px; overflow: auto; } #panel ul.msgs li { margin: 3px 0; }
.toggle { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
@media (max-width: 600px) { #minimap { width: 100px; height: 154px; } #legend { max-width: 100px; } #speed button { min-width: 26px; padding: 4px 4px; } }

#alertBtn { position: relative; }
#alertN { display: none; position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; line-height: 17px; font-size: 11px; border-radius: 9px; background: var(--warn); color: #1b1b1b; padding: 0 4px; font-weight: 700; }
#alertN.on { display: block; } #alertN.hot { background: var(--bad); color: #fff; }
#panel .card { background: #171d2c; border: 1px solid #2c3550; border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
#panel .card.s2 { border-left: 3px solid var(--bad); } #panel .card.s1 { border-left: 3px solid var(--warn); }
#panel .card b.t { display: block; margin-bottom: 3px; }
#panel .card .k { color: var(--muted); font-size: 12px; } #panel .card .k b { color: #cfd6e6; }
#panel .card .btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
#panel .card .btns button { font-size: 12px; padding: 3px 8px; }
#panel .risks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
#panel .risk .lv { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 11px; margin-left: 6px; }
#panel .risk .lv0 { background: #1f4a37; color: #9ae6c0; } #panel .risk .lv1 { background: #5a4a1d; color: #ffdc8a; } #panel .risk .lv2 { background: #5a2427; color: #ffb4b4; }
#panel .risk ul { margin: 4px 0 0; padding-left: 16px; color: #aab5cc; font-size: 12px; }
#panel .bd { font-size: 12.5px; margin: 4px 0; } #panel .bd td { border: 0; padding: 1px 4px; } #panel .bd .neg { color: #ff9b9b; } #panel .bd .pos { color: #8fe3b6; }

#miniMode { position: absolute; top: 9px; right: 9px; width: 20px; height: 20px; padding: 0; font-size: 12px; line-height: 1; border-radius: 5px; background: rgba(40,49,73,.85); }
#overlays button[aria-pressed="true"] { font-weight: 700; }
#legend { font-size: 10px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 6px; max-width: 150px; line-height: 1.2; }
#legend .lg { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
#legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
#legend i.ring { background: none !important; border: 1.5px solid; border-radius: 50%; }
#legend i.dotc { border-radius: 50%; }
#legend .bar { display: block; width: 100%; height: 7px; border-radius: 3px; }
#legend .bl { display: flex; justify-content: space-between; width: 100%; }
#tip { position: absolute; display: none; z-index: 5; pointer-events: none; background: rgba(16,20,31,.96); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: 12px; max-width: 260px; line-height: 1.35; }
#tip .pos { color: #8fe3b6; } #tip .neg { color: #ff9b9b; }
#moodBtn { display: inline-flex; align-items: center; gap: 3px; }
#moodN { font-size: 11px; font-variant-numeric: tabular-nums; }
#moodBtn.t0 #moodN { color: #ff9b9b; } #moodBtn.t2 #moodN { color: #8fe3b6; } #moodBtn.t1 #moodN { color: #ffdc8a; }
#panel .moodrow { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid #2a3248; }
#panel .moodrow .nm { flex: 1; min-width: 0; } #panel .moodrow .nm small { display: block; color: var(--muted); }

/* notificações na tela */
#notes { position: absolute; left: 8px; top: 84px; width: min(290px, calc(100% - 190px)); display: flex; flex-direction: column; gap: 6px; z-index: 5; pointer-events: none; }
.note { pointer-events: auto; position: relative; background: rgba(21,26,40,.95); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; padding: 6px 26px 6px 9px; font-size: 12.5px; line-height: 1.3; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.4); animation: noteIn .25s ease-out; }
.note.good { border-left-color: var(--good); } .note.bad { border-left-color: var(--bad); }
.note.sticky { background: rgba(70,20,24,.96); animation: noteIn .25s ease-out, notePulse 1.2s ease-in-out infinite; }
.note small { display: block; color: var(--muted); font-size: 10.5px; }
.note .nx { position: absolute; top: 2px; right: 3px; width: 20px; height: 20px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 15px; line-height: 1; }
.note.out { opacity: 0; transform: translateX(-14px); transition: .25s; }
@keyframes noteIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes notePulse { 50% { border-color: #ff8a8a; box-shadow: 0 0 12px rgba(229,72,77,.65); } }

#panel .why { margin: 4px 0 8px; padding-left: 18px; font-size: 12.5px; } #panel .why li { margin: 2px 0; } #panel .why .neg { color: #ff9b9b; }

/* letreiro deslizante */
#ticker .mq { display: inline-block; animation: mq 20s linear forwards; will-change: transform; }
#ticker:hover .mq { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(var(--from, 100%)); } to { transform: translateX(-100%); } }
#ticker .mq.go { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }

/* ---- telas estreitas e baixas: a barra do topo quebra em duas linhas, o minimapa encolhe e as barras rolam */
#date { overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
@media (max-width: 760px) {
  #bar { flex-wrap: wrap; gap: 4px 8px; padding: 4px 8px; padding-top: max(4px, env(safe-area-inset-top)); }
  .when { flex: 1 1 120px; }
  .money { flex: 1 1 150px; flex-direction: row; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
  #util { flex-basis: 100%; }
  #speed { order: 4; margin-left: 0; flex: 1 1 100%; justify-content: space-between; }
  #speed button { flex: 1; padding: 5px 4px; }
  .iconbtn { padding: 4px 6px; min-width: 32px; }
  #date { max-width: 60vw; }
  #minimap { width: 100px; height: 154px; }
  #mini { padding: 4px; top: 4px; right: 4px; } #overlays button { font-size: 10px; padding: 2px 3px; }
  #zoom { left: 4px; top: 4px; } #zoom button { width: 28px; height: 28px; }
}
@media (max-height: 520px) {
  #bar { padding-top: 3px; padding-bottom: 3px; gap: 8px; } #ticker { min-height: 18px; padding: 1px 8px; font-size: 11.5px; }
  #minimap { width: 90px; height: 138px; } #overlays { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 460px) { .stars { font-size: 13px; letter-spacing: 0; } #stars { white-space: nowrap; } #mini.collapsed ~ * {} }

#panel .meter { height: 8px; background: #10141f; border-radius: 4px; overflow: hidden; margin: 2px 0 6px; } #panel .meter i { display: block; height: 100%; }

/* tela inicial: o jogo roda ao fundo, sem a barra, as ferramentas e o minimapa */
body.intro #bar, body.intro #ticker, body.intro #toolbar, body.intro #toolopts, body.intro #mini, body.intro #zoom, body.intro #notes, body.intro #hint, body.intro #tip, body.intro #flyout, body.intro #previewBar { display: none; }
body.intro #app { grid-template-rows: 1fr; }
#title { --blue: #35b6ff; --blue2: #1c7fd6; --orange: #ff8a3d; --navy: #0a1a38; position: fixed; inset: 0; z-index: 20; overflow: hidden; display: flex; align-items: center; padding: 0 7vw; animation: titleIn 1.6s ease-out;
  background:
    radial-gradient(70% 60% at 80% 60%, rgba(255,150,70,.2), rgba(255,150,70,0) 70%),
    linear-gradient(90deg, rgba(4,9,24,.86) 0, rgba(4,9,24,.58) 30%, rgba(4,9,24,0) 58%),
    radial-gradient(130% 110% at 65% 55%, rgba(0,0,0,0) 50%, rgba(2,4,12,.65) 100%); }
@keyframes titleIn { from { opacity: 0; } to { opacity: 1; } }
/* camadas de atmosfera sobre a cena */
#title .fx { position: absolute; pointer-events: none; }
#title .rays { inset: -30%; background: repeating-conic-gradient(from 0deg at 82% 38%, rgba(255,214,150,.0) 0 5deg, rgba(255,214,150,.07) 5deg 7deg, rgba(255,214,150,0) 7deg 13deg); mix-blend-mode: screen; -webkit-mask-image: radial-gradient(60% 60% at 82% 38%, #000, transparent 75%); mask-image: radial-gradient(60% 60% at 82% 38%, #000, transparent 75%); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#title .flare { left: 0; right: 0; top: 38%; height: 120px; margin-top: -60px; background: radial-gradient(40% 3px at 82% 50%, rgba(255,230,190,.55), transparent), radial-gradient(18% 40% at 82% 50%, rgba(255,190,110,.18), transparent); mix-blend-mode: screen; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
#title .sparks { inset: 0; overflow: hidden; }
#title .sparks i { position: absolute; left: var(--x); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255,226,170,var(--o)); box-shadow: 0 0 calc(var(--s) * 3) rgba(255,200,120,.6); filter: blur(.4px); animation: float var(--d) linear var(--l) infinite; }
@keyframes float { from { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } to { transform: translate(40px, -105vh); opacity: 0; } }
#title .grain { inset: 0; opacity: .08; mix-blend-mode: overlay; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain .6s steps(3) infinite; }
@keyframes grain { 0% { background-position: 0 0; } 33% { background-position: -40px 25px; } 66% { background-position: 30px -35px; } }
#title .bars { inset: 0; background: linear-gradient(rgba(2,4,12,.85), rgba(2,4,12,0) 11%, rgba(2,4,12,0) 80%, rgba(2,4,12,.9)); }
/* barra de cima, dica e teclas */
#title .top { position: absolute; top: 3.4vh; left: 7vw; right: 7vw; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.75); font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; animation: rise .9s .9s both; }
#title .live { display: flex; align-items: center; gap: 9px; } #title .live b { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
#title #tClock { font-variant-numeric: tabular-nums; }
#title .dica { position: absolute; right: 7vw; bottom: 9vh; width: min(340px, 36vw); padding: 12px 16px 13px; border-left: 3px solid var(--orange); background: linear-gradient(90deg, rgba(6,12,30,.72), rgba(6,12,30,.35)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: rgba(255,255,255,.88); font-size: 13px; line-height: 1.45; animation: rise .9s 1.1s both; }
#title .dica b { display: block; margin-bottom: 3px; color: var(--orange); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; }
#title .dica span { display: block; transition: opacity .4s; }
#title .keys { position: absolute; left: 7vw; right: 7vw; bottom: 3.2vh; display: flex; align-items: center; gap: 22px; color: rgba(255,255,255,.62); font-size: 11.5px; letter-spacing: .08em; animation: rise .9s 1.2s both; }
#title .keys kbd { display: inline-block; min-width: 22px; margin-right: 4px; padding: 2px 6px; text-align: center; font: 700 11px system-ui; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-bottom-width: 2px; border-radius: 5px; }
#title .keys em { margin-left: auto; font-style: normal; text-transform: uppercase; letter-spacing: .16em; font-size: 10.5px; opacity: .8; }
/* marca e menu */
#title .box { position: relative; width: min(620px, 100%); margin: 0; text-align: left; }
#title .box > .logo, #title .box > .tag { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
#title .logo { margin: 0; line-height: 0; animation-delay: .2s; filter: drop-shadow(0 12px 22px rgba(0,0,0,.55)); }
#title .logo svg { width: 100%; height: auto; overflow: visible; display: block; }
#title .logo .sky rect { fill: #0b2347; opacity: .92; } #title .logo .sky .wn { fill: #ffd37a; opacity: 1; }
#title .logo .hz { fill: url(#lgs); }
#title .tag { display: flex; align-items: center; gap: 12px; margin: 18px 0 34px; color: rgba(255,255,255,.88); font-size: 12.5px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.7); animation-delay: .45s; }
#title .tag i { flex: 1; max-width: 46px; height: 1px; background: linear-gradient(90deg, var(--blue), transparent); } #title .tag i:first-child { background: linear-gradient(270deg, var(--blue), transparent); max-width: 26px; }
#title nav { display: flex; flex-direction: column; gap: 7px; width: min(430px, 100%); }
#title nav button { --d: calc(.6s + var(--i, 0) * .08s); position: relative; display: flex; align-items: center; gap: 16px; width: 100%; padding: 11px 22px 11px 16px; margin: 0; border: 0; border-radius: 0; text-align: left; color: #fff; cursor: pointer; transform-origin: left; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  background: linear-gradient(90deg, rgba(8,18,44,.82), rgba(8,18,44,.5)); box-shadow: inset 3px 0 0 rgba(53,182,255,.45); transition: transform .2s cubic-bezier(.2,.7,.2,1), background .2s, box-shadow .2s, width .2s; animation: slide .7s cubic-bezier(.2,.7,.2,1) var(--d) both; }
@keyframes slide { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#title nav .no { flex: none; width: 24px; font: 700 12px/1 system-ui; letter-spacing: .1em; color: var(--blue); opacity: .85; }
#title nav .tx { flex: 1; min-width: 0; font: 700 19px/1.15 system-ui, "Segoe UI", Roboto, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
#title nav .tx small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 500; letter-spacing: .03em; text-transform: none; color: rgba(255,255,255,.58); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
#title nav .ar { flex: none; width: 10px; height: 10px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: translateX(-10px) rotate(45deg); opacity: 0; transition: .2s; }
#title nav button:hover, #title nav button:focus-visible { outline: none; width: calc(100% + 28px); background: linear-gradient(90deg, #2a9df0, #1c6fcf 70%, rgba(28,111,207,.75)); box-shadow: inset 4px 0 0 #fff, 0 0 30px rgba(53,182,255,.45); }
#title nav button:hover .no, #title nav button:focus-visible .no { color: #fff; }
#title nav button:hover small, #title nav button:focus-visible small { color: rgba(255,255,255,.88); }
#title nav button:hover .ar, #title nav button:focus-visible .ar { opacity: 1; transform: translateX(0) rotate(45deg); }
#title nav button:active { filter: brightness(1.15); }
#title nav button.primary { padding-top: 15px; padding-bottom: 15px; background: linear-gradient(90deg, #ff9d4d, #ff7a2e 75%, rgba(255,122,46,.8)); box-shadow: inset 4px 0 0 #fff, 0 0 26px rgba(255,138,61,.4); }
#title nav button.primary .no { color: #fff; } #title nav button.primary small { color: rgba(255,255,255,.92); } #title nav button.primary .tx { font-size: 22px; }
#title nav button.primary:hover, #title nav button.primary:focus-visible { background: linear-gradient(90deg, #ffb066, #ff8a3d 75%, rgba(255,138,61,.85)); box-shadow: inset 4px 0 0 #fff, 0 0 42px rgba(255,138,61,.65); }
#title nav button.off { opacity: .35; pointer-events: none; }
#title.saindo { opacity: 0; transition: opacity .45s ease-in; pointer-events: none; animation: none; }
@media (max-width: 800px) { #title { justify-content: center; padding: 0 16px; background: linear-gradient(rgba(4,9,24,.72), rgba(4,9,24,.55) 50%, rgba(4,9,24,.88)); } #title .box { text-align: center; } #title .tag { justify-content: center; } #title nav { margin: 0 auto; } #title nav button:hover, #title nav button:focus-visible { width: 100%; } #title .dica, #title .keys span { display: none; } #title .keys em { margin: 0 auto; } #title nav .tx { font-size: 16px; } #title nav button.primary .tx { font-size: 19px; } #title .top { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { #title, #title * { animation: none !important; } }
