/* duel-petpick.css: the pet choice before a duel (31 Oct 2026; tools/pick_looks/yard/duel_petpick.js). One window on a desktop, one bottom
   sheet on a phone; the choices a list of 44 px rows, the chosen one's body and its buttons in the game's own words under them. The page's
   own panel and gold (duel-select.css :root --tf-*), no new colour */
.pp{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:16px;box-sizing:border-box;background:rgba(4,3,2,.72);pointer-events:auto;
  color:var(--tf-ink,#e8e8e8);font:400 14px/1.4 "Open Sans",system-ui,"Segoe UI",Arial,sans-serif;text-align:left}
.pp *,.pp *::before,.pp *::after{box-sizing:border-box}
.pp button{font:inherit;color:inherit;background:none;border:0;border-radius:0;box-shadow:none;margin:0;padding:0;letter-spacing:normal;text-transform:none;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.pp button:focus-visible{outline:2px solid var(--tf-gold,#ffd100);outline-offset:2px}
.pp h2,.pp h3,.pp p,.pp ul{margin:0;padding:0}
.pp i,.pp em{font-style:normal}
.pp-box{position:relative;display:flex;flex-direction:column;width:min(100%,720px);max-height:min(100%,760px);overflow:hidden;border-radius:4px;background:var(--tf-p,#1e1e1e);
  box-shadow:0 0 0 1px #000,0 0 0 2px rgba(232,192,98,.32),0 14px 36px rgba(0,0,0,.65);outline:0}
.pp-head{display:flex;align-items:center;gap:10px;padding:0 6px 0 16px;min-height:52px;background:var(--tf-head,#333);border-bottom:2px solid rgba(255,209,0,.35)}
.pp-head h2{flex:1;font:700 18px/1.2 Cinzel,Georgia,serif;color:var(--tf-wm,#ffd75e);text-shadow:0 1px 0 var(--tf-wms,#7a5a10)}
.pp .pp-x{width:44px;height:44px;font-size:26px;line-height:44px;text-align:center;color:var(--tf-ink2,#bdbdbd);border-radius:4px}
.pp .pp-x:hover{color:#fff;background:rgba(255,255,255,.06)}
.pp-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:12px 12px 4px}
.pp .pp-o{display:flex;align-items:center;gap:10px;min-height:52px;padding:6px 10px 6px 6px;border-radius:4px;background:var(--tf-chip,#161616);box-shadow:inset 0 0 0 1px var(--tf-chipr,#3f3f3f);text-align:left}
.pp .pp-o:hover{background:var(--tf-chip-h,#1d1d1d)}
.pp .pp-o.pp-on{background:linear-gradient(180deg,var(--tf-capn1,#4a3708),var(--tf-capn2,#070500));box-shadow:inset 0 0 0 1px var(--tf-gold2,#c89b1a),0 0 0 1px rgba(255,209,0,.25)}
.pp-o img{flex:0 0 36px;width:36px;height:36px;border-radius:3px;box-shadow:0 0 0 1px #000,0 0 0 2px #555}
.pp-o.pp-on img{box-shadow:0 0 0 1px #000,0 0 0 2px var(--tf-gold,#ffd100)}
.pp-ot{display:flex;flex-direction:column;min-width:0}
.pp-ot b{font-weight:700;font-size:15px;color:#fff}
.pp-o.pp-on .pp-ot b{color:var(--tf-gold3,#ffe680)}
.pp-ot b em{margin-left:6px;font-size:11px;font-weight:600;color:var(--tf-green,#4fbf3a);white-space:nowrap}
.pp-ot i{font-size:12px;line-height:1.3;color:var(--tf-ink2,#bdbdbd)}
.pp-info{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:10px 16px 12px;scrollbar-width:thin;scrollbar-color:#6b5a2a rgba(0,0,0,.25)}
.pp-info h3{display:flex;align-items:center;gap:10px;font:700 16px/1.2 Cinzel,Georgia,serif;color:var(--tf-wm,#ffd75e)}
.pp-info h3 img{width:28px;height:28px;border-radius:3px;box-shadow:0 0 0 1px #000}
.pp-body{display:flex;flex-wrap:wrap;gap:4px 14px;margin:8px 0 10px!important;font-size:13px;color:var(--tf-ink2,#bdbdbd)}
.pp-body b{color:#fff;font-weight:700}
.pp-ab{list-style:none;display:grid;gap:8px}
.pp-ab li{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border-radius:4px;background:var(--tf-well,#0a0a0a);box-shadow:inset 0 0 0 1px var(--tf-line,#3a3a3a)}
.pp-ab img{flex:0 0 32px;width:32px;height:32px;border-radius:3px;box-shadow:0 0 0 1px #000,0 0 0 2px #555}
.pp-ab b{display:block;color:#fff;font-weight:700}
.pp-ab small{display:block;font-size:12px;color:var(--tf-fine,#8f8f8f)}
.pp-ab p{margin-top:2px!important;font-size:13px;line-height:1.4;color:var(--tf-gold,#ffd100)}
.pp .pp-n{font-size:12px;color:var(--tf-ink2,#bdbdbd)}
.pp-info>.pp-n{margin-top:10px!important}
.pp-foot{display:flex;justify-content:flex-end;padding:10px 12px;border-top:1px solid var(--tf-line,#3a3a3a);background:var(--tf-p2,#262626)}
.pp .pp-done{min-width:140px;min-height:44px}

/* a phone: one bottom sheet, the list in two columns of short rows, the buttons scroll under it */
@media (max-width:700px),(max-width:900px) and (orientation:portrait){
  .pp{place-items:end stretch;padding:0}
  .pp-box{width:100%;max-height:92vh;max-height:92dvh;border-radius:12px 12px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  .pp-head{min-height:48px;padding-left:14px}
  .pp-list{gap:6px;padding:10px 10px 2px}
  .pp .pp-o{min-height:48px;gap:8px;padding:4px 8px 4px 4px}
  .pp-o img{flex-basis:32px;width:32px;height:32px}
  .pp-ot b{font-size:14px}
  .pp-ot i{display:none}
  .pp-ot b em{display:block;margin:0;font-size:10px;line-height:1.2}
  .pp-info{padding:8px 12px 10px}
  .pp-ab li{padding:6px 8px}
  .pp-foot{padding:8px 10px}
  .pp .pp-done{flex:1}
}
/* a phone on its side: the sheet's height is short, the list three across */
@media (orientation:landscape) and (max-height:500px){
  .pp{padding:6px}
  .pp-box{max-height:100%}
  .pp-list{grid-template-columns:repeat(4,minmax(0,1fr))}
  .pp-ot i{display:none}
}
/* the bars row: the Pet button behaves as the Talents one (duel-select.css .dx-talb), its icon only where the row has no room for a word */
@media (max-width:900px) and (orientation:portrait),(max-width:700px){.dx-create .dx-petb span,.dx-fight .dx-petb span{display:none}.dl-ui .dx-create .dx-go-row .dx-petb,.dl-ui .dx-fight .dx-go-row .dx-petb{flex:0 0 52px;padding:0}}
/* (31 Oct 2026, QA on duel-next 6607278d: the Pet button pushed Start training off a desktop stage) a row with no room for every word
   (duel_select.js rowFit sets dx-tight) shows the Spellbook, Talents and Pet as their icons alone, 52 px as on a phone; their names stay as
   a tooltip and in aria-label */
.dl-ui .dx-go-row.dx-tight .dx-go-bars .dx-bkb{flex:0 0 52px;width:52px;padding:0;justify-content:center}
.dx-go-row.dx-tight .dx-go-bars .dx-bkb span{display:none}
