/* Item 343: a página da versão Web. Paleta da Direção de Arte: Gold #C9A227, Slate #3D4148, DeepSpace #12141C, Steel #6E7B8B.
   Artes: web_wide.jpg (21:9) e web_portrait.jpg (9:16), geradas por Tools/ImageGen/Web-Backdrops.ps1 a partir da "Tela Carregamento 4";
   logo.png = o brasão do jogo (Assets/Art/UI/_GeneratedLogoAlpha.png); logo_stellarion.png = o logotipo (13/10, versão 1024 de Assets/Art/UI/logo_stellarion.png),
   que substitui o texto "Stellarion" na marca do topo, na entrada e no carregamento — sempre na proporção do arquivo (height: auto). */
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #12141C; color: #E8E6E0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; touch-action: none; }

/* as faixas que sobram ao lado (ou acima/abaixo) do jogo: a arte do jogo desfocada e escurecida — nunca preto liso */
#backdrop { position: fixed; inset: -24px; background: #12141C url("web_wide.jpg") center / cover no-repeat;
  filter: blur(14px) brightness(.42) saturate(1.1); }
body.portrait #backdrop { background-image: url("web_portrait.jpg"); }

/* a caixa do jogo: paisagem, centrada (o tamanho vem do script: 16:9 no computador, até 20:9 no celular deitado) */
#game { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100vw; height: 100vh; background: #12141C; }
body.letterbox #game { box-shadow: 0 0 0 1px rgba(201, 162, 39, .55), 0 0 48px 6px rgba(0, 0, 0, .75); }
#unity-canvas { width: 100%; height: 100%; display: block; background: #12141C; outline: none; }

/* carregamento: a arte inteira, a marca no alto e a barra na base */
#loading { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  background: #12141C url("web_wide.jpg") center 30% / cover no-repeat; transition: opacity .5s ease; }
body.portrait #loading { background-image: url("web_portrait.jpg"); background-position: center; }
#loading::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,20,28,.70) 0%, rgba(18,20,28,.15) 38%, rgba(18,20,28,.25) 62%, rgba(18,20,28,.92) 100%); }
#loading.gone { opacity: 0; pointer-events: none; }
.brand { position: relative; text-align: center; padding: 6vh 16px 0; }
.brand img { width: clamp(84px, 15vh, 150px); height: auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,.7)); }
.brand h1 img.wordmark { display: block; margin: 0 auto; width: clamp(260px, 42vw, 560px); max-width: 100%; height: auto; }
.brand h1 { margin: 8px 0 6px; line-height: 0; color: #C9A227; font-size: clamp(24px, 5vh, 40px); letter-spacing: .14em; font-weight: 600; text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,.85); }
#status { margin: 0; color: #E8E6E0; font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
#mobile-note { margin: 10px auto 0; max-width: 420px; color: #C8CDD4; font-size: 13px; line-height: 1.4; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.footer { position: relative; width: 100%; padding: 0 16px 14px; box-sizing: border-box; text-align: center; }
#sound-hint { margin: 0 0 12px; color: #C9A227; font-size: 14px; text-shadow: 0 1px 6px rgba(0,0,0,.9); animation: pulse 1.6s ease-in-out infinite; transition: opacity .4s; }
#sound-hint.done { opacity: 0; animation: none; }
#bar { margin: 0 auto; width: min(80%, 900px); height: 8px; border-radius: 4px; background: rgba(61, 65, 72, .85); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(201,162,39,.35); }
#bar-full { width: 0; height: 100%; background: linear-gradient(90deg, #8a6d14, #C9A227 60%, #f0d77a); transition: width .2s ease; }
#percent { margin: 8px 0 0; color: #C8CDD4; font-size: 13px; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

#sound-pill { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 20; border: 1px solid #C9A227;
  background: rgba(18, 20, 28, .85); color: #C9A227; border-radius: 18px; padding: 7px 16px; font-size: 13px; cursor: pointer; }
#fullscreen { position: fixed; right: 10px; bottom: 10px; z-index: 20; width: 38px; height: 38px; border-radius: 8px; border: 1px solid #3D4148;
  background: rgba(18, 20, 28, .6); color: #C9A227; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: .6; }
#fullscreen:hover { opacity: 1; }
#fullscreen[hidden], #sound-pill[hidden] { display: none; }
/* L242AI (item 397): download de pacote (ex.: modelos 3D) e aviso de versão nova */
#content-pill { position: fixed; left: 10px; bottom: 10px; z-index: 20; border: 1px solid #3D4148; background: rgba(18, 20, 28, .8); color: #E8E6E0;
  border-radius: 14px; padding: 5px 12px; font-size: 12px; pointer-events: none; }
#content-pct { color: #C9A227; }
#new-build { position: fixed; top: 10px; right: 10px; z-index: 25; border: 1px solid #C9A227; background: rgba(18, 20, 28, .92); color: #E8E6E0;
  border-radius: 10px; padding: 8px 10px 8px 14px; font-size: 13px; display: flex; gap: 8px; align-items: center; }
#new-build button { background: #C9A227; color: #12141C; border: 0; border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 13px; }
#new-build #new-build-later { background: transparent; color: #E8E6E0; font-size: 16px; padding: 2px 6px; }
#content-pill[hidden], #new-build[hidden] { display: none; }

/* celular em pé: o jogo é só paisagem — aviso bonito sobre a arte vertical */
#rotate { display: none; position: fixed; inset: 0; z-index: 30; align-items: center; justify-content: center; padding: 0 16px;
  background: #12141C url("web_portrait.jpg") center / cover no-repeat; }
body.mobile.portrait #rotate { display: flex; }
.card { background: rgba(18, 20, 28, .78); border: 1px solid rgba(201, 162, 39, .6); border-radius: 14px; padding: 22px 26px; text-align: center;
  max-width: 340px; box-shadow: 0 10px 40px rgba(0,0,0,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.card h2 { color: #C9A227; margin: 6px 0 8px; font-size: 22px; letter-spacing: .04em; }
.card p { color: #C8CDD4; margin: 0; line-height: 1.4; }
.phone { animation: turn 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes turn { 0%, 25% { transform: rotate(0deg); } 55%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(0deg); } }

/* modo de demonstração: no lugar do jogo, a arte de carregamento */
body.demo #game { background: #12141C url("web_wide.jpg") center / cover no-repeat; }
body.demo #unity-canvas { visibility: hidden; }


/* ---- item 344 + 492 (Web WideScreen): barra superior e painéis laterais do monitor largo, com as peles do HUD do app (exportadas de
   Assets/Art/UI e Assets/Art/Icons). Moldura: skin_world_frame (filete dourado com losangos nos cantos); fundo: linho navy do HUD sobre a base
   escura; caixas internas: skin_screen_panel (9-slice); botões: linho bordô ATRÁS da moldura vazada (o LinenBehindFrame da barra lateral). */
body.wide #game { left: 50%; }
#topbar { position: fixed; left: 0; right: 0; top: 0; z-index: 6; display: flex; align-items: center; gap: 14px; padding: 0 10px; box-sizing: border-box;
  font-size: clamp(12px, 1.3vh, 15px); color: #E8E6E0; white-space: nowrap; overflow: hidden;
  background: url("ui/linen_navy.png") repeat, linear-gradient(180deg, #232733, #161922); background-size: 96px 96px, auto;
  border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, transparent, #C9A227 15%, #C9A227 85%, transparent) 1;
  box-shadow: 0 4px 18px rgba(0,0,0,.55); }
#topbar[hidden] { display: none; }
.tb-brand { display: flex; align-items: center; gap: 6px; color: #C9A227; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .95em; }
.tb-brand img { height: 1.7em; width: auto; filter: drop-shadow(0 1px 3px rgba(0,0,0,.8)); }
.tb-brand img.wordmark { height: 1.9em; }
.tb-items { flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.6vw, 26px); min-width: 0; overflow: hidden; }
.tb-item { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.tb-k { color: #9EA6B0; font-size: .82em; text-transform: uppercase; letter-spacing: .07em; }
.tb-item b { color: #F2D46A; font-weight: 700; overflow: hidden; text-overflow: ellipsis; max-width: 18em; }
.dot { align-self: center; width: .62em; height: .62em; border-radius: 50%; background: #8A929C; box-shadow: 0 0 0 2px rgba(0,0,0,.6); }
.dot.on { background: #4CCC5C; box-shadow: 0 0 6px #4CCC5C, 0 0 0 2px rgba(0,0,0,.6); }
.tb-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(201,162,39,.55); background: rgba(18,20,28,.6); color: #E8E6E0;
  border-radius: 6px; padding: 2px 8px; font-size: .85em; cursor: pointer; }
.tb-toggle:hover { border-color: #C9A227; color: #F2D46A; }
kbd { font: inherit; font-size: .8em; color: #C9A227; border: 1px solid rgba(201,162,39,.55); border-radius: 4px; padding: 0 4px; }
/* painéis recolhidos: uma aba na borda esquerda os traz de volta (ou F2) */
#wide-show { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 6px; border: 1px solid rgba(201,162,39,.6); border-left: 0; border-radius: 0 10px 10px 0; background: rgba(18,20,28,.82); color: #C9A227;
  cursor: pointer; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.6); }
#wide-show[hidden] { display: none; }
#wide-show:hover { background: rgba(40,44,56,.92); }
#wide-show .ws-label { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .08em; }

.side { font-size: clamp(11px, 1.3vh, 17px); position: fixed; z-index: 5; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px;
  padding: 8px 10px; overflow: hidden; color: #E8E6E0;
  border: 18px solid transparent; border-image: url("ui/world_frame.png") 32 / 18px stretch;
  background: url("ui/linen_navy.png") repeat, linear-gradient(180deg, #232733 0%, #161922 100%);
  background-size: 96px 96px, auto; background-clip: padding-box, padding-box;
  box-shadow: 0 10px 40px rgba(0,0,0,.65); animation: sideIn .35s ease-out; }
@keyframes sideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.side[hidden] { display: none; }
.side header { display: flex; flex-direction: column; align-items: center; padding-bottom: 4px; flex: none;
  border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, transparent, #C9A227, transparent) 1; }
.side .title { color: #C9A227; font-weight: 700; font-size: 1.2em; letter-spacing: .05em; text-transform: uppercase; text-align: center; text-shadow: 0 2px 6px rgba(0,0,0,.8);
  max-width: 100%; overflow: hidden; line-height: 1.15; }
.side .sub { color: #B9BEC6; font-size: .95em; margin-top: 2px; text-align: center; }
.side h3 { margin: 0 0 5px; color: #C9A227; font-size: .92em; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.side h3.h-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.side section, .counter { border: 11px solid transparent; border-image: url("ui/screen_panel.png") 36 fill / 11px stretch; padding: 0 2px; flex: none; min-height: 0; overflow-x: hidden; }
.side section.flex { flex: 0 1 auto; min-height: 5.6em; overflow-y: auto; }
.side section.flex2 { flex: 1 1 auto; min-height: 5.5em; overflow-y: auto; }
.ico { width: 2.4em; height: 2.4em; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }

/* barras de estoque: ícone real no alto, trilho com moldura dourada fina, preenchimento com brilho e a cor do item 331; a linha tracejada azul
   marca o estoque PROTEGIDO do saque (o Depósito o guarda); a coluna inteira acende quando o recurso bate no teto */
.bars { flex: 1; display: flex; gap: 6px; justify-content: space-between; min-height: 0; padding: 4px 2px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; border-radius: 8px; }
.bar-col.full { background: rgba(242, 41, 31, .14); box-shadow: inset 0 0 0 1px rgba(242,41,31,.55); }
.bar-col .track { position: relative; flex: 1; width: 1.7em; min-height: 70px; border-radius: 12px; background: linear-gradient(90deg, #07080c, #1a1d26 50%, #07080c);
  border: 2px solid #C9A227; box-shadow: 0 0 0 1px rgba(0,0,0,.8), inset 0 0 8px rgba(0,0,0,.9); display: flex; align-items: flex-end; overflow: hidden; }
.bar-col .fill { --c: #4CCC5C; width: 100%; border-radius: 10px; transition: height .6s ease, background .4s;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.35) 35%, rgba(255,255,255,0) 60%, rgba(0,0,0,.25)), var(--c);
  box-shadow: 0 0 10px var(--c), inset 0 2px 0 rgba(255,255,255,.55); }
.bar-col .prot { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed #8ee8ff; filter: drop-shadow(0 0 2px #000); pointer-events: none; }
.bar-col .stock { font-weight: 700; font-size: 1em; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.bar-col .name { display: none; }
.legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: .78em; color: #9EA6B0; padding: 0 4px; flex: none; }
.legend b { color: #E8E6E0; }
.lg-prot { display: inline-block; width: 1.4em; height: 0; border-top: 2px dashed #8ee8ff; vertical-align: middle; margin-right: 4px; }
.rate { color: #7DDA86; font-size: .9em; white-space: nowrap; }
.rate.neg { color: #FF7A6E; }
.counters { display: flex; flex-direction: column; gap: 3px; flex: none; }
.counter { display: flex; align-items: center; gap: 8px; }
.counter .ctext { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 6px; }
.counter .ctext .cname { grid-column: 1 / 3; }
.counter .cname, .person .cname { color: #9EA6B0; font-size: .8em; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.counter .cval { font-weight: 700; font-size: 1.3em; text-shadow: 0 1px 3px #000; }
.people { display: flex; flex-direction: column; gap: 3px; flex: none; }
.person { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px; border-radius: 8px; background: rgba(7,8,12,.45); box-shadow: inset 0 0 0 1px rgba(201,162,39,.25); }
.person .ico { width: 1.7em; height: 1.7em; }
.person > div { min-width: 0; flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.person .pval { font-weight: 700; font-size: 1.1em; }
.person.bad { box-shadow: inset 0 0 0 1px #FF3B2A; background: rgba(160,20,10,.35); }
.person.bad .pval { color: #FF7A6E; }
.alerts-box { flex: 0 1 auto !important; min-height: 4em; max-height: 32%; overflow-y: auto; }
.alerts { display: flex; flex-direction: column; gap: 4px; }
.al { display: flex; align-items: center; gap: 7px; width: 100%; text-align: left; border: 0; border-radius: 7px; padding: 5px 7px; font: inherit; font-size: .9em;
  color: #F3E9CF; background: rgba(7,8,12,.5); box-shadow: inset 0 0 0 1px rgba(201,162,39,.35); }
button.al { cursor: pointer; }
button.al:hover { filter: brightness(1.25); }
.al-dot { flex: none; width: .7em; height: .7em; border-radius: 50%; background: #C9A227; }
.al-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.al-deposit .al-dot { background: #FF941A; }
.al-gold .al-dot { background: #F2D46A; }
.al-gold { box-shadow: inset 0 0 0 1px rgba(255,122,110,.6); }
.al-revolt .al-dot, .al-attack .al-dot, .al-waiting .al-dot { background: #FF3B2A; }
.al-attack, .al-waiting { box-shadow: inset 0 0 0 1px #FF3B2A; background: rgba(160,20,10,.55); animation: blinkRed .2s ease-in-out infinite alternate; }
.al-revolt { box-shadow: inset 0 0 0 1px rgba(255,59,42,.7); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { position: relative; border: 10px solid transparent; border-image: url("ui/frame_slate.png") 52 / 10px stretch; background: #2c303a; background-clip: padding-box;
  color: #E8E6E0; padding: 0 6px; font-size: .9em; cursor: pointer; transition: filter .12s, transform .08s; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { filter: brightness(1.2); }
.chip:active { transform: scale(.96); filter: brightness(.85); }
.chip.on { border-image-source: url("ui/frame_gold.png"); color: #F2D46A; cursor: default; }
.chip.revolt { color: #FF9A8E; }
.list .row { display: flex; justify-content: space-between; gap: 8px; font-size: .95em; padding: 2px 0; }
.list .row.queued .txt { color: #B9BEC6; }
.list .row.queued .txt::before { content: "⏳ "; font-size: .85em; }
.list .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.list .left { color: #C9A227; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list .empty { color: #8A929C; font-size: .9em; font-style: italic; }
.pbar { height: 7px; background: #07080c; border: 1px solid #C9A227; border-radius: 4px; overflow: hidden; margin: 2px 0 4px; }
.pfill { height: 100%; background: linear-gradient(180deg, #ffe58a, #c99a1a); transition: width .6s; }   /* a obra: o dourado da barra de obra do jogo (item 489) */
.pbar.study .pfill { background: linear-gradient(180deg, #8ee8ff, #1f8fb0); }
.pbar.war .pfill { background: linear-gradient(180deg, #ffe680, #d9a400); }
.pbar.enemy { border-color: #FF3B2A; }
.pbar.enemy .pfill { background: linear-gradient(180deg, #ff8a7a, #c41a0c); }
.march { padding: 2px 0 1px; border-bottom: 1px dashed rgba(110,123,139,.25); }
.march:last-child { border-bottom: 0; }
.march .kind { color: #9EA6B0; font-size: .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.march.enemy .txt, .march.enemy .kind { color: #FF9A8E; }
.sword { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.2em; height: 2.2em; padding: 0; cursor: pointer;
  border: 6px solid transparent; border-image: url("ui/frame_slate.png") 52 / 6px stretch; background: url("ui/linen_bordo.png") repeat; background-size: 48px 48px; background-clip: padding-box; }
.sword img { width: 1.4em; height: 1.4em; object-fit: contain; pointer-events: none; }
.sword:hover { border-image-source: url("ui/frame_gold.png"); }
.sword.off { background: #2b2d33; cursor: not-allowed; }
.sword.off img { filter: grayscale(1) brightness(.55); }
.unread { border: 1px solid rgba(212,24,12,.8); background: rgba(160,20,10,.55); color: #fff; border-radius: 10px; padding: 1px 8px; font-size: .78em; cursor: pointer; text-transform: none; letter-spacing: 0; }
.unread[hidden] { display: none; }

/* botões das telas: ícone do HUD + rótulo embaixo, linho bordô atrás da moldura vazada, como Cidade/Ilha/Mundo na barra lateral */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.nav { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px 0 0;
  border: 8px solid transparent; border-image: url("ui/frame_slate.png") 52 / 8px stretch;
  background: url("ui/linen_bordo.png") repeat; background-size: 64px 64px; background-clip: padding-box; background-origin: border-box;
  color: #F3E9CF; cursor: pointer; transition: filter .12s, transform .08s; min-height: 3.2em; font: inherit; }
.nav:hover { filter: brightness(1.25) saturate(1.1); border-image-source: url("ui/frame_gold.png"); }
.nav:active { transform: scale(.95); filter: brightness(.8); }
.nav-ico { width: 1.8em; height: 1.8em; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.8)); pointer-events: none; }
.tips-ico { display: flex; align-items: center; justify-content: center; border-radius: 50%; width: 1.45em; height: 1.45em; margin: .15em 0; font-weight: 800; font-size: 1.05em;
  color: #2a1d02; background: radial-gradient(circle at 35% 30%, #fff1a8, #e2b830 55%, #8a6d14); box-shadow: 0 0 0 2px #3a2c06, 0 2px 3px rgba(0,0,0,.8); }
.nav-label { font-size: .74em; font-weight: 600; text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; pointer-events: none; }
.nav-lock { display: none; position: absolute; right: -4px; top: -4px; width: 1.5em; height: 1.5em; pointer-events: none; }
.nav.off { cursor: not-allowed; }
.nav.off .nav-ico, .nav.off .nav-label { filter: grayscale(1) brightness(.55); }
.nav.off { background-image: none; background-color: #2b2d33; }
.nav.off:hover { border-image-source: url("ui/frame_slate.png"); filter: none; }
.nav.off .nav-lock { display: block; }
.badge { display: none; position: absolute; right: -8px; top: -8px; min-width: 1.5em; height: 1.5em; border-radius: .75em; padding: 0 .3em;
  background: radial-gradient(circle at 35% 30%, #ff7b6b, #d4180c 60%, #8e0a03); color: #fff; font-size: .78em; font-weight: 700;
  align-items: center; justify-content: center; box-shadow: 0 0 0 2px #2a0b07, 0 2px 4px rgba(0,0,0,.7); pointer-events: none; }
/* a Espada: amarelo calmo (1 s por metade) com tropa em trânsito; vermelho rápido (5 por segundo) com inimigo nos portões */
.blink-yellow { animation: blinkYellow 2s ease-in-out infinite; }
.blink-red { animation: blinkRed .2s ease-in-out infinite alternate !important; }
@keyframes blinkYellow { 0%, 100% { box-shadow: inset 0 0 0 0 rgba(255,230,0,0); } 50% { box-shadow: inset 0 0 0 999px rgba(255,230,0,.38); } }
@keyframes blinkRed { from { box-shadow: inset 0 0 0 0 rgba(255,10,0,0); } to { box-shadow: inset 0 0 0 999px rgba(255,10,0,.55); } }
.balloon { display: none; position: fixed; z-index: 50; max-width: 260px; padding: 8px 12px; border-radius: 8px; background: #1b1e27; color: #F3E9CF;
  border: 2px solid #C9A227; box-shadow: 0 6px 20px rgba(0,0,0,.7); font-size: 14px; pointer-events: none; }

/* ---- item 492: a página de entrada (antes do login), no padrão do app: a arte de carregamento, o brasão, o dourado e o slate */
#entry { position: fixed; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; overflow: auto;
  background: #12141C url("web_wide.jpg") center 30% / cover no-repeat; }
body.portrait #entry { background-image: url("web_portrait.jpg"); background-position: center; }
#entry::before { content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(18,20,28,.35) 0%, rgba(18,20,28,.80) 70%, rgba(18,20,28,.95) 100%); }
#entry[hidden] { display: none; }
body.entry #rotate { display: none !important; }
.entry-card { position: relative; width: min(460px, 100%); margin: auto; text-align: center; padding: 22px 26px 18px; box-sizing: border-box;
  border: 18px solid transparent; border-image: url("ui/world_frame.png") 32 / 18px stretch;
  background: url("ui/linen_navy.png") repeat, linear-gradient(180deg, rgba(35,39,51,.94), rgba(22,25,34,.96)); background-size: 96px 96px, auto; background-clip: padding-box;
  box-shadow: 0 18px 60px rgba(0,0,0,.75); animation: sideIn .5s ease-out; }
.entry-logo { width: clamp(84px, 14vh, 132px); height: auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,.7)); }
.entry-card h1 img.wordmark { display: block; margin: 4px auto 6px; width: min(340px, 100%); height: auto; filter: drop-shadow(0 3px 12px rgba(0,0,0,.8)); }
.entry-card h1 { margin: 6px 0 2px; line-height: 0; color: #C9A227; font-size: clamp(26px, 4.6vh, 38px); letter-spacing: .16em; font-weight: 600; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.85); }
.entry-tag { margin: 0 0 16px; color: #C8CDD4; font-size: 14px; }
.btn-gold { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; box-sizing: border-box; cursor: pointer;
  border: 10px solid transparent; border-image: url("ui/button_gold.png") 40 fill / 10px stretch; background: transparent;
  color: #1d1504; font-weight: 700; font-size: 17px; letter-spacing: .02em; text-shadow: 0 1px 0 rgba(255,255,255,.35); transition: filter .12s, transform .08s; }
.btn-gold img { width: 26px; height: 26px; background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.btn-gold:hover { filter: brightness(1.12); }
.btn-gold:active { transform: scale(.98); }
.btn-gold:disabled { filter: grayscale(1) brightness(.6); cursor: not-allowed; }
.entry-status { margin: 8px 0 0; color: #F2D46A; font-size: 14px; }
.entry-status.bad { color: #FF9A8E; }
.entry-status[hidden] { display: none; }
.entry-again { margin: 10px 0 2px; color: #B9BEC6; font-size: 13px; }
.btn-link { background: none; border: 0; padding: 0; color: #F2D46A; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.btn-link:disabled { color: #8A929C; cursor: not-allowed; }
.entry-req { margin-top: 14px; text-align: left; border: 12px solid transparent; border-image: url("ui/screen_panel.png") 36 fill / 12px stretch; padding: 0 4px; }
.entry-req h2 { margin: 0 0 6px; color: #C9A227; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.entry-req ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.entry-req li { display: flex; align-items: center; gap: 8px; color: #E8E6E0; font-size: 13.5px; }
.mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 800; }
.mark.ok { background: #2f7d3a; color: #e9ffe9; }
.mark.bad { background: #b3261e; color: #fff; }
.mark.warn { background: #c98a14; color: #1d1504; }
.mark.info { background: #3D4148; color: #C9A227; font-style: italic; font-family: Georgia, serif; }
.entry-apk { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 12px; border-radius: 10px; text-decoration: none; text-align: left;
  color: #E8E6E0; font-size: 13.5px; background: rgba(7,8,12,.55); box-shadow: inset 0 0 0 1px rgba(125,218,134,.45); transition: filter .12s; }
.entry-apk b { color: #7DDA86; }
.entry-apk:hover { filter: brightness(1.2); }

#fatal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 0 16px;
  background: #12141C url("web_wide.jpg") center / cover no-repeat; }
#fatal[hidden] { display: none; }
#fatal .card { max-width: 520px; }
#fatal p { margin: 0 0 16px; }
#fatal button { background: #C9A227; color: #12141C; border: 0; border-radius: 6px; padding: 10px 18px; font-size: 15px; cursor: pointer; }
