/* AFTER Abismo — jogo de terror do AFTER Games. */
#gamesContent .ab-shell{
  --ab-ink:#04050a;
  --ab-panel:rgba(10,11,16,.82);
  --ab-line:rgba(190,60,70,.24);
  --ab-line-soft:rgba(190,60,70,.12);
  --ab-red:#ff5f70;
  --ab-amber:#ffc46b;
  --ab-teal:#7fe6ff;
  position:relative;
  display:block;
  margin:0 auto;
  max-width:1020px;
  color:#f2ecec;
  font-family:inherit;
  isolation:isolate;
}
#gamesContent .ab-stage{
  position:relative;
  width:100%;
  aspect-ratio:16/10;
  border-radius:22px;
  overflow:hidden;
  background:#04050a;
  border:1px solid var(--ab-line);
  box-shadow:0 28px 70px -32px #000, inset 0 0 0 1px #ffffff08;
  touch-action:none;
}
#gamesContent .ab-stage > canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  background:#04050a;
  image-rendering:pixelated;
}
#gamesContent .ab-hud{position:absolute;inset:0;pointer-events:none;color:#f2ecec}

/* ---------- objetivo ---------- */
#gamesContent .ab-objective{
  position:absolute;top:12px;left:12px;display:grid;gap:3px;
  padding:8px 12px 9px;border-radius:14px;
  background:linear-gradient(180deg,rgba(14,12,16,.84),rgba(8,7,10,.66));
  border:1px solid var(--ab-line-soft);
  backdrop-filter:blur(9px);
  box-shadow:0 12px 26px -20px #000;
}
#gamesContent .ab-objective small{font-size:8px;font-weight:800;letter-spacing:2px;color:#b98f92}
#gamesContent .ab-objective b{font-size:12.5px;letter-spacing:.4px}
#gamesContent .ab-pips{display:flex;gap:5px;margin-top:2px}
#gamesContent .ab-pips i{
  display:block;width:26px;height:5px;border-radius:99px;
  background:#2a1c20;border:1px solid #ffffff10;transition:background .25s ease, box-shadow .25s ease;
}
#gamesContent .ab-pips i.is-on{background:linear-gradient(90deg,#7fe6ff,#3fb6cf);box-shadow:0 0 12px #7fe6ff88}

/* ---------- tempo / pausa ---------- */
#gamesContent .ab-clock{
  position:absolute;top:12px;left:50%;transform:translateX(-50%);
  display:grid;justify-items:center;gap:1px;padding:5px 14px;border-radius:12px;
  background:rgba(10,8,12,.7);border:1px solid var(--ab-line-soft);backdrop-filter:blur(8px);
}
#gamesContent .ab-clock small{font-size:7.5px;font-weight:800;letter-spacing:2px;color:#a38083}
#gamesContent .ab-clock b{font-size:15px;font-variant-numeric:tabular-nums;letter-spacing:.5px}
#gamesContent .ab-pause{
  position:absolute;top:12px;right:12px;width:34px;height:34px;border-radius:11px;
  display:grid;place-items:center;cursor:pointer;pointer-events:auto;
  background:rgba(14,10,14,.8);border:1px solid var(--ab-line);color:#e6c9cc;
  font-size:10px;font-weight:800;letter-spacing:1px;backdrop-filter:blur(8px);
}
#gamesContent .ab-pause:hover{background:rgba(30,16,20,.9)}

/* ---------- vitais ---------- */
#gamesContent .ab-vitals{position:absolute;left:14px;bottom:14px;display:grid;gap:6px;width:170px}
#gamesContent .ab-vital{
  display:grid;gap:3px;padding:6px 9px;border-radius:11px;
  background:rgba(9,8,11,.72);border:1px solid var(--ab-line-soft);backdrop-filter:blur(8px);
}
#gamesContent .ab-vital>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
#gamesContent .ab-vital small{font-size:7.5px;font-weight:800;letter-spacing:1.6px;color:#b08e91}
#gamesContent .ab-vital b{font-size:12.5px;font-variant-numeric:tabular-nums}
#gamesContent .ab-vital>i{display:block;height:4px;border-radius:99px;background:#2a1c20;overflow:hidden}
#gamesContent .ab-vital>i em{display:block;height:100%;width:100%;border-radius:99px;transition:width .18s linear}
#gamesContent .ab-vital.is-hp>i em{background:linear-gradient(90deg,#ff5f70,#b81f31)}
#gamesContent .ab-vital.is-san>i em{background:linear-gradient(90deg,#a98bff,#6d4bd6)}
#gamesContent .ab-vital.is-stam{padding:4px 9px}
#gamesContent .ab-vital.is-stam>i{height:3px}
#gamesContent .ab-vital.is-stam>i em{background:linear-gradient(90deg,#7fe6ff,#3f9fc4)}
#gamesContent .ab-vital.is-lamp>i em{background:linear-gradient(90deg,#ffc46b,#c98a28)}
#gamesContent .ab-shell[data-lamp="off"] .ab-vital.is-lamp{opacity:.62}
#gamesContent .ab-shell[data-hp="low"] .ab-vital.is-hp{border-color:#ff5f7055;animation:ab-throb 1.1s ease-in-out infinite}
#gamesContent .ab-shell[data-sanity="low"] .ab-vital.is-san{border-color:#a98bff55}
@keyframes ab-throb{0%,100%{background:rgba(9,8,11,.72)}50%{background:rgba(46,10,16,.82)}}

/* ---------- interação ---------- */
#gamesContent .ab-prompt{
  position:absolute;left:50%;bottom:86px;transform:translateX(-50%) translateY(6px);
  display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:12px;
  background:rgba(8,7,10,.78);border:1px solid var(--ab-line);
  font-size:10.5px;font-weight:700;letter-spacing:.3px;color:#f0dfe1;
  opacity:0;visibility:hidden;transition:opacity .16s ease, transform .16s ease;
  backdrop-filter:blur(8px);max-width:78%;
}
#gamesContent .ab-prompt.is-on{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
#gamesContent .ab-prompt b{
  display:grid;place-items:center;width:22px;height:22px;border-radius:7px;
  background:#2a1418;border:1px solid #ff5f7055;color:#ffd7db;font-size:10px;
}
#gamesContent .ab-prompt i{position:absolute;left:8px;right:8px;bottom:2px;height:2px;border-radius:99px;background:#ffffff10;overflow:hidden}
#gamesContent .ab-prompt i em{display:block;height:100%;width:0;background:#ff5f70;transition:width .06s linear}

/* ---------- textos ---------- */
#gamesContent .ab-sub{
  position:absolute;left:50%;bottom:126px;transform:translateX(-50%);
  max-width:74%;text-align:center;font-size:11.5px;font-style:italic;letter-spacing:.3px;
  color:#e3c5c9;text-shadow:0 2px 12px #000, 0 0 22px #0008;
  opacity:0;visibility:hidden;transition:opacity .4s ease;
}
#gamesContent .ab-sub.is-on{opacity:1;visibility:visible}
#gamesContent .ab-hint{
  position:absolute;left:50%;bottom:56px;transform:translateX(-50%);
  font-size:9px;font-weight:800;letter-spacing:1.6px;color:#c9aeb1;
  opacity:0;visibility:hidden;transition:opacity .25s ease;
}
#gamesContent .ab-hint.is-on{opacity:.92;visibility:visible}
#gamesContent .ab-lock{
  position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);
  padding:8px 14px;border-radius:10px;font-size:10px;letter-spacing:1px;
  background:rgba(6,5,8,.82);border:1px solid var(--ab-line-soft);color:#d9c3c6;
  opacity:0;visibility:hidden;transition:opacity .2s ease;
}
#gamesContent .ab-lock.is-on{opacity:1;visibility:visible}

/* ---------- overlays ---------- */
#gamesContent .ab-overlay{
  position:absolute;inset:0;display:grid;place-items:center;padding:16px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(90,10,20,.24), transparent 60%),
    rgba(3,3,6,.78);
  backdrop-filter:blur(6px);
  opacity:0;visibility:hidden;transition:opacity .28s ease, visibility .28s ease;
  overflow:auto;
}
#gamesContent .ab-overlay.is-on{opacity:1;visibility:visible}

/* menu */
#gamesContent .ab-menu-card{
  width:min(820px,100%);display:grid;gap:14px;padding:22px;
  border-radius:20px;border:1px solid var(--ab-line);
  background:linear-gradient(168deg,rgba(18,13,16,.97),rgba(7,6,9,.98));
  box-shadow:0 30px 80px -30px #000, inset 0 0 60px -30px #ff5f7033;
  max-height:100%;
}
#gamesContent .ab-menu-head{display:grid;gap:4px}
#gamesContent .ab-menu-head small{font-size:8.5px;font-weight:800;letter-spacing:3px;color:#c07a80}
#gamesContent .ab-menu-head h2{
  margin:0;font-size:44px;line-height:.94;letter-spacing:-1.5px;
  color:#fff;text-shadow:0 0 40px #ff5f7033;
}
#gamesContent .ab-menu-head p{margin:0;font-size:11.5px;line-height:1.5;color:#b9a6a8;max-width:60ch}
#gamesContent .ab-menu-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:16px;align-items:start}
#gamesContent .ab-menu-left{display:grid;gap:12px}
#gamesContent .ab-map{display:grid;gap:6px;padding:9px;border-radius:14px;background:#07080c;border:1px solid #ffffff0a}
#gamesContent .ab-map canvas{display:block;width:100%;height:auto;border-radius:8px}
#gamesContent .ab-map span{font-size:7.5px;font-weight:800;letter-spacing:1.6px;color:#7f7076;text-align:center}
#gamesContent .ab-best{display:grid;gap:5px;padding:10px 12px;border-radius:13px;background:#0b0a0e;border:1px solid #ffffff0a}
#gamesContent .ab-best small{font-size:7.5px;font-weight:800;letter-spacing:1.8px;color:#8d7c80}
#gamesContent .ab-best ul{display:flex;gap:8px;justify-content:space-between;margin:0;padding:0;list-style:none}
#gamesContent .ab-best li{display:grid;gap:1px;text-align:center}
#gamesContent .ab-best li small{letter-spacing:1px;color:#9b8a8e}
#gamesContent .ab-best li b{font-size:13px;color:#7fe6ff;font-variant-numeric:tabular-nums}
#gamesContent .ab-menu-right{display:grid;gap:9px}
#gamesContent .ab-kicker{font-size:7.5px;font-weight:800;letter-spacing:2.2px;color:#a3808a}
#gamesContent .ab-diffs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
#gamesContent .ab-diff{
  display:grid;gap:3px;padding:9px 9px 10px;border-radius:12px;cursor:pointer;text-align:left;
  background:#100d11;border:1px solid #ffffff0d;color:#f2ecec;transition:border-color .16s ease, background .16s ease;
}
#gamesContent .ab-diff small{font-size:7px;font-weight:800;letter-spacing:1.6px;color:#a38084}
#gamesContent .ab-diff b{font-size:13px;letter-spacing:.2px}
#gamesContent .ab-diff em{font-size:8.5px;font-style:normal;line-height:1.4;color:#9d8d90}
#gamesContent .ab-diff.is-pick{border-color:#ff5f7077;background:linear-gradient(170deg,#24131a,#120d11);box-shadow:inset 0 0 24px -12px #ff5f70}
#gamesContent .ab-diff.is-pick small{color:#ff9aa4}
#gamesContent .ab-controls{display:grid;gap:3px;margin:0;padding:0;list-style:none;font-size:9.5px;color:#a29194}
#gamesContent .ab-controls b{color:#e7d5d7;font-weight:700}
#gamesContent .ab-start{
  min-height:44px;border-radius:13px;cursor:pointer;
  border:1px solid #ff5f7055;color:#fff;font-size:12px;font-weight:900;letter-spacing:1.4px;
  background:linear-gradient(135deg,#c22a40,#6d0f1c);
  box-shadow:0 16px 36px -20px #ff5f70;
}
#gamesContent .ab-start:hover{filter:brightness(1.08)}
#gamesContent .ab-phone{font-size:8.5px;letter-spacing:.7px;color:#8a7a7e;text-align:center}

/* pausa / fim */
#gamesContent .ab-pause-card,#gamesContent .ab-end-card{
  width:min(420px,100%);display:grid;gap:9px;justify-items:center;text-align:center;
  padding:24px;border-radius:20px;border:1px solid var(--ab-line);
  background:linear-gradient(168deg,rgba(18,13,16,.97),rgba(7,6,9,.98));
  box-shadow:0 30px 80px -30px #000;
}
#gamesContent .ab-pause-card small,#gamesContent .ab-end-card>small{font-size:8px;font-weight:800;letter-spacing:2.6px;color:#a3808a}
#gamesContent .ab-pause-card h3{margin:0;font-size:24px;letter-spacing:3px}
#gamesContent .ab-pause-card p{margin:0 0 6px;font-size:10.5px;color:#a29194}
#gamesContent .ab-end-card h2{margin:0;font-size:30px;letter-spacing:-.6px}
#gamesContent .ab-end-card h2.win{color:#7fe6ff;text-shadow:0 0 30px #7fe6ff55}
#gamesContent .ab-end-card h2.lose{color:#ff8b98;text-shadow:0 0 30px #ff5f7044}
#gamesContent .ab-end-card p{margin:0;font-size:10.5px;color:#a29194}
#gamesContent .ab-end-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;width:100%;margin:4px 0}
#gamesContent .ab-end-stats div{display:grid;gap:2px;padding:9px 5px;border-radius:11px;background:#0d0b0f;border:1px solid #ffffff0a}
#gamesContent .ab-end-stats b{font-size:12.5px;font-variant-numeric:tabular-nums}
#gamesContent .ab-end-stats span{font-size:7px;font-weight:800;letter-spacing:1.2px;color:#8d7c80}
#gamesContent .ab-pause-actions,#gamesContent .ab-end-actions{display:grid;gap:7px;width:100%;margin-top:4px}
#gamesContent .ab-pause-actions button,#gamesContent .ab-end-actions button{
  min-height:40px;border-radius:12px;cursor:pointer;font-size:11.5px;font-weight:800;letter-spacing:.6px;
  border:1px solid #ff5f7055;color:#fff;background:linear-gradient(135deg,#c22a40,#6d0f1c);
}
#gamesContent .ab-pause-actions button.ab-ghost,#gamesContent .ab-end-actions button.ab-ghost{
  background:#120e12;border:1px solid #ffffff12;color:#d8c2c5;
}
#gamesContent .ab-pause-actions button:hover,#gamesContent .ab-end-actions button:hover{filter:brightness(1.08)}

/* ---------- toque ---------- */
#gamesContent .ab-touch{position:absolute;inset:0;display:none;pointer-events:none}
#gamesContent .ab-shell[data-touch="1"] .ab-touch{display:block}
#gamesContent .ab-stick{
  position:absolute;left:16px;bottom:104px;width:112px;height:112px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,95,112,.1),rgba(6,5,8,.5));
  border:1px solid #ff5f7033;pointer-events:auto;touch-action:none;
}
#gamesContent .ab-stick i{
  position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#f0c9ce,#8c5159 60%,#3b2329);
  box-shadow:0 6px 16px -6px #000;transition:transform .04s linear;
}
#gamesContent .ab-look{position:absolute;inset:0;pointer-events:auto;touch-action:none}
#gamesContent .ab-tbtn{
  position:absolute;display:grid;place-items:center;border-radius:50%;
  font-size:9.5px;font-weight:800;letter-spacing:.7px;color:#f5e6e8;cursor:pointer;
  border:1px solid #ffffff1f;pointer-events:auto;touch-action:none;
  background:rgba(16,12,15,.82);box-shadow:0 10px 24px -14px #000;
}
#gamesContent .ab-tbtn.use{
  right:18px;bottom:92px;width:80px;height:80px;font-size:22px;
  background:radial-gradient(circle at 35% 28%,#ff9aa4,#c22a40 55%,#5c0d17);
  border-color:#ff9ab088;
}
#gamesContent .ab-tbtn.run{right:110px;bottom:78px;width:56px;height:56px;color:#ffc9ce}
#gamesContent .ab-tbtn.light{right:22px;bottom:188px;width:52px;height:52px;color:#ffd9a0;border-color:#ffc46b44}
#gamesContent .ab-tbtn.sneak{left:26px;bottom:228px;width:50px;height:50px;color:#c9c2ff}
#gamesContent .ab-tbtn.is-on{border-color:#7fe6ff88;color:#d6f6ff;background:rgba(18,34,40,.9)}
#gamesContent .ab-tbtn:active{transform:scale(.96)}

/* ---------- modo foco: jogo no topo da página ---------- */
#gamesPage.ab-focus .gx-header > .gx-brand,
#gamesPage.ab-focus .gx-header > .after-launch-season,
#gamesPage.ab-focus .gx-header > .games-accounts,
#gamesPage.ab-focus > #afterDevPortal,
#gamesPage.ab-focus .gx-stage > .games-toolbar{display:none !important}
#gamesPage.ab-focus .gx-header{display:block;padding:8px 12px 10px}
#gamesPage.ab-focus .games-tabs{margin:0}

/* ---------- responsivo ---------- */
@media (max-width:900px){
  #gamesContent .ab-menu-grid{grid-template-columns:1fr}
  #gamesContent .ab-menu-card{padding:14px;gap:10px}
  #gamesContent .ab-menu-head h2{font-size:32px}
  #gamesContent .ab-map canvas{max-height:130px;object-fit:contain}
  #gamesContent .ab-diffs{grid-template-columns:repeat(3,1fr)}
  #gamesContent .ab-diff{padding:7px 8px}
  #gamesContent .ab-diff em{display:none}
  #gamesContent .ab-best ul{gap:6px}
}
@media (max-width:820px){
  #gamesContent .ab-stage{aspect-ratio:4/3;border-radius:18px}
  #gamesContent .ab-objective{top:8px;left:8px;padding:6px 9px 7px}
  #gamesContent .ab-objective b{font-size:11px}
  #gamesContent .ab-pips i{width:20px}
  #gamesContent .ab-clock{top:8px;padding:4px 10px}
  #gamesContent .ab-clock b{font-size:13px}
  #gamesContent .ab-pause{top:8px;right:8px;width:30px;height:30px}
  #gamesContent .ab-vitals{left:9px;bottom:9px;width:138px;gap:5px}
  #gamesContent .ab-vital{padding:5px 8px}
  #gamesContent .ab-vital small{font-size:7px;letter-spacing:1.2px}
  #gamesContent .ab-vital b{font-size:11.5px}
  #gamesContent .ab-prompt{bottom:70px;font-size:9.5px;padding:5px 10px}
  #gamesContent .ab-sub{bottom:106px;font-size:10.5px}
  #gamesContent .ab-hint{bottom:48px;font-size:8px}
  #gamesContent .ab-menu-head p{font-size:10.5px}
  #gamesContent .ab-best ul{gap:6px}
  #gamesContent .ab-end-stats{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:520px){
  #gamesContent .ab-stage{aspect-ratio:3/4}
  #gamesContent .ab-menu-head h2{font-size:26px}
  #gamesContent .ab-menu-head p{display:none}
  #gamesContent .ab-map canvas{max-height:96px}
  #gamesContent .ab-best{display:none}
  #gamesContent .ab-controls{display:none}
  #gamesContent .ab-diff b{font-size:11.5px}
  #gamesContent .ab-sub{top:64px;bottom:auto;max-width:88%;font-size:10px}
  #gamesContent .ab-hint{top:100px;bottom:auto;font-size:8px}
  #gamesContent .ab-vitals{width:120px}
  #gamesContent .ab-stick{left:12px;bottom:96px;width:96px;height:96px}
  #gamesContent .ab-tbtn.use{width:72px;height:72px;bottom:84px}
  #gamesContent .ab-tbtn.run{right:96px;bottom:70px;width:50px;height:50px}
  #gamesContent .ab-tbtn.light{right:16px;bottom:166px;width:46px;height:46px}
  #gamesContent .ab-tbtn.sneak{left:18px;bottom:204px;width:44px;height:44px}
  #gamesContent .ab-prompt{max-width:88%}
  #gamesContent .ab-pause-card,#gamesContent .ab-end-card{padding:18px}
}

/* exclusivo do AFTER no computador: sem Abismo no mobile */
@media (max-width:820px), (pointer:coarse){
  #gamesPage .games-tabs [data-game-view="abismo"]{display:none !important}
}
