/* ========================================================================
   DBAF.EU V11.1 — MOBILE ANIME UI PASS
   2026-10-09 · full-game responsive hardening + curated local anime artwork.
   Loaded last on purpose: this is the final mobile/visual override layer.
   ======================================================================== */
:root{
  --v111-ink:#061724;
  --v111-ink2:#0a2438;
  --v111-panel:#0c2a42;
  --v111-panel2:#103853;
  --v111-line:rgba(112,207,255,.22);
  --v111-cyan:#66dcff;
  --v111-blue:#6a8dff;
  --v111-violet:#a975ff;
  --v111-gold:#ffd36a;
  --v111-green:#6ce6aa;
  --v111-red:#ff7485;
  --v111-text:#f4fbff;
  --v111-muted:#9ebdcd;
  --v111-radius:16px;
  --v111-shadow:0 18px 42px rgba(2,18,31,.22);
}

html,body{max-width:100%;overflow-x:hidden}
body.dbaf-heroes-shell{min-width:0!important}
body.dbaf-heroes-shell img{image-rendering:auto;object-fit:cover}
body.dbaf-heroes-shell img[width],body.dbaf-heroes-shell img[height]{max-width:100%;height:auto}
body.dbaf-heroes-shell .dbaf-page-content,body.dbaf-heroes-shell .dbaf-tp-main,body.dbaf-heroes-shell .dbaf-tp-stage{min-width:0!important;max-width:100%!important}

/* ---------- Anime art system ---------- */
body.dbaf-heroes-home .dbaf-tp-hero{
  isolation:isolate;
  background:
    linear-gradient(100deg,rgba(4,20,34,.98) 0%,rgba(6,28,47,.93) 43%,rgba(5,22,39,.42) 72%,rgba(5,19,31,.64) 100%),
    url('/stilius/heroes_city_hero.webp') center 42%/cover no-repeat!important;
  border-color:rgba(96,206,255,.34)!important;
  box-shadow:0 22px 48px rgba(2,23,39,.24),inset 0 0 0 1px rgba(255,255,255,.025)!important;
}
body.dbaf-heroes-home .dbaf-tp-hero:before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(circle at 74% 35%,rgba(99,222,255,.18),transparent 24%),linear-gradient(125deg,rgba(92,121,255,.08),transparent 45%);
}
body.dbaf-heroes-home .v97-hero-fighter img{filter:drop-shadow(0 16px 22px rgba(0,0,0,.38)) saturate(1.08) contrast(1.03)!important}

body.dbaf-heroes-home .dbaf-tp-homecard{--v111-card-art:var(--card-art)}
body.dbaf-heroes-home .dbaf-tp-homecard.is-battle{--v111-card-art:url('/paveiksliukai/goku_icon.jpg')}
body.dbaf-heroes-home .dbaf-tp-homecard.is-universe{--v111-card-art:url('/paveiksliukai/auros.png')}
body.dbaf-heroes-home .dbaf-tp-homecard.is-saga{--v111-card-art:url('/paveiksliukai/gohan_icon.jpg')}
body.dbaf-heroes-home .dbaf-tp-homecard.is-raid{--v111-card-art:url('/paveiksliukai/broly god.png')}
body.dbaf-heroes-home .dbaf-tp-homecard.is-mission{--v111-card-art:url('/paveiksliukai/misijos.png')}
body.dbaf-heroes-home .dbaf-tp-homecard.is-kame{--v111-card-art:url('/paveiksliukai/roshi_fullpower.png')}
body.dbaf-heroes-home .dbaf-tp-homecard.is-tower{--v111-card-art:url('/paveiksliukai/Gokas-3.PNG')}
body.dbaf-heroes-home .dbaf-tp-homecard.is-city{--v111-card-art:url('/paveiksliukai/satan_city.png')}
body.dbaf-heroes-home .dbaf-tp-homecard:before{
  background-image:var(--v111-card-art)!important;
  background-size:cover!important;
  background-position:center 22%!important;
  filter:saturate(1.12) contrast(1.05) brightness(.86)!important;
}
body.dbaf-heroes-home .dbaf-tp-homecard:after{
  background:linear-gradient(180deg,rgba(3,16,28,.02) 4%,rgba(4,19,31,.32) 42%,rgba(4,18,31,.97) 88%)!important;
}

/* Page mastheads get a local anime illustration instead of random remote art. */
body.dbaf-system-page{--v111-page-art:url('/paveiksliukai/goku_icon.jpg')}
body.dbaf-page-kovu_zona{--v111-page-art:url('/paveiksliukai/goku_icon.jpg')}
body.dbaf-page-dbs_visatos{--v111-page-art:url('/paveiksliukai/DragonBallSuper.png')}
body.dbaf-page-sagos{--v111-page-art:url('/paveiksliukai/gohan_icon.jpg')}
body.dbaf-page-server_boss{--v111-page-art:url('/paveiksliukai/broly god.png')}
body.dbaf-page-misijos{--v111-page-art:url('/paveiksliukai/misijos.png')}
body.dbaf-page-kame{--v111-page-art:url('/paveiksliukai/roshi_fullpower.png')}
body.dbaf-page-bokstas{--v111-page-art:url('/paveiksliukai/karinas.png')}
body.dbaf-page-satan_city{--v111-page-art:url('/paveiksliukai/satan_city.png')}
body.dbaf-page-skill{--v111-page-art:url('/paveiksliukai/auros.png')}
body.dbaf-page-susijungimas{--v111-page-art:url('/paveiksliukai/gogeta_icon.jpg')}
body.dbaf-page-mano_meniu{--v111-page-art:url('/paveiksliukai/vegeta_icon.jpg')}
body.dbaf-system-page .dbaf-page-masthead{position:relative;isolation:isolate;overflow:hidden!important}
body.dbaf-system-page .dbaf-page-masthead:before{
  content:"";position:absolute;inset:0;z-index:-2;
  background:var(--v111-page-art) 92% 28%/min(300px,34vw) auto no-repeat!important;
  opacity:.42;filter:saturate(1.15) contrast(1.08);
}
body.dbaf-system-page .dbaf-page-masthead:after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,rgba(6,27,44,.99) 0%,rgba(7,31,49,.95) 52%,rgba(7,27,43,.52) 100%);
}

/* ---------- Moving premium ticker ---------- */
.v111-anime-ticker{
  position:relative;overflow:hidden;height:30px;margin:0 14px 9px;border:1px solid rgba(91,202,255,.19);border-radius:9px;
  background:linear-gradient(90deg,#071c2d,#0b2e47,#071c2d);box-shadow:0 8px 18px rgba(3,22,37,.10);
}
.v111-anime-ticker:before,.v111-anime-ticker:after{content:"";position:absolute;top:0;bottom:0;width:44px;z-index:2;pointer-events:none}
.v111-anime-ticker:before{left:0;background:linear-gradient(90deg,#071c2d,transparent)}
.v111-anime-ticker:after{right:0;background:linear-gradient(-90deg,#071c2d,transparent)}
.v111-anime-ticker-track{display:flex;width:max-content;align-items:center;height:100%;gap:26px;padding-left:100%;animation:v111Ticker 30s linear infinite;white-space:nowrap}
.v111-anime-ticker-track span{color:#cbeeff;font-size:8px;font-weight:900;letter-spacing:1px;text-transform:uppercase}
.v111-anime-ticker-track b{color:#fff}.v111-anime-ticker-track i{color:var(--v111-gold);font-style:normal}
@keyframes v111Ticker{to{transform:translateX(-100%)}}

/* ---------- Global premium cleanup ---------- */
body.dbaf-heroes-shell .s1,body.dbaf-heroes-shell .title,body.dbaf-heroes-shell .title_in_game,body.dbaf-heroes-shell .heroes-system-title{
  border-color:rgba(95,201,249,.20)!important;background:linear-gradient(100deg,#0a2941,#0c3551)!important;color:#fff!important
}
body.dbaf-heroes-shell .s2,body.dbaf-heroes-shell .menu_l,body.dbaf-heroes-shell .menu_c,body.dbaf-heroes-shell .sb{
  border-color:rgba(93,164,202,.17)!important
}
body.dbaf-heroes-shell input[type=text],body.dbaf-heroes-shell input[type=password],body.dbaf-heroes-shell input[type=number],body.dbaf-heroes-shell input[type=email],body.dbaf-heroes-shell select,body.dbaf-heroes-shell textarea{
  box-sizing:border-box!important;max-width:100%!important
}
body.dbaf-heroes-shell .v111-table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:12px}
body.dbaf-heroes-shell .v111-table-scroll>table{margin:0!important}
body.dbaf-heroes-shell .v111-legacy-icon-menu{display:none!important}

/* Prevent decorative legacy images from exploding layouts. */
body.dbaf-heroes-shell .dbaf-page-content img:not(.smile):not(.dbaf-main-logo){max-width:100%!important;height:auto!important}
body.dbaf-heroes-shell .dbaf-page-content iframe,body.dbaf-heroes-shell .dbaf-page-content video{max-width:100%!important}

/* ---------- Mobile rebuild ---------- */
@media(max-width:900px){
  :root{--v111-radius:14px}
  html{font-size:16px;-webkit-text-size-adjust:100%}
  body.dbaf-heroes-shell{background:linear-gradient(180deg,#071827 0,#0a2134 100%)!important;color:var(--v111-text)!important}
  body.dbaf-heroes-shell:before{opacity:.12!important}

  .dbaf-tp-shell{display:block!important;width:100%!important;max-width:100%!important;margin:0!important}
  .dbaf-tp-stage{width:100%!important}
  .dbaf-tp-topbar{
    position:sticky!important;top:0!important;z-index:95!important;min-height:58px!important;padding:7px max(10px,env(safe-area-inset-right)) 7px max(10px,env(safe-area-inset-left))!important;
    border-bottom:1px solid rgba(100,207,255,.18)!important;background:rgba(5,22,36,.94)!important;backdrop-filter:blur(12px)!important;color:#fff!important
  }
  .dbaf-tp-user{min-width:0!important;gap:8px!important}.dbaf-tp-user img{width:38px!important;height:38px!important;flex:0 0 auto;border:1px solid rgba(110,219,255,.36)!important}
  .dbaf-tp-user b{font-size:11px!important;color:#fff!important}.dbaf-tp-user small{font-size:7.5px!important;color:#8fb5c8!important}
  .dbaf-tp-topbar .dbaf-tp-resources{display:none!important}
  .dbaf-tp-actions{margin-left:auto!important;gap:5px!important}.dbaf-tp-actions>a,.dbaf-tp-menu-toggle{min-width:40px!important;height:40px!important;border-radius:11px!important}

  .dbaf-tp-sidebar{
    width:min(88vw,318px)!important;max-width:318px!important;padding:14px 11px calc(20px + env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;overscroll-behavior:contain;background:linear-gradient(180deg,#051725,#08253a 52%,#061827)!important
  }
  .dbaf-tp-brand{position:sticky;top:-14px;z-index:3;background:#061a2a!important}
  .dbaf-tp-nav{min-height:48px!important;padding:7px 10px!important;border-radius:12px!important}.dbaf-tp-nav-icon{width:32px!important;height:32px!important}.dbaf-tp-nav b{font-size:10px!important}
  .dbaf-tp-navlist{gap:5px!important}

  .dbaf-tp-columns{display:block!important;padding:8px 8px calc(18px + env(safe-area-inset-bottom))!important}
  .dbaf-tp-main{width:100%!important;min-width:0!important}
  .dbaf-tp-rail{position:static!important;width:100%!important;min-width:0!important;margin:10px 0 0!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .dbaf-page-content{width:100%!important;min-width:0!important}

  .v111-anime-ticker{margin:0 8px 8px!important;height:28px!important;border-radius:8px!important}.v111-anime-ticker-track{animation-duration:24s}.v111-anime-ticker-track span{font-size:7.5px}

  body.dbaf-heroes-home .dbaf-tp-hero{
    min-height:300px!important;margin:0 0 9px!important;padding:18px 15px 15px!important;border-radius:16px!important;
    background:linear-gradient(180deg,rgba(5,19,32,.15) 0%,rgba(5,20,33,.72) 46%,rgba(5,20,34,.98) 100%),url('/stilius/heroes_city_hero.webp') center/cover no-repeat!important
  }
  body.dbaf-heroes-home .v97-hero-copy{max-width:100%!important;padding-right:0!important;position:relative;z-index:3}
  body.dbaf-heroes-home .v97-kicker{font-size:7px!important;letter-spacing:1.2px!important}
  body.dbaf-heroes-home .dbaf-tp-hero h1{max-width:70%!important;margin-top:9px!important;font-size:29px!important;line-height:.98!important;text-shadow:0 4px 14px #000!important}
  body.dbaf-heroes-home .dbaf-tp-hero h1 small{display:block!important;margin-top:7px!important;font-size:10px!important;line-height:1.25!important}
  body.dbaf-heroes-home .dbaf-tp-hero p{max-width:62%!important;font-size:9px!important;line-height:1.45!important;color:#b8d0dc!important}
  body.dbaf-heroes-home .v97-hero-fighter{right:-2px!important;bottom:38px!important;width:46%!important;height:73%!important;opacity:.98!important}
  body.dbaf-heroes-home .v97-hero-fighter img{max-height:100%!important;max-width:100%!important;object-fit:contain!important;object-position:right bottom!important}
  body.dbaf-heroes-home .v97-hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;max-width:100%!important;margin-top:14px!important}
  body.dbaf-heroes-home .v97-hero-actions a{min-height:40px!important;padding:0 9px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;font-size:7.5px!important;border-radius:10px!important}
  body.dbaf-heroes-home .v97-hero-actions .v97-primary{grid-column:1/-1!important}
  body.dbaf-heroes-home .v97-exp-line{position:absolute!important;left:15px!important;right:15px!important;bottom:13px!important;z-index:4!important;grid-template-columns:auto 1fr auto!important}
  body.dbaf-heroes-home .v97-hero-stats{display:none!important}

  body.dbaf-heroes-home .v97-command-dock{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;padding:10px!important;margin-bottom:9px!important;border-radius:14px!important}
  body.dbaf-heroes-home .v97-dock-items{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.v97-service{min-width:0!important}

  body.dbaf-heroes-home .dbaf-tp-homecards{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  body.dbaf-heroes-home .dbaf-tp-homecard,body.dbaf-heroes-home .dbaf-tp-homecard:nth-child(n){min-height:180px!important;border-radius:15px!important;padding:13px!important}
  body.dbaf-heroes-home .dbaf-tp-homecard:before{background-size:cover!important;background-position:center 24%!important}
  body.dbaf-heroes-home .dbaf-tp-homecard.is-raid:before,body.dbaf-heroes-home .dbaf-tp-homecard.is-kame:before,body.dbaf-heroes-home .dbaf-tp-homecard.is-tower:before,body.dbaf-heroes-home .dbaf-tp-homecard.is-city:before{background-size:contain!important;background-position:92% center!important;background-color:#071d30!important;background-repeat:no-repeat!important}
  body.dbaf-heroes-home .v97-card-copy{width:72%!important}.v97-card-copy h2{font-size:19px!important}.v97-card-copy p{font-size:8.5px!important;line-height:1.4!important}.v97-card-eyebrow{font-size:7px!important}

  body.dbaf-system-page .dbaf-page-masthead{min-height:118px!important;margin:0 0 8px!important;padding:16px!important;border-radius:15px!important}
  body.dbaf-system-page .dbaf-page-masthead:before{background-position:96% 42%!important;background-size:auto 145%!important;opacity:.34!important}
  body.dbaf-system-page .dbaf-page-masthead h1{max-width:72%!important;font-size:24px!important;line-height:1!important}.dbaf-page-masthead p{max-width:67%!important;font-size:8.5px!important;line-height:1.4!important}

  body.dbaf-heroes-shell .s1,body.dbaf-heroes-shell .title,body.dbaf-heroes-shell .title_in_game,body.dbaf-heroes-shell .heroes-system-title{
    padding:10px 11px 10px 14px!important;border-radius:12px 12px 0 0!important;font-size:10px!important;letter-spacing:.6px!important
  }
  body.dbaf-heroes-shell .s2,body.dbaf-heroes-shell .menu_l,body.dbaf-heroes-shell .menu_c,body.dbaf-heroes-shell .sb,body.dbaf-heroes-shell .main_left,body.dbaf-heroes-shell .main_center,body.dbaf-heroes-shell .pgr_bot{
    padding:10px!important;font-size:9.5px!important;line-height:1.45!important
  }

  body.dbaf-heroes-shell input[type=text],body.dbaf-heroes-shell input[type=password],body.dbaf-heroes-shell input[type=number],body.dbaf-heroes-shell input[type=email],body.dbaf-heroes-shell select,body.dbaf-heroes-shell textarea{
    width:100%!important;min-height:44px!important;padding:10px 11px!important;font-size:16px!important;border-radius:11px!important
  }
  body.dbaf-heroes-shell textarea{min-height:88px!important}
  body.dbaf-heroes-shell input[type=submit],body.dbaf-heroes-shell input[type=button],body.dbaf-heroes-shell button,body.dbaf-heroes-shell .dbaf-action,body.dbaf-heroes-shell .v87-primary,body.dbaf-heroes-shell .v87-secondary{
    min-height:44px!important;padding:0 13px!important;font-size:9px!important;border-radius:11px!important;touch-action:manipulation
  }

  body.dbaf-heroes-shell .skill-grid,body.dbaf-heroes-shell .skill-grid-premium,body.dbaf-heroes-shell .transform-grid,body.dbaf-heroes-shell .fusion-grid,body.dbaf-heroes-shell .mission-stage-grid,body.dbaf-heroes-shell .v87-universe-grid,body.dbaf-heroes-shell .v87-saga-grid,body.dbaf-heroes-shell .kz-zone-grid,body.dbaf-heroes-shell .kz-mob-list{
    grid-template-columns:1fr!important;gap:8px!important
  }
  body.dbaf-page-skill .skill-grid-premium .skill-card{min-height:170px!important;padding:13px!important}.transform-card,.fusion-card{min-height:unset!important}

  body.dbaf-heroes-shell table{width:100%!important;max-width:100%!important;font-size:8.5px!important}
  body.dbaf-heroes-shell th,body.dbaf-heroes-shell td{padding:8px 7px!important;min-width:78px}
  body.dbaf-heroes-shell .v111-table-scroll{margin:5px 0!important;border:1px solid rgba(99,174,214,.12)!important;background:rgba(7,29,45,.50)!important}

  body.dbaf-heroes-shell .heroes-live-chat,body.dbaf-heroes-shell .dbaf-tp-railcard,body.dbaf-heroes-shell .dbaf-notice{border-radius:14px!important;overflow:hidden!important}
  body.dbaf-heroes-shell .live-msg{padding:9px!important}.live-msg b{font-size:9px!important}.live-msg small{font-size:7px!important}.live-msg .live-text{font-size:9px!important;line-height:1.45!important}

  .v87-boss-hero,.v87-u-fight,.v87-unlock-card{grid-template-columns:1fr!important;display:flex!important;flex-direction:column!important}.v87-u-objective{width:100%!important}.v87-boss-hp{width:100%!important;max-width:none!important}
  .v100-combat-hud{grid-template-columns:1fr!important}.v100-combat-vs{display:none!important}.v100-fighter{min-width:0!important}

  /* Old WAP-style menu is replaced by the sidebar and utility cards. */
  .v111-legacy-icon-menu{display:none!important}
}

@media(max-width:520px){
  .dbaf-tp-columns{padding:6px!important}
  .v111-anime-ticker{margin-left:6px!important;margin-right:6px!important}
  body.dbaf-heroes-home .dbaf-tp-hero{min-height:286px!important;padding:15px 12px!important}
  body.dbaf-heroes-home .dbaf-tp-hero h1{font-size:26px!important;max-width:74%!important}
  body.dbaf-heroes-home .dbaf-tp-hero p{max-width:70%!important}
  body.dbaf-heroes-home .v97-hero-fighter{width:44%!important;right:-5px!important}
  body.dbaf-heroes-home .v97-exp-line{left:12px!important;right:12px!important}
  body.dbaf-heroes-home .dbaf-tp-homecard,body.dbaf-heroes-home .dbaf-tp-homecard:nth-child(n){min-height:164px!important}
  body.dbaf-heroes-home .v97-card-copy{width:78%!important}
  body.dbaf-heroes-home .v97-dock-items{grid-template-columns:1fr 1fr!important}
  body.dbaf-system-page .dbaf-page-masthead{min-height:108px!important;padding:14px!important}
  body.dbaf-system-page .dbaf-page-masthead h1{font-size:21px!important}
  body.dbaf-guest-heroes .v98-character-grid{grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.dbaf-guest-heroes .v98-character-card{min-width:0!important;padding:8px!important}
}

@media(max-width:390px){
  .dbaf-tp-user small{display:none!important}
  body.dbaf-heroes-home .v97-hero-actions{grid-template-columns:1fr!important}.v97-hero-actions .v97-primary{grid-column:auto!important}
  body.dbaf-heroes-home .dbaf-tp-hero p{display:none!important}
  body.dbaf-heroes-home .v97-dock-items{grid-template-columns:1fr!important}
  body.dbaf-heroes-home .v97-card-copy{width:84%!important}
}

@media(prefers-reduced-motion:reduce){.v111-anime-ticker-track{animation:none!important;padding-left:12px!important}}
